Skip to content

Installation

Users

mkdocs-to-pdf is available on PyPi:

pip install mkdocs-to-pdf

Developers

There are two sets of extras:

  • docs: Extra packages to build the docs directory.
  • samples: Extra packages to build everything in the samples directory.

There is also the all extra, which installs all of these.

For example:

pip install mkdocs-to-pdf[all]

Requirements

WeasyPrint

mkdocs-to-pdf depends on weasyprint.

weasyprint has OS specific dependencies. Follow the guidance in the weasyprint documentation.