react-native/website
Andrej Badin 00c77800c9 Improve Docs navigation on handheld devices.
Summary:
Fixes #7519

JS detects handheld device by sniffing UA string (very primitive detection). If on handheld device, event listener is registered. Event handler toggles Docs Navigation overlay after clicking on "Docs" nav button.
Original Docs Navigation panel is taken out of the natural page flow using pure CSS and is styled to look "good" on device.  As a result of this, Navigation overlay is ONLY visible when you are at Docs page, otherwise "Docs" nav button takes you Docs page first.

iPhone/iPad previews
![iphone](https://cloud.githubusercontent.com/assets/829963/15409630/f1a64b1a-1e15-11e6-92eb-f85c5cd06754.gif)
![ipad](https://cloud.githubusercontent.com/assets/829963/15409631/f1a6f952-1e15-11e6-8f5c-6f89f54e6814.gif)
Closes https://github.com/facebook/react-native/pull/7640

Differential Revision: D3325440

Pulled By: vjeux

fbshipit-source-id: a06b21d743d56bfea5db5b750836856c3af9bbe2
2016-05-20 02:50:08 -07:00
..
core Improve Docs navigation on handheld devices. 2016-05-20 02:50:08 -07:00
jsdocs [autodocs] add doc blocks to more things 2015-09-03 11:53:20 -07:00
layout Add link to the survey at the bottom of the page 2016-05-12 14:43:22 -07:00
server Display platform-specific examples 2016-05-05 09:10:26 -07:00
src/react-native Improve Docs navigation on handheld devices. 2016-05-20 02:50:08 -07:00
.gitignore Introduce blog 2016-03-24 14:11:30 -07:00
README.md CI now builds docs website and deploys it to /%version% path 2016-02-11 06:17:42 -08:00
package.json Display component methods on the website and tweak the documentation 2016-04-09 11:13:28 -07:00
publish-gh-pages.js fixed website deployment condition logic 2016-04-19 06:43:23 -07:00
setup.sh Docs for website setup 2015-12-28 12:47:09 -08:00

README.md

Run the website server

The first time, get all the dependencies loaded via

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