From 8c2e5315424c4dfd9c5925fc7960cd6417fe5e2a Mon Sep 17 00:00:00 2001 From: Christopher Chedeau Date: Wed, 9 Mar 2016 19:35:37 -0800 Subject: [PATCH] Remove Releases tab from header Summary:This pull request moves the content of the Releases tab to the version number next to the title. With the search bar, the header was getting too crowded. - I've cleaned up the search style a bit and made it look like the React one (with the background color). - I've also improved the styling of the versions page. ![screen shot 2016-03-09 at 2 22 17 pm](https://cloud.githubusercontent.com/assets/197597/13652946/e0584326-e603-11e5-96f7-962debb1b43a.png) Closes https://github.com/facebook/react-native/pull/6388 Differential Revision: D3033151 Pulled By: vjeux fb-gh-sync-id: ec44f8f1a50331cd001c6cb7723f084751c342ab shipit-source-id: ec44f8f1a50331cd001c6cb7723f084751c342ab --- website/core/HeaderLinks.js | 1 - website/core/Site.js | 2 +- website/src/react-native/css/react-native.css | 89 +++++++------------ website/src/react-native/versions.js | 42 ++++++--- 4 files changed, 66 insertions(+), 68 deletions(-) diff --git a/website/core/HeaderLinks.js b/website/core/HeaderLinks.js index 6feaa9194..339b4290b 100644 --- a/website/core/HeaderLinks.js +++ b/website/core/HeaderLinks.js @@ -16,7 +16,6 @@ var HeaderLinks = React.createClass({ linksInternal: [ {section: 'docs', href: 'docs/getting-started.html', text: 'Docs'}, {section: 'support', href: 'support.html', text: 'Support'}, - {section: 'releases', href: 'https://github.com/facebook/react-native/releases', text: 'Releases'}, {section: 'newsletter', href: 'http://reactnative.cc', text: 'Newsletter'}, {section: 'showcase', href: 'showcase.html', text: 'Showcase'}, ], diff --git a/website/core/Site.js b/website/core/Site.js index bacea103b..cb2e7e7b7 100644 --- a/website/core/Site.js +++ b/website/core/Site.js @@ -86,7 +86,7 @@ var Site = React.createClass({ apiKey: '2c98749b4a1e588efec53b2acec13025', indexName: 'react-native-versions', inputSelector: '#algolia-doc-search', - algoliaOptions: { facetFilters: [ "tags:${algoliaVersion}" ] } + algoliaOptions: { facetFilters: [ "tags:${algoliaVersion}" ], hitsPerPage: 5 } }); `}} />