discussion/external¶
Package external publishes discussion catalogs with an installed guidedog program, so dsc, the discussion program built without Guidedog’s engine stays small: it manages catalogs itself and asks guidedog only to build them. Guidedog’s report goes straight to the terminal. It allocates with context.allocator and frees nothing: run it in an arena.
Procedures
- external.books_setting :: proc(books: []ds.Book) -> string¶
-
books_setting is the pdf_documents setting of books, as TOML for -D. Every value is a quoted string, so titles and names are data, never settings.
- external.command :: proc(r: ds.Build_Request) -> ([]string, bool)¶
-
command is the guidedog command line that makes r: a build of the catalog with its books as the pdf_documents setting, warnings as errors. It is false when memory ran out before the whole command line was made: a partial one is never run.
- external.program :: proc(given: string) -> string¶
-
program is the guidedog to run: given, then $DSC_GUIDEDOG, then guidedog on PATH.
- external.publish :: proc(r: ds.Build_Request) -> (string, ds.Problem)¶
-
publish runs guidedog for r and returns the output folder it builds.
- external.renderer :: proc() -> ds.Renderer¶
-
renderer is an installed guidedog as a discussion.Renderer. It builds reStructuredText catalogs; an older Typst catalog is built with guidedog gds build.
Constants
- external.ENGINE_VARIABLE :: "DSC_GUIDEDOG"¶
-
ENGINE_VARIABLE names the guidedog program when the command line does not.