Skip to content
This repository was archived by the owner on Sep 24, 2024. It is now read-only.

Latest commit

 

History

History
63 lines (51 loc) · 1.94 KB

README.md

File metadata and controls

63 lines (51 loc) · 1.94 KB

Documentation

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

Adding content

ADRs

ADRs are located in the adrs directory. See ADR Readme for more information.

Manually maintained documentation

Manually maintained docs are located in the docs directory in markdown format.

Running/deploying Docusaurus

Installation

Docusaurus requires Node.js 16 and yarn

To install all the dependencies, from within the docs folder run

yarn install

Local Development

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.

Build

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

Deployment to GitHub Pages

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