Developer setup
Build tools
TODO
Documentation tools
Docker image
There is a docker image that has all tools listed below pre-installed. It is built and published automatically with github actions.
This script will automatically pull the image and build documentation in container:
./script/generate_docs.py build
It can also start preview server on localhost with automatic rebuild on change:
./script/generate_docs.py serve
Manual install
Alternatively, you can install all necessary tools manually.
-
mkdocs - generates HTML documentation from markdown
Install Python and pip, then run:
pip install mkdocs mkdocs-material mkdocs-material-extensions pymdown-extensionsYou can either use virtualenv, or pass
--break-system-packagesto pip command and add~/.local/binto PATH. -
d2 - generates SVG diagrams from text description
Install Go, then run:
go install oss.terrastruct.com/d2@latestAdd
~/go/binor$GOPATH/binto PATH. -
redoc - generates HTML reference from openapi.json
Install node.js and npm, then run:
npm install -g @redocly/cliAdd
~/.nodejs/binto PATH.