Docs are auto-deployed when you commit to main
(merge a PR!) If the deploy fails, netlify will roll back to the previous version.
Our docs are built using Docusaurus 2, a static website generator.
Install dependencies:
$ yarn
Start a local webserver that will pick up most changes without restarting:
$ yarn start
Code is linted with prettier. To fix up files to match format, run:
$ ./node_modules/.bin/prettier --write path/to/file.mdx
Add a new page to the docs:
-
Choose a subdirectory under
docs/
and insert your Markdown file. Copy the header from an existing page and give it a unique title andid:
. -
Place any images needed by the page in the matching subdirectory under
static/img/docs/
. -
Add the new page to
sidebars.js
.
Add a new post to the changelog:
-
Create a new post under
blog/
using the existing filename conventions. Copy the header from an existing post and give it a nice title. -
Place any images needed by the post in
static/img/blog/
.