Guidedog Manual
===============
**Write once. Explain well. Publish on the web and on paper.**
Guidedog is a documentation generator that builds HTML websites and PDF books
from reStructuredText and Markdown sources. It operates as a self-contained
executable without requiring a Python environment or external LaTeX installation.
The conversion engine is called **Guidedoc**; PDF pages are typeset using Typst,
and the documentation website is generated directly.
A small project needs three things: a source document, a table of contents,
and ``conf.toml``. Start with :doc:`tutorial/first-project`.
For a particular task, use :doc:`howto/index`.
For an exact contract, use :doc:`reference/index`.
.. graphviz::
:class: graphviz-adaptive
:caption: One source project, two publications.
:alt: RST and Markdown enter Guidedoc; HTML goes to a browser and Typst produces PDF.
digraph publication {
graph [rankdir=TB, bgcolor="transparent", pad="0.22", nodesep="0.3", ranksep="0.35"];
node [shape=box, style="rounded,filled", fillcolor="#edf5f2", color="#216553",
fontname="Helvetica", fontcolor="#16382f", fontsize=12, margin="0.18,0.1"];
edge [color="#216553", fontname="Helvetica", fontcolor="#16382f", fontsize=10, arrowsize=0.7];
source [class="gd-input", shape=note, fillcolor="#fbfaf3",
label=<One source project
RST / Markdown + assets>];
engine [label=<Guidedog + Guidedoc
Read, resolve, render>];
html [class="gd-output", fillcolor="#eef4fa",
label=<HTML website
Navigation and search>];
pdf [class="gd-output", fillcolor="#eef4fa",
label=<PDF book
Typeset by Typst>];
source -> engine;
engine -> html;
engine -> pdf;
}
.. toctree::
:maxdepth: 2
:caption: Learn
tutorial/index
topics/index
.. toctree::
:maxdepth: 2
:caption: Work
howto/index
reference/index
.. toctree::
:maxdepth: 2
:caption: Understand
internals/index
plugins
about
repository
.. toctree::
:maxdepth: 1
:caption: API reference
api/index