Docs Scripts
Contributing
For contribution workflow, PR release-note expectations, and release-label policy, see Contributing Guide.
Doc'ing the docs, very meta. This is just a run-through of how to build the documentation.
To generate updated docs from the scripts below, make sure the dev server is running pnpm dev, then just run pnpm docs:build.
Screenshots
Setup
- At the project root, create a virtual environment:
virtualenv .venv - Activate it
source .venv/bin/activate - Install the packages
pip install -r docs/scripts/docs-requirements.txt - Make sure the .env file
ORIGINis set to the same URL as the demo server.
Running the script
- Get the demo server running
pnpm dev -
In a separate shell to the server, run the screenshot generation:
pnpm docs:screen -
Any new pages you wish to scrape can be added to the above script inside the Python dict
PAGES_TO_CAPTURE - Files are currently exported to docs/images
JSDocs Generate
- Run
pnpm docs:jsdocs
MkDocs Site
- Install MkDocs dependencies:
pip install -r docs/requirements.txt - Build or serve the docs with the config:
mkdocs build -f docs/mkdocs.ymlormkdocs serve -f docs/mkdocs.yml