LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

doc-engine

Zero-config Markdown to PDF documentation engine using Typst

TLDR

Generate a PDF from README.md with zero configuration
$ doc-engine build
copy
Convert a specific file and override title and author
$ doc-engine build CONTRIBUTING.md -o guide.pdf -t "Guide" -a "Team"
copy
Use a different template and accent color
$ doc-engine build --template modern --accent teal
copy
Check for Markdown errors without generating PDF
$ doc-engine build --dry-run
copy
Install via pipx
$ pipx install doc-engine-cli
copy

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:

$ doc-engine build
copy
Generate with custom options:
$ doc-engine build docs/api.md -o api.pdf --template technical --accent "#7c3aed"
copy

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)

RESOURCES

Copied to clipboard
Kai