{ "info": { "author": "Comwes", "author_email": "contact@comwes.eu", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Intended Audience :: Education", "Intended Audience :: Information Technology", "Intended Audience :: System Administrators", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Programming Language :: Other", "Programming Language :: Python", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3 :: Only", "Topic :: Documentation", "Topic :: Printing" ], "description": "# MkPDFs for MkDocs [![Build Status](https://travis-ci.org/comwes/mkpdfs-mkdocs-plugin.svg?branch=master)](https://travis-ci.org/comwes/mkpdfs-mkdocs-plugin)\n\n*It's a MkDocs plugin that export your documentation in a single PDF file*\n\n[![MkPDFs for MkDocs](https://raw.githubusercontent.com/comwes/mkpdfs-mkdocs-plugin/master/docs/assets/images/mkpdfs.png)][mkpdfsdoc]\n\n [mkpdfsdoc]: https://mkpdfs.comwes.eu\n\n\nThe MkPDFs plugin will export yor documentation in your MkDocs repository as a PDF file using [WeasyPrint](http://weasyprint.org/).\n\nUnlike other plugin where customizing the design of the generated PDF is complicated, this plugin brings the ability to completely control the design of the generated PDF.\n\nWhat makes this plugin particular, is that:\n\n1. Your documentation is exported as a single PDF file\n1. The order of pages fits the navigation as defined in the MkDocs configuration file\n1. The ability to override the default design to make it fit your needs\n1. The ability to exclude some files from the generated PDF\n1. No layout issues\n1. No conflict with the theme design\n1. Table of contents integrated in the PDF\n\n## Requirements\n\n1. This package requires MkDocs version 1.0\n2. Python 3.4 or higher\n3. WeasyPrint depends on cairo, Pango and GDK-PixBuf which need to be installed separately. Please follow your platform installation instructions carefully:\n - [Linux][weasyprint-linux]\n - [MacOS][weasyprint-macos]\n - [Windows][weasyprint-windows]\n\n## Limitation\n\nThe PDF version of the documentation will not be created if the used generated page content's is not enclosed in an `
` tag or in a `
` tag with property `role=\"main\"`.\n\n## Installation\n\nInstall the package with `pip`:\n\n```bash\npip3 install mkpdfs-mkdocs\n```\n\nEnable the plugin in your `mkdocs.yml` as folowing\n\n```yaml\nplugins:\n - search\n - mkpdfs\n```\n\nor with options\n\n```yaml\nplugins:\n - search\n - mkpdfs:\n - company: The War Company Inc.\n - author: Monsieur Silvestre\n```\n\n> **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 enabled by default when no `plugins` entry is set.\n\nYou can find further information about plugins in the [MkDocs documentation][mkdocs-plugins].\n\n## How does it work?\n\nWhen building or serving your documentation with `mkdocs build` or `mkdocs serve`, the following message will be displayed if everything wend smoothly:\n\n> The PDF version of the documentation has been generated.\n\n## Options\n\nThis plugin supports following options to allow you better handle the customisation of the generated PDF.\n\n\n| Option | Description |\n| --- | --- |\n| `author` | The author of the document. This information will be printed on the cover page of the generated PDF. |\n| `company` | If this documentation is from a company, then you should provide this information. It will be displayed on the front page of the documentation, bellow the author information|\n| `toc_title` | The table of content title. The default value is **Table of Contents** |\n| `toc_position` | The position of the table of contents. This option supports 3 differents values: `pre` to put the toc at the beginning of the file but after the cover (**the default value*), `post` to put it at the end of the file or `none` to not generate it at all. |\n| `output_path` | The file name of the generated PDF, relative to the `site_dir`. By default this location is set to `pdf/combined.pdf`|\n| `design` | Relative to your `MkDocs repository`, this option is the location of the CSS file defining the layout of the generated PDF. If this option is not defined the default design will be used. Defining an non existing file will cause the build or serve failure. |\n\n## Contributing\n\nFrom reporting a bug to submitting a pull request, every contribution is appreciated and welcome. Report bugs, ask questions and request features using [Github issues][github-issues].\n\n\n## Thanks to\n\nThe idea of this plugin has raised while working on a project in the public sector. After many research I found some plugins that guided me to the current solution. They have inspired me a lot, so many thanks to:\n\n- [Terry Zhao][zhaoterryy] the author of the [MkDocs PDF Export Plugin][mkdocs-pdf-export-plugin] the source of our inspiration. We've used some of his code in this project.\n- [Kozea team][kozeateam] for bringing [WeasyPrint](https://github.com/Kozea/WeasyPrint) to us as an open source project. The default design of the generated PDF is based on their work [report Sample](https://github.com/Kozea/WeasyPrint/tree/gh-pages/samples/report).\n- [Martin Donath][squidfunk] the author of [Material for MkDocs][materialmkdoc], some of his css file were used to design the layout of Admonition, Codehilite, Arthmatex, emoji, and more.\n\n\n[weasyprint-linux]: https://weasyprint.readthedocs.io/en/latest/install.html#linux\n[weasyprint-macos]: https://weasyprint.readthedocs.io/en/latest/install.html#macos\n[weasyprint-windows]: https://weasyprint.readthedocs.io/en/latest/install.html#windows\n[mkdocs-plugins]: http://www.mkdocs.org/user-guide/plugins/\n[github-issues]: https://github.com/comwes/mkpdfs-mkdocs-plugin/issues\n[contributing]: CONTRIBUTING.md\n[mkdocs-pdf-export-plugin]: https://github.com/zhaoterryy/mkdocs-pdf-export-plugin\n[kozeateam]: https://github.com/Kozea\n[zhaoterryy]: https://github.com/zhaoterryy\n[squidfunk]: https://github.com/squidfunk\n[materialmkdoc]: https://github.com/squidfunk/mkdocs-material", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://mkpdfs.comwes.eu", "keywords": "mkdocs documentation pdf export weasyprint markdown plugin", "license": "GPLv3", "maintainer": "Gerry Ntabuhashe", "maintainer_email": "gnt@comwes.eu", "name": "mkpdfs-mkdocs", "package_url": "https://pypi.org/project/mkpdfs-mkdocs/", "platform": "", "project_url": "https://pypi.org/project/mkpdfs-mkdocs/", "project_urls": { "Bug Reports": "https://github.com/comwes/mkpdfs-mkdocs-plugin/issues", "Homepage": "https://mkpdfs.comwes.eu", "Source": "https://github.com/comwes/mkpdfs-mkdocs-plugin" }, "release_url": "https://pypi.org/project/mkpdfs-mkdocs/1.0.1/", "requires_dist": null, "requires_python": ">=3.4", "summary": "Allows the generation of the PDF version of your MkDocs documentation.", "version": "1.0.1" }, "last_serial": 5438162, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "d611c0c827aa4249fdffa87def93c844", "sha256": "85e901db72f9426399ed8c4ac425c273e3025c305571a5fbda5b10a9b1d3ae65" }, "downloads": -1, "filename": "mkpdfs-mkdocs-1.0.0.tar.gz", "has_sig": false, "md5_digest": "d611c0c827aa4249fdffa87def93c844", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4", "size": 1763841, "upload_time": "2019-04-14T22:02:19", "url": "https://files.pythonhosted.org/packages/81/1a/f942706b7fa6c244e7b87d9fb5ce0dcbaa7cdc75df04938b25675b3bae12/mkpdfs-mkdocs-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "819e16e72294d1da691103ed61ca9393", "sha256": "4f577a497b1b83810878fc9708992cbf9059b39b21fe2a857568016ab555e1e9" }, "downloads": -1, "filename": "mkpdfs-mkdocs-1.0.1.tar.gz", "has_sig": false, "md5_digest": "819e16e72294d1da691103ed61ca9393", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4", "size": 1764638, "upload_time": "2019-06-23T20:27:46", "url": "https://files.pythonhosted.org/packages/c2/16/769f5eaf94309b55bf9263c985f6d61a664630cb37a1e004affc265d4b47/mkpdfs-mkdocs-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "819e16e72294d1da691103ed61ca9393", "sha256": "4f577a497b1b83810878fc9708992cbf9059b39b21fe2a857568016ab555e1e9" }, "downloads": -1, "filename": "mkpdfs-mkdocs-1.0.1.tar.gz", "has_sig": false, "md5_digest": "819e16e72294d1da691103ed61ca9393", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4", "size": 1764638, "upload_time": "2019-06-23T20:27:46", "url": "https://files.pythonhosted.org/packages/c2/16/769f5eaf94309b55bf9263c985f6d61a664630cb37a1e004affc265d4b47/mkpdfs-mkdocs-1.0.1.tar.gz" } ] }