The Incus documentation is available at: https://linuxcontainers.org/incus/docs/main/
GitHub provides a basic rendering of the documentation as well, but important features like includes and clickable links are missing. Therefore, we recommend reading the published documentation.
Incus' documentation is built with Sphinx.
It is written in Markdown with MyST extensions. For syntax help and guidelines, see the documentation cheat sheet (source).
For structuring, the documentation uses the Diátaxis approach.
To build the documentation, run make doc
from the root directory of the repository.
This command installs the required tools and renders the output to the doc/html/
directory.
To update the documentation for changed files only (without re-installing the tools), run make doc-incremental
.
Before opening a pull request, make sure that the documentation builds without any warnings (warnings are treated as errors).
To preview the documentation locally, run make doc-serve
and go to http://localhost:8001
to view the rendered documentation.