This documentation is built using Docusaurus 2 - a static website generator.
It is built and pushed to the gh-pages
branch by a GitHub Actions workflow automatically on every commit to main
ADRs are located in the adrs
directory. See ADR Readme for more information.
Manually maintained docs are located in the docs
directory in markdown format.
Docusaurus requires Node.js 16 and yarn
To install all the dependencies, from within the docs
folder run
yarn install
To generate all the automated documentation (such as API docs and Go package docs)
cd ..
mage GetDependencies
mage GenerateDocs
To serve the docs locally
cd docs
yarn start --locale en
yarn start --locale de
This starts a local development server and opens up a new browser window. Changes are rendered live without having to restart the server.
To generate the static content into the build
directory and which can then be served using a static hosting service
cd ..
mage GetDependencies
mage GenerateDocs
cd docs
yarn build
To deploy the docs to GitHub Pages
cd ..
mage GetDependencies
mage GenerateDocs
cd docs
read -s ghtoken
GIT_USER="MYUSER" GIT_PASS=$ghtoken yarn deploy
This overwrites the gh-pages
branch with a single commit containing all the docs content.
Running these steps manually should not be necessary as there is a GitHub Actions workflow to do this automatically on every commit to
main