mirror of
https://github.com/status-im/react-native.git
synced 2025-01-16 20:44:10 +00:00
Merge pull request #5009 from magus/website-docs
Docs for website setup
This commit is contained in:
commit
f72cfdd9fa
@ -2,13 +2,13 @@
|
|||||||
|
|
||||||
The first time, get all the dependencies loaded via
|
The first time, get all the dependencies loaded via
|
||||||
|
|
||||||
```
|
```sh
|
||||||
npm install
|
npm install
|
||||||
```
|
```
|
||||||
|
|
||||||
Then, run the server via
|
Then, run the server via
|
||||||
|
|
||||||
```
|
```sh
|
||||||
npm start
|
npm start
|
||||||
open http://localhost:8079/react-native/index.html
|
open http://localhost:8079/react-native/index.html
|
||||||
```
|
```
|
||||||
@ -19,18 +19,12 @@ Anytime you change the contents, just refresh the page and it's going to be upda
|
|||||||
|
|
||||||
First setup your environment by having two folders, one `react-native` and one `react-native-gh-pages`. The publish script expects those exact names.
|
First setup your environment by having two folders, one `react-native` and one `react-native-gh-pages`. The publish script expects those exact names.
|
||||||
|
|
||||||
```
|
```sh
|
||||||
cd ../../
|
./setup.sh
|
||||||
git clone git@github.com:facebook/react-native.git react-native-gh-pages
|
|
||||||
cd react-native-gh-pages
|
|
||||||
git checkout origin/gh-pages
|
|
||||||
git checkout -b gh-pages
|
|
||||||
git push --set-upstream origin gh-pages
|
|
||||||
cd ../react-native/website
|
|
||||||
```
|
```
|
||||||
|
|
||||||
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.
|
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.
|
||||||
|
|
||||||
```
|
```sh
|
||||||
./publish.sh
|
./publish.sh
|
||||||
```
|
```
|
||||||
|
@ -7,6 +7,9 @@
|
|||||||
# LICENSE file in the root directory of this source tree. An additional grant
|
# LICENSE file in the root directory of this source tree. An additional grant
|
||||||
# of patent rights can be found in the PATENTS file in the same directory.
|
# of patent rights can be found in the PATENTS file in the same directory.
|
||||||
|
|
||||||
|
# Start in website/ even if run from root directory
|
||||||
|
cd "$(dirname "$0")"
|
||||||
|
|
||||||
cd ../../
|
cd ../../
|
||||||
if [ "$TRAVIS" ]; then
|
if [ "$TRAVIS" ]; then
|
||||||
git clone "https://reactjs-bot@github.com/facebook/react-native.git" react-native-gh-pages
|
git clone "https://reactjs-bot@github.com/facebook/react-native.git" react-native-gh-pages
|
||||||
@ -18,4 +21,3 @@ git checkout origin/gh-pages
|
|||||||
git checkout -b gh-pages
|
git checkout -b gh-pages
|
||||||
git branch --set-upstream-to=origin/gh-pages
|
git branch --set-upstream-to=origin/gh-pages
|
||||||
cd ../react-native/website
|
cd ../react-native/website
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user