discussion/embedded¶
Package embedded publishes discussion catalogs with Guidedog’s engine linked into the program: the same documents, templates, diagnostics, and atomic publication as a manual. A program built with the Typst bridge and static Graphviz (tools/release/build.sh –release –typst-bridge) needs no other program to build HTML and PDF. Older Typst catalogs compile with the Typst compiler, linked in or installed. It allocates with context.allocator and frees nothing: run it in an arena.
Procedures
- embedded.legacy :: proc(o: ds.Options, c: ds.Catalog, selected: []ds.Record, program: string) -> (string, ds.Problem)¶
-
legacy builds an older Typst catalog: each selected record compiles directly to docs/build (beside the catalog) as PDF, HTML, or both, with an HTML index of the catalog. program is the Typst compiler to run when none is linked in. Publication is staged, so a compiler failure cannot replace a previously good output.
- embedded.publish :: proc(r: ds.Build_Request) -> (string, ds.Problem)¶
-
publish builds r’s catalog as a Guidedog project, warnings as errors, and returns the output folder. r.program, when given, is the Typst program of a PDF build without the bridge.
- embedded.renderer :: proc() -> ds.Renderer¶
-
renderer is Guidedog’s engine as a discussion.Renderer.