# Generating the Code Reference When Doxygen is present, the build offers a `docs` target that produces the reference from the documentation comments carried in the headers and sources, together with the markdown documents in `docs/`. OVERVIEW.md becomes its front page, and DESIGN.md, MODULES.md, CONSUMERS.md, BUILD.md, and this file follow as chapters ahead of the namespace, class, and file reference. One command generates it: ``` cmake --build --target docs ``` The finished documents land in `/docs/`: ``` /docs/pdf/dpm-core-.pdf the PDF reference /docs/html/index.html the HTML reference /docs/tmp/ scratch space for the generators ``` Doxygen and LaTeX both work under `docs/tmp/`, and the finished document is copied up into `docs/`. `cmake --build --target clean` removes the whole tree. Two output formats are available as configure-time options: - **`-DDPM_DOCS_PDF`** (default ON) — PDF reference, via Doxygen's native LaTeX output; requires `pdflatex` and `makeindex` - **`-DDPM_DOCS_HTML`** (default OFF) — HTML reference ``` cmake -B -DDPM_DOCS_HTML=ON cmake --build --target docs ```