carta
dh_mkdocs(1)

dh_mkdocs1

Helps with packaging mkdocs-generated documentation

Usage

dh_mkdocs [debhelper options] [-Xitem] [{-Tpackage | --theme-package package}]

Overview

dh_mkdocs is a helper program for packaging documentation generated by MkDocs. More specifically:

•

It replaces static files with symlinks to their packaged versions if possible. For packages using non-standard themes, use the --theme-package option, for example:

    dh_mkdocs --theme-package mkdocs-bootstrap

dh_mkdocs only symlinks non-empty files with identical content.

•

For the standard mkdocs and readthedocs themes, it replaces references to the highlight.js library from CDN with references to the packaged version of that library.

•

It adds the needed dependencies to ${mkdocs:Depends} substitution variable. Please add this variable to the Depends: field of your documentation package.

You can pass --with mkdocs to dh(1) to make it automatically call dh_mkdocs after dh_installdocs.

Options

-Xitem, --exclude item

Exclude files that contain item anywhere in their filename from being symlinked or edited.

This option can be specified multiple times.

-Tpackage, --theme-package package

Scan the specified additional package for files that can be used as symlink targets.

This option can be specified multiple times.

History

  • Debian 13 (Trixie): the text shown here
  • Debian 12 (Bookworm)
  • Debian 11 (Bullseye)
  • Debian 10 (Buster)

Author

Dmitry Shachnev <[email protected]>

From mkdocs 1.6.1+dfsg1-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.