How to Build Documentation Locally
To generate local documentation for the Dagor Engine, follow these steps:
Clone the Repository
Clone the Dagor Engine repository.
Install Python
Download and install Python.
Install Sphinx and Dependencies
Use the provided configuration file to install Sphinx and required components:
pip install -r requirements.txt
Note
On Windows, Sphinx and its dependencies must be installed with administrator privileges.
Install Doxygen
Download and install Doxygen.
Note
On Windows, add Doxygen to the environment PATH:
$env:PATH=$env:PATH+';<doxygen_installation_dir>\bin\'
, replacing<doxygen_installation_dir>
with the path to your Doxygen installation directory (e.g.,c:\Program Files\doxygen
).Build Documentation
In the
DagorEngine/_docs
directory, execute the following steps:Run the Build Script
Execute the script to parse source files:
python3 build_all_docs.py
This script will process documentation from
DagorEngine/prog
and output it to_docs/source/
.Run Sphinx Build Command
Use Sphinx to build the documentation:
On Windows:
sphinx-build . _build
On Linux:
python3 -m sphinx . _build
Sphinx will generate the documentation in HTML format by default, placing the output in
_docs/_build
.
View the Documentation
Open the
index.html
file located in_docs/_build
to view the generated documentation.