MkDocs plugin that combines all pages into one, allowing for easy export to PDF and standalone HTML.
Project description
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-siteto 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
pluginsentry in your config file yet, you'll likely also want to add thesearchplugin. MkDocs enables it by default if there is nopluginsentry set.
Usage
- Navigate to
/print_page/orprint_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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab1c89cdb468352975e3bb3bb0ef25dcc2bb88931b03f173206dc95ab02f843f
|
|
| MD5 |
1d656d2556e89a4e4e281a5b1b25255f
|
|
| BLAKE2b-256 |
a9185c71f48b83191fb30cc58617fea20f56647eaa6cafd06a7fb34c738c5acb
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mkdocs_print_site_plugin-2.8.tar.gz -
Subject digest:
ab1c89cdb468352975e3bb3bb0ef25dcc2bb88931b03f173206dc95ab02f843f - Sigstore transparency entry: 345950153
- Sigstore integration time:
-
Permalink:
timvink/mkdocs-print-site-plugin@b36e58958820fbdfef2434d53deef703449e5290 -
Branch / Tag:
refs/tags/v2.8 - Owner: https://github.com/timvink
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pythonpublish.yml@b36e58958820fbdfef2434d53deef703449e5290 -
Trigger Event:
release
-
Statement type:
File details
Details for the file mkdocs_print_site_plugin-2.8-py3-none-any.whl.
File metadata
- Download URL: mkdocs_print_site_plugin-2.8-py3-none-any.whl
- Upload date:
- Size: 21.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
838bd0a9b7141c11c0f1fdaa51ffe70c35740bec1f07c0806f8018e92f93f9da
|
|
| MD5 |
24adbe00b20bc1991995ecc040deba4f
|
|
| BLAKE2b-256 |
3f3e7513f2f37c563da65d1b91781e047f4a1c0ceac8206d4f6042428428e4ad
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mkdocs_print_site_plugin-2.8-py3-none-any.whl -
Subject digest:
838bd0a9b7141c11c0f1fdaa51ffe70c35740bec1f07c0806f8018e92f93f9da - Sigstore transparency entry: 345950159
- Sigstore integration time:
-
Permalink:
timvink/mkdocs-print-site-plugin@b36e58958820fbdfef2434d53deef703449e5290 -
Branch / Tag:
refs/tags/v2.8 - Owner: https://github.com/timvink
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pythonpublish.yml@b36e58958820fbdfef2434d53deef703449e5290 -
Trigger Event:
release
-
Statement type: