Skip to main content

MkDocs plugin that combines all pages into one, allowing for easy export to PDF and standalone HTML.

Project description

Actions Status PyPI - Python Version PyPI PyPI - Downloads codecov GitHub contributors PyPI - License

mkdocs-print-site-plugin

MkDocs plugin that adds a print page to your site that combines the entire site, allowing for easy export to PDF and standalone HTML. See demo.

Features :star2:

  • Support for mkdocs-material theme, including features like instant loading, dark color themes and certain plugins (f.e. the tags plugin)
  • Support for readthedocs theme
  • Support for pagination in PDFs
  • Many options to customize appearance
  • Option to add a cover page
  • Lightweight, no dependencies
  • Support for the autorefs plugin

Setup

Install the plugin using pip3:

pip3 install mkdocs-print-site-plugin

Next, add the following lines to your mkdocs.yml:

plugins:
  - search
  - print-site

⚠️ Make sure to put print-site to the bottom of the plugin list. This is because other plugins might alter your site (like the navigation), and you want these changes included in the print page.

If you have no plugins entry in your config file yet, you'll likely also want to add the search plugin. MkDocs enables it by default if there is no plugins entry set.

Usage

  • Navigate to /print_page/ or print_page.html
  • Export to standalone HTML (see export to HTML)
  • Export to PDF using your browser using File > Print > Save as PDF (see export to PDF)

Documentation

Available at timvink.github.io/mkdocs-print-site-plugin.

Contributing

Contributions are very welcome! Start by reading the contribution guidelines.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mkdocs_print_site_plugin-2.8.tar.gz (231.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mkdocs_print_site_plugin-2.8-py3-none-any.whl (21.5 kB view details)

Uploaded Python 3

File details

Details for the file mkdocs_print_site_plugin-2.8.tar.gz.

File metadata

  • Download URL: mkdocs_print_site_plugin-2.8.tar.gz
  • Upload date:
  • Size: 231.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for mkdocs_print_site_plugin-2.8.tar.gz
Algorithm Hash digest
SHA256 ab1c89cdb468352975e3bb3bb0ef25dcc2bb88931b03f173206dc95ab02f843f
MD5 1d656d2556e89a4e4e281a5b1b25255f
BLAKE2b-256 a9185c71f48b83191fb30cc58617fea20f56647eaa6cafd06a7fb34c738c5acb

See more details on using hashes here.

Provenance

The following attestation bundles were made for mkdocs_print_site_plugin-2.8.tar.gz:

Publisher: pythonpublish.yml on timvink/mkdocs-print-site-plugin

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mkdocs_print_site_plugin-2.8-py3-none-any.whl.

File metadata

File hashes

Hashes for mkdocs_print_site_plugin-2.8-py3-none-any.whl
Algorithm Hash digest
SHA256 838bd0a9b7141c11c0f1fdaa51ffe70c35740bec1f07c0806f8018e92f93f9da
MD5 24adbe00b20bc1991995ecc040deba4f
BLAKE2b-256 3f3e7513f2f37c563da65d1b91781e047f4a1c0ceac8206d4f6042428428e4ad

See more details on using hashes here.

Provenance

The following attestation bundles were made for mkdocs_print_site_plugin-2.8-py3-none-any.whl:

Publisher: pythonpublish.yml on timvink/mkdocs-print-site-plugin

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page