Guidedog Manual 1.0.0-beta.16
Language
On this page
Guidedog / Documentation 1.0.0-beta.16

Maintain this documentation

Guidedog documents itself with Guidedog. The repository has four documentation projects and a root site manifest: docs/manual (this manual), docs/api (the standalone Rust API reference of the crates, also included in the manual’s PDF appendix), docs/gds (the design records), docs/site (the website landing page and release notes), and docs/conf.toml (the multi-project SSG configuration that mounts docs/site, docs/manual, and docs/gds). Each project keeps its generated templates and static assets locally so we can edit them in place. Design records stay out of the manual’s table of contents.

All documentation is reStructuredText under docs/. The only Markdown files are each crate’s README.md, a short cheat sheet, and the files GitHub needs at the root. Design notes, internals, ledgers and conformance tables are pages under docs/manual/internals.

Build the manual

We build guidedog first (see Build and install Guidedog). Then, from the repository root:

cargo build --release -p guidedog-cmd
target/release/guidedog build html docs/manual -j auto -W
target/release/guidedog build pdf docs/manual -W
target/release/guidedog serve docs/manual

The PDF command creates one book, with links between its chapters. cargo run --release -p guidedog-cmd -- build html docs/manual -W builds and runs in one step.

The API reference

docs/api generates its pages from the crates’ source with rust_autoapi_crates (see Document a codebase). The reference is the doc comments themselves (/// on every public item). There is no copied API manuscript to keep in sync. We fix a mistake in the crate, then rebuild:

target/release/guidedog build html docs/api -W
target/release/guidedog build pdf docs/api -W

A warning such as rust.autodoc.link names the doc comment and the link that does not resolve.

Build and check discussions

cd docs/gds
../../target/release/guidedog dsc index
../../target/release/guidedog dsc check
../../target/release/guidedog dsc build --target=both

docs/gds is a discussion catalog like any other, so guidedog dsc runs in it (see Keep a discussion catalog). It manages metadata, numbers, state, and recovery. Its RST publication path calls the project engine in process. It produces a complete HTML site and a separate PDF for each record. A selector limits the PDFs. HTML remains a coherent site with a complete catalog. A selected PDF preview uses _build/selected/<artifact>/pdf. It leaves the complete catalog in _build/pdf intact.

target/release/guidedog dsc build guidedoc-engine --target=pdf --dir=docs/gds
target/release/guidedog build html docs/gds -W

The ordinary HTML project command works directly on docs/gds, while guidedog dsc build (or the discussion-records mount in docs/conf.toml) builds one standalone PDF per record without a combined index PDF. The GDS project uses its own conf.toml and its own _build directory. Read docs/gds/workflow.rst for the authoring workflow.

Translations

Translation catalogs live in docs/manual/locales (for the manual and repository overview) and docs/site/locales (for the landing page and release notes). After we change English text, we refresh them:

target/release/guidedog build -b gettext docs/manual docs/manual/locales/templates
target/release/guidedog intl update -p docs/manual/locales/templates -l de -l es -l hi -l ja -l ko -l zh_CN docs/manual
target/release/guidedog build -b gettext docs/site docs/site/locales/templates
target/release/guidedog intl update -p docs/site/locales/templates -l de -l es -l hi -l ja -l ko -l zh_CN docs/site

See Internationalization for the translation workflow.

Before publishing

Check links and diagnostics. Inspect wide tables and code blocks. Render the PDF pages after changing typography. Test the HTML at desktop and phone widths, in light and dark modes. Make sure the mathematics and diagrams work without a network connection. For engine changes, run cargo test --workspace, cargo clippy --workspace --all-targets and cargo run -p check.