doc-engine
Zero-config Markdown to PDF documentation engine using Typst
TLDR
SYNOPSIS
doc-engine build [INPUT_FILE] [options]doc-engine infodoc-engine --help | --version
DESCRIPTION
doc-engine is a CLI tool that converts Markdown files into professionally styled PDF documents using Typst as the rendering backend. It auto-detects README.md, extracts metadata from Git, and produces high-quality technical or academic reports complete with cover page, table of contents, and syntax-highlighted code.It requires no LaTeX, Pandoc, or manual configuration. The tool supports five built-in templates and custom accent colors. It can also perform source error checking with precise line/column reporting.
PARAMETERS
build [INPUTFILE_]
Convert the Markdown file to PDF. Defaults to auto-detecting README.md in the current directory.-o, --output file.pdf
Output file path. Default: <input>_doc.pdf-t, --title title
Document title. Defaults to first # heading or Git-derived.-a, --author name
Author name. Defaults to `git config user.name`.--template name
Template: academic (default), modern, minimal, technical, book.--accent color
Accent color (hex or named: blue, teal, rose, etc.).--bib file.bib
Bibliography file for IEEE-style references section.--dry-run
Validate Markdown and report errors without producing PDF.--open
Open the generated PDF after creation.--no-branding
Omit "doc-engine" attribution from footer.
EXAMPLES
Basic zero-config usage in a project directory:
CAVEATS
Images in Markdown are rendered only as alt text (remote images not downloaded or embedded). Complex layouts may require reviewing the output PDF. Requires Python 3.10+ and the Typst Python bindings (installed automatically).
SEE ALSO
typst(1), pandoc(1), weasyprint(1)
