We use Netlify to build the latest version of this theme from Pull Requests, and provide a preview. Ask one of the team members if you need access to its configuration.
Quick command¶
To build a static version of the documentation in docs/ (e.g., for Netlify builds), run:
make build-docsWhat make build-docs does¶
The command is a shorthand for three steps:
Install dependencies – grabs the Python requirements for doc execution plus the JS packages used by the theme.
Build the local theme bundle – runs
make build-book, which writes the theme assets into.deploy/book. This is configured indocs/myst.ymlin thetemplate:key.Render the docs – executes
myst build --execute --htmlso the docs indocs/are rendered using the freshly built theme bundle.
Running those steps manually looks like this:
pip install -r docs/requirements.txt
npm install
make build-book
cd docs
myst build --execute --htmlThe rendered HTML is written to docs/_build/html, ready for Netlify to serve (or for you to preview locally).