Skip to content

Latest commit

 

History

History
102 lines (71 loc) · 2.74 KB

File metadata and controls

102 lines (71 loc) · 2.74 KB

Development

Install dependencies

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 install

make 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 --version

If this fails, please check manual instructions:

Dev Container instructions

This project includes a development container configuration for VS Code. To use it:

  1. Install Visual Studio Code and the Dev Containers extension.
  2. Open the project in VS Code.
  3. When prompted, reopen the project in the dev container.
  4. The container will automatically install dependencies and set up the environment.
  5. Go to the Start local server section.
Linux instructions
$ sudo apt install python3 python3-pip
$ python3 -m pip install -r requirements.txt
MacOS instructions
$ brew install python
$ python3 -m pip install -r requirements.txt
Windows instructions
$ winget install Python.Python.3
$ python -m pip install -r requirements.txt

Start local server

To start a local development server, run:

$ make start

If 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.

Generate static content for GitHub Pages deployment

To generate static from the project that can be served using any static contents hosting service (like gh-pages).

$ make build