Skip to content

Files

Latest commit

87f59e4 · Feb 10, 2017

History

History
This branch is 15047 commits behind facebook/flow:main.

website

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Nov 13, 2016
Nov 10, 2016
Jan 3, 2017
Jul 1, 2016
Dec 5, 2016
Oct 19, 2016
Jun 22, 2016
Jun 13, 2016
Feb 10, 2017
Aug 1, 2016
Oct 6, 2016
Jun 8, 2016
Nov 2, 2016
Feb 22, 2016
Feb 22, 2016
Feb 18, 2016
Jun 17, 2016
Jun 17, 2016
Nov 13, 2016
Nov 2, 2016
Nov 13, 2016
Jun 22, 2016
Jan 6, 2017
Nov 13, 2016
Sep 30, 2016
Dec 1, 2016
Nov 13, 2016

Contributing to flowtype.org

The Flow website is built using Jekyll.

Running locally

Install Flow

Many of our docs are written as JS files, in which comments are converted to markdown and JS is typechecked by Flow and shown as syntax-highlighted code blocks with any Flow errors displayed inline. We use a custom plugin to build these .doc.js files.

So, Flow must be installed and on your path. See the instructions on GitHub.

Install Ruby

Many systems ship with a fairly old version; we use 2.2 to build and deploy the site. One way to get a recent version is to use rvm:

gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
\curl -sSL https://get.rvm.io | bash -s stable --ruby=2.2

Serve the Site

# from this directory (website/)
make serve

This will fire up a web server at http://localhost:4000 by default. To access it from other machines, add --host :: (all interfaces, including IPv6).

To automatically rebuild the site by watching the filesystem for changes, run:

make watch

It takes a few seconds, but just refresh the page to see changes.

Publishing the Website

On each commit, Travis builds the site and then pushes the results to S3.