Guidedog / Dokumentation
1.0.0-beta.16
Rust API reference¶
guidedoc– Guidedoc, the conversion engine of Guidedog: the document model, the builder readers and passes write through, validation, diagnostics, the adapter registry, and the pipeline that reads, transforms, and renders a document.
guidedoc_defaults– The built-in pieces Guidedog assembles around the engine: the registry of readers and renderers (registry), typed read options for the built-in readers (rst_options, sphinx_options, myst_options), and the highlighters that connect gd-highlight to the renderers (HtmlHighlighter, TypstHighlighter).
guidedoc_rst– The reStructuredText reader of Guidedoc: lines, block structure, explicit markup, and the standard Docutils directives, implemented independently from the Docutils markup specification.guidedoc_rst::messages– The reader’s messages.
guidedoc_commonmark– Markdown for Guidedoc, as two readers with distinct ids: „commonmark“ is pure CommonMark 0.31.2 and takes no settings; „myst“ is the MyST Markdown that Sphinx projects write (myst-parser 0.16.1): directives, roles, targets, comments, front matter, footnotes, GFM tables, and the optional syntax Settings::enable_extensions turns on.
guidedoc_sphinx– reStructuredText with the Sphinx layer: Sphinx’s directives, roles, and domains, implemented independently on the base reader’s extension interface (guidedoc_rst::Extension).
guidedoc_html– The HTML renderer of Guidedoc.
guidedoc_typst– The Typst-source renderer of Guidedoc: a validated document becomes one Typst source file.
guidedoc_text– The plain-text renderer of Guidedoc, following the conventions of Sphinx’s text builder: paragraphs wrapped at 70 columns, titles underlined with = - ~ and the other section characters, and 1. list markers with hanging indents, definitions and literal blocks indented by three spaces, grid tables drawn with +—+ borders, and Note: admonitions.
gd_report– Elm-style diagnostic reports shared by every Guidedog crate.gd_report::ansi– ANSI styling for terminals: the style codes reports and command lines use, text in a style, and whether a stream should be styled at all.
gd_host– gd-host: where the Guidedoc engine meets the operating system.
gd_jinja– gd-jinja: a standalone Jinja 3.x template engine.
gd_highlight– Syntax highlighting with Pygments‘ token classes (k, nf, s2, c1) and stylesheets, for 35 languages, without a Python runtime.
gd_gettext– GNU gettext message catalogs: reading and writing PO/POT text, reading and writing compiled MO files (both byte orders), Plural-Forms expressions, msgmerge-style updates with fuzzy matching, and translation statistics.
gd_plugins– Typed build plugins (GDS 0010) and publishers (GDS 0009), linked into an application or run as installed programs behind a bounded JSON Lines protocol.gd_plugins::files– Private folders and files, and files replaced in one step: what a host or a publisher needs to keep state (a registry, tokens, a frozen site) that only its user may read.
gd_score– Exact musical time, spelled pitches and a flat score shared by readers and engravers.
gd_lilypond– Reads notation into a music model.
gd_engrave– Native music engraving: a score becomes positioned marks, then self-contained SVG.
gd_project– The Guidedog project builder: a handful of verbs over a loaded project.
gd_cli– The guidedog command line as a library: it reads a command line, does what it asks, reports on standard error, and returns the exit status. cmd/guidedog is a call to run; a program with plugins linked in calls run_with with its registry.