The Subnomicon website is built using Docusaurus 3, a modern static website generator.
Once you are prepared to merge your changes to the repo, please ensure you check out the CONTRIBUTION.md for proper procedures
Install the required packages
yarn
Start a local development server
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.
$ yarn build
This command generates static content into the build
directory and can be served using any static contents hosting service.
If you are working with different languages you will need to either
a) Build the server and serve it with yarn build
&& yarn serve
b) Run the dev server for each language with yarn start -- --locale en
(Replace 'en' with the two letter code of whichever language you are working with)
This is only for preparing the documentation for deployment to GitHub Pages.
- Checkout to
main
branch.
git checkout main
- Ensure the build is working on a production build.
yarn build
This command generates static content into the
build
directory and will optimize any links, content, & documents.
- Deploy
main
togh-pages
branch with the below command.
GIT_USER=<Your GitHub username> yarn deploy