Last updated on Edit this page

pdf

Builds and publishes the site, then prints a PDF for every table of contents whose metadata sets pdf: true.

Text
docgen pdf [config] [options]

It accepts the same project path and build options as build. For each document it prints wrote <path>, relative to the output folder.

The command fails with DG905 when no table of contents sets pdf, when no renderer is found, or when the renderer fails or runs past its time limit. See PDF output to configure documents and the renderer.

Example

Shell
pudu run Docgen.pudu pdf docs