Install the supporting infrastructure.
(cd ../; npm install) && (cd ../website-prototyping-tools; npm install) && npm install
Launch a development server that you can use to preview edits.
npm start
# Then open http://localhost:8080/relay/
Anytime you change the contents, just refresh the page to rebuild the site.
The publish script expects you to have two sibling folders named relay
and relay-gh-pages
.
# From relay/website/
(
cd ../../
git clone [email protected]:facebook/relay.git relay-gh-pages
cd relay-gh-pages
git checkout gh-pages
)
It's important that you run the server and hit the site at least once before you build. See ‘Developing,’ above. After that's done, build the website.
# From relay/website/
(cd ../; ./website/publish.sh)
The build system has now built the website into relay-gh-pages
. All that's left to do is to check it over, commit it, and push it to origin/gh-pages
.
cd ../../relay-gh-pages
git status # Check it over to see if the changes look right
git diff --word-diff=color # Or go over it in detail
git add --all && git commit -m "Updating the website in preparation for v0.3.0"
git push