Guidedog¶
Write once. Explain well. Publish on the web and on paper.
Guidedog builds a documentation website and a PDF book from the same reStructuredText or Markdown files. We write the text once. Guidedog keeps the two editions in step.
A plain text file goes in. Guidedog makes a web page and a book page from it.
What it does¶
- A website. Pages with navigation, search, highlighted code, and light and dark themes, from Jinja templates we can change as much as we like.
- A PDF book. Chapters, cross-references, figures, tables, footnotes, and an index, set by Typst with hyphenation for each language.
- reStructuredText and Markdown. Directives, roles, toctrees, and cross-references work as Sphinx users expect, and MyST Markdown can sit next to them.
- Translations. Gettext catalogs carry a project into other languages. Chinese, Japanese, Korean, and Hindi text is laid out correctly on screen and on paper.
- Diagrams, music, math, and API pages. Graphviz and Typst diagrams, LilyPond music notation, LaTeX equations, and API reference for Rust, Python, and Odin, read from source code.
- Clear errors. A message says what is wrong, where, and how to fix it. A failed build leaves the last good site in place.
One program¶
The release provides one guidedog executable with PDF typesetting, diagram rendering, and music engraving included. We download the archive for our system, unpack it, and start a project. On Windows we keep the bundled runtime files beside the executable.
Configuration is a TOML file. Templates are plain files in our project, and we can edit them. The same command also manages static websites, publishes to GitHub Pages, and keeps discussion records through its linked ssg, pages, and dsc plugins.
Write it, see both¶
On the left is reStructuredText. On the right is what Guidedog made of it on this page. The PDF builder sets the same lines as a book page.
.. note::
Guidedog reads our text once.
The *same* files become a **website**
and a **book**:
.. list-table::
:header-rows: 1
* - Builder
- Result
* - ``html``
- A website
* - ``pdf``
- A PDF book
The same files become a website and a book:
| Builder | Result |
|---|---|
html |
A website |
pdf |
A PDF book |
The manual as a PDF book is an example of the result on paper. It is built from the same files as the manual’s website.
Get started¶
Download the archive for our system from the latest release, put
guidedog on the PATH, and create a project:
guidedog quickstart docs
guidedog build html docs
guidedog build pdf docs
guidedog serve docs
quickstart writes conf.toml, index.rst, and templates we can edit.
serve rebuilds the site while we write. The tutorial walks through
a first project. To build Guidedog from source, install Rust and follow the
instructions in the repository.
Design discussions¶
Guidedog’s design decisions are written down as numbered discussions: the problem, the alternatives, the decision, and the evidence. We can read each one on the web or download it as a PDF.
Our own project can keep its discussions the same way, with guidedog dsc. The manual shows how.
Recent releases¶
-
2026-11-27 Guidedog 1.0.0-beta.16
This release builds the editions of a site at the same time. The Guidedog website, 23 editions with seven PDF books, builds in 13 seconds instead of about a minute, and publishes the same files.
-
2026-11-23 Guidedog 1.0.0-beta.14
Guidedog can now write formulas as MathML, which a browser shows without a script. An application that shows converted pages inside its own can also ask for a self-contained HTML fragment.
-
2026-11-23 Guidedog 1.0.0-beta.15
This release fixes a race in the file locks. A command could be told that the plugin registry, a publisher’s state or a discussion catalog was busy when no command held its lock.