react-native/website
Christopher Chedeau 847220957a Add "Edit on GitHub" link on normal docs pages
Summary:
<img width="938" alt="screen shot 2016-01-20 at 10 38 23 pm" src="https://cloud.githubusercontent.com/assets/197597/12473376/8f0ac970-bfc6-11e5-9e44-0481e9f250f1.png">
Closes https://github.com/facebook/react-native/pull/5454

Reviewed By: svcscm

Differential Revision: D2849235

Pulled By: vjeux

fb-gh-sync-id: 0103f3d5249b1dfc03aa77feb9ae3bb7bbe9c746
2016-01-20 23:47:33 -08:00
..
core Fix issues running the website locally on windows with npm3 2016-01-02 03:56:32 -05:00
jsdocs [autodocs] add doc blocks to more things 2015-09-03 11:53:20 -07:00
layout Add "Edit on GitHub" link on normal docs pages 2016-01-20 23:47:33 -08:00
server Add "Edit on GitHub" link on normal docs pages 2016-01-20 23:47:33 -08:00
src/react-native Add utayomin to showcase 2016-01-21 11:47:21 +09:00
.gitignore Add *.log to website directory 2015-05-04 02:32:20 +03:00
README.md Docs for website setup 2015-12-28 12:47:09 -08:00
package.json Fix issues running the website locally on windows with npm3 2016-01-02 03:56:32 -05:00
publish-android.sh Release React Native for Android 2015-09-14 18:13:39 +01:00
publish.sh small hack to have circle.yml in gh-pages generated branch 2016-01-05 19:24:48 +00: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

First setup your environment by having two folders, one react-native and one react-native-gh-pages. The publish script expects those exact names.

./setup.sh

Then, after you've done changes, just run the command and it'll automatically build the static version of the site and publish it to gh-pages.

./publish.sh