In order to set up the project, use Python and Node.js/npm and install the
dependencies from requirements.txt and package-lock.json. If you use
micromamba, activate the project environment first:
$ micromamba activate beman$ make installmake install runs python -m pip install -r requirements.txt and npm ci.
With the beman micromamba environment active, the Python packages are installed
into that environment. The npm packages are installed into this repo's
node_modules.
The staged site also builds Antora documentation. Pandoc converts Markdown into
AsciiDoc, and MrDocs generates API reference pages. make install does not
install pandoc or mrdocs; make sure both are already available on PATH
before running make start or make build.
Library docs are configured in beman_libraries_to_import.yaml. Keep library
repos adjacent to this repo (../optional, ../execution, ...). Add or edit a
library there, then run make start.
You can verify MkDocs is properly installed using
$ python -m mkdocs --versionIf this fails, please check manual instructions:
Dev Container instructions
This project includes a development container configuration for VS Code. To use it:
- Install Visual Studio Code and the Dev Containers extension.
- Open the project in VS Code.
- When prompted, reopen the project in the dev container.
- The container will automatically install dependencies and set up the environment.
- Go to the Start local server section.
Linux instructions
$ sudo apt install python3 python3-pip
$ python3 -m pip install -r requirements.txtMacOS instructions
$ brew install python
$ python3 -m pip install -r requirements.txtWindows instructions
$ winget install Python.Python.3
$ python -m pip install -r requirements.txtTo start a local development server, run:
$ make startIf everything is properly installed, the command builds the composed MkDocs + Antora site and serves it on http://127.0.0.1:8000/.
Rerun make start after making documentation changes. The local server serves
the static composed output; it is not a live-reloading MkDocs-only server.
To generate static from the project that can be served using any static contents hosting service (like gh-pages).
$ make build