A MkDocs plugin that exports your documentation as PDF with rendered JavaScript content.
Project description
MkDocs PDF with JS Plugin
A MkDocs plugin that exports your documentation as PDF with rendered JavaScript content. This is very useful if you want to have your mermaid diagrams in your pdf documents as well. A download link will be added to the top of your documentation.
Requirements
For executing the JavaScript code ChromeDriver is used. So it is nesseccary to
- install Chrome or Chromium
- download ChromeDriver and
- add the ChromeDriver to your PATH
Installation
Install the package with pip:
pip install mkdocs-pdf-with-js-plugin
Enable the plugin in your mkdocs.yml as folowing
plugins:
- search
- pdf-with-js
or with options
plugins:
- search
- pdf-with-js:
enable: true
Note: If you enable this plugin and you don't have plugins entry in your MkDocs config file yet, you will need to explicitly enable the search plugin. This plugin is enable by default when no plugins entry is set.
You can find further information about plugins in the MkDocs documentation
Config
enable- Enable or disable the PDF export.default: true
Usage
While building mkdocs build or serving mkdocs serve the documentation the pdfs get generated. They are stored in site_dir/pdfs.
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-pdf-with-js-plugin-0.1.3.tar.gz.
File metadata
- Download URL: mkdocs-pdf-with-js-plugin-0.1.3.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1dc39c6548e2aaf120a6c81494c000b0a7e419e8676d57985e35aa6aebadebcc
|
|
| MD5 |
cfe09acf1a23ec99cf4ec5ccf346d5ca
|
|
| BLAKE2b-256 |
77c8c161405a7b81f51bc173b5053685b09647461809f27f722b2bdd773dde77
|
File details
Details for the file mkdocs_pdf_with_js_plugin-0.1.3-py3-none-any.whl.
File metadata
- Download URL: mkdocs_pdf_with_js_plugin-0.1.3-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
12814fcdebb24bb686e81f01a184eebbc07ca7ea143b21b9ad9d5cfa2822e700
|
|
| MD5 |
fc8ba284d278de86edf904cbaadf1722
|
|
| BLAKE2b-256 |
12ce5ddb7f8e649295a2cc60264c52bb9dae368a8b582d08e6083831e3e52b30
|