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-packageoption, for example:dh_mkdocs --theme-package mkdocs-bootstrapdh_mkdocsonly symlinks non-empty files with identical content.
- •
-
For the standard
mkdocsandreadthedocsthemes, 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 theDepends: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)