react-native/website
Joel Marcey b1e49832ef Make prev links work in guides and APIs.
Summary:
We had rendering support for prev links, but we never had any previous links in our metadata. Only next links. This adds that support to both Guides and APIs.

**For guides**: `previous` is manually inserted into the metadata of the actual markdown file.
**For APIs/Components**: `previous` is established via code within `extractDocs.js`

> This isn't totally perfect. For example, the transition from the last guide to the first API/component has a next link from the guide, but not a previous link from the API since the way you get the previous links are different from guides and APIs. But this gets us really close.
Closes https://github.com/facebook/react-native/pull/8754

Differential Revision: D3557972

Pulled By: hramos

fbshipit-source-id: e270bb51e7a4f59f61dad28ae0928d27d0af3d4a
2016-07-13 14:58:27 -07:00
..
core Use tabIndex instead of tabindex 2016-07-12 12:28:22 -07:00
jsdocs Improve autogen for reference docs including jsdoc support 2016-06-21 14:28:43 -07:00
layout Add post documentation lockdown survey link 2016-07-04 10:58:25 -07:00
server Make prev links work in guides and APIs. 2016-07-13 14:58:27 -07:00
src/react-native Added FanVision Bolt to showcase 2016-07-12 23:28:22 -07:00
.gitignore Introduce blog 2016-03-24 14:11:30 -07:00
README.md Fix instructions so react-native packages are installed first 2016-06-01 17:58:22 -07:00
package.json Improve autogen for reference docs including jsdoc support 2016-06-21 14:28:43 -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

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