docs/
docs/ holds the documentation of MrDocs: the Antora site, its extensions, its UI and the scripts that build them.
The pages use AsciiDoc, and Antora builds them.
The page on changing the docs, Docs changes, covers the Antora facts and the writing rules.
Content that belongs elsewhere
| Content | Where it goes |
|---|---|
Projects a page tells the reader to run |
|
Expected output a page quotes |
|
Scripts that check or generate documentation inputs |
|
The generated reference and the built site |
|
Contents by path
| Path | Purpose |
|---|---|
|
The AsciiDoc source: |
|
Antora extensions: |
|
The Antora UI bundle sources, built by |
|
The landing page, an |
|
|
|
CSS shared by the site and the landing page. |
|
|
The files at the top of docs/ are the build itself:
-
antora.ymlis the component descriptor, andantora-playbook.ymlis the site playbook. -
mrdocs.ymlis the configuration that documents MrDocs with MrDocs. -
package.jsonlists the Node dependencies. -
build_docs.shandbuild_local_docs.shbuild the site, with.battwins for Windows. -
CMakeLists.txtandmrdocs-build.cmakeare the CMake side, covered in the next section.
Build integration
The root build adds docs/ when MRDOCS_BUILD_DOCS is on.
docs/CMakeLists.txt then defines these targets:
| Target | What it does |
|---|---|
|
Runs the built |
|
Copies that output into |
|
Runs Antora over the site. It exists when |
docs/mrdocs-build.cmake is not part of that build.
When MRDOCS_MRDOCS_BUILD is on, the root CMakeLists.txt includes it and returns, so the configure step produces only a compile_commands.json that covers every public header.