mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-30 17:33:21 +08:00
Summary: Explain the **motivation** for making this change. What existing problem does the pull request solve? This is small improvement to docs webpage. I'm tired of clicking on searchbar with mouse/touchpad, so I've added a `tabindex` attribute to it, so it can be now focused with `Tab` key. I think this greatly improves user experience on documentation searching. **Test plan (required)** ??? Just click on `Tab` and it will focus. Should I test it really? **Code formatting** Attributes are sorted alphabetically, I've inserted new attribute in this order, after `id` and before `type` attributes. Closes https://github.com/facebook/react-native/pull/8319 Differential Revision: D3470858 fbshipit-source-id: 01240bdf1432d9873324ddee38be256dfab93df2
Install prerequisites
Before running the website, make sure you've run the following:
git clone https://github.com/facebook/react-native.git
cd react-native
npm install
Run the website server
The first time, get all the website dependencies loaded via
cd website
npm install
Then, run the server via
npm start
open http://localhost:8079/react-native/index.html
Anytime you change the contents, just refresh the page and it's going to be updated.
Publish the website
cd website
npm run publish-website