DuneSphinxCMakeDoc¶
Generate CMake API documentation with Sphinx.
- dune_cmake_sphinx_doc¶
Generate the buildsystem documentation from documented CMake modules.
dune_cmake_sphinx_doc( [BUILDTYPE <type>...] [SPHINX_CONF <conf>] [RST_SOURCES <src>...] [MODULE_ONLY] )
A set of documented CMake modules is scanned and converted into Sphinx input. The top-level directory of the generated documentation is the current binary directory of the calling project.
BUILDTYPESet the requested Sphinx build type. If omitted,
htmlis used.SPHINX_CONFTemplate for the
conf.pyfile passed tosphinx-build. The final configuration file is generated withconfigure_file(). If omitted, the default template shipped with dune-common is used.RST_SOURCESAdditional rst source templates configured into the build tree. If omitted, dune-common generates a default
index.rstsetup.MODULE_ONLYOnly document CMake functionality from the current Dune module.
The documented CMake modules are expected to start with a bracketed
.rstdocumentation block. Public commands documented with.. cmake:command::are collected into a flat public command reference, while commands marked with.. dune:internal::are excluded from that public command list.