This repository builds the nymea documentation as a static Sphinx site.
Install the system tools:
sudo apt install python3 python3-pip python3-venv make gitCreate a virtual environment and install the Python dependencies:
python3 -m venv .venv
. .venv/bin/activate
pip install -r requirements.txtGenerate documentation from the cached upstream nymea repositories and build the site:
make generate htmlThe default upstream branch is master. To build from another branch or tag:
make generate html BRANCH=<branch-or-tag>The generated site is written to public/.
For local file browsing, open public/index.html directly. The build uses
explicit .html links so documentation pages can be browsed without a local web
server.
make serveOpen http://localhost:8000.
make cleanThis removes the Sphinx output and generated RST files. It keeps tools/source/, which is used as a clone cache for upstream nymea repositories.
The LXC helper creates an Ubuntu container, mounts the repository, installs the Sphinx build dependencies, and runs the same build:
./build-lxc.sh buildUse a different upstream branch:
./build-lxc.sh --branch=<branch-or-tag> buildEnter the container:
./build-lxc.sh shell