This website is built using Docusaurus, a modern static website generator.
$ yarn
Use python script to generate docs from the data.
python3 -m scripts.gen_docs --language en
python3 -m scripts.gen_docs --language zh
$ yarn start
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
To add translation, generate translation file and modify the corresponding json.
npm run write-translations -- --locale zh
$ NODE_OPTIONS="--max-old-space-size=32768" yarn build
This command generates static content into the build directory and can be served using any static contents hosting service.
Using SSH:
$ USE_SSH=true NODE_OPTIONS="--max-old-space-size=32768" yarn deploy
Not using SSH:
$ GIT_USER=<Your GitHub username> NODE_OPTIONS="--max-old-space-size=32768" 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.