Skip to content

Latest commit

 

History

History
 
 

website

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Prerequisites

Install the supporting infrastructure.

(cd ../; npm install) && (cd ../website-prototyping-tools; npm install) && npm install

Developing

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.

Publish the website

First time setup

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
)

Building

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)

Publishing

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