Skip to content

Latest commit

 

History

History

website

Website

This website is built using Docusaurus 2, a modern static website generator.

Installation

$ yarn global add node-gyp
$ yarn

If on Eden you might get faster builds by doing eden redirect add $PWD/node_modules bind first.

Build

To build a copy of the static content against the version of buck2 on your path:

$ yarn build

To build a copy of the static content using ../.buck2.sh (which builds buck2 from the repo before invoking it):

$ yarn build_local

To build a copy of the static content using Cargo to build buck2:

$ yarn build_cargo

All of these commands generate static content into the build directory and can be served using any static contents hosting service.

Local Development

$ yarn start

This command starts a local development server and opens up a browser window. Any changes to generated Starlark API documentation require running the build command above, but changes to the .md files that are checked into the repository should be reflected live without having to restart the server.

Run on devserver

If developing on a devserver, you'll need to create a tunnel from your Mac to the server, so you can access it in the browser.

To do that, run the following from your mac:

ssh -L 3000:localhost:3000 $DEVSERVER

Internal variants

To see the internal versions of the page, do:

$ yarn build-fb
$ yarn start-fb

Deployment

$ GIT_USER=<Your GitHub username> USE_SSH=true yarn deploy

If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the gh-pages branch.