comwes / mkpdfs-mkdocs-plugin

Converts your mkdocs documentation in PDF, to be shared with users
https://comwes.github.io/mkpdfs-mkdocs-plugin
GNU General Public License v3.0
103 stars 36 forks source link

Default design report.css is missing in mkpdfs 1.0.1 #17

Closed jmborer closed 3 years ago

jmborer commented 4 years ago

Looking into module, the report.css file is missing. Therefore when you run the plugin you get:

ERROR - Failed to load stylesheet at file:///C:/Users/borerjc/venv64/Lib/site-packages/mkpdfs_mkdocs/design/report.css : URLError: <urlopen error [WinError 2] The system cannot find the file specified: 'C:\Us ers\borerjc\venv64\Lib\site-packages\mkpdfs_mkdocs\design\report.css'>
WARNING - Anchor defined twice: doc-title
INFO - The PDF version of the documentation has been generated.
INFO - Documentation built in 4.61 seconds

jmborer commented 4 years ago

The module is lacking all the CSS related information.

(venv64) λ pip show -f mkpdfs-mkdocs Name: mkpdfs-mkdocs Version: 1.0.1 Summary: Allows the generation of the PDF version of your MkDocs documentation. Home-page: https://mkpdfs.comwes.eu Author: Comwes Author-email: contact@comwes.eu License: GPLv3 Location: c:\users\borerjc\venv64\lib\site-packages Requires: mkdocs, weasyprint, beautifulsoup4 Required-by: Files: mkpdfs_mkdocs-1.0.1.dist-info\INSTALLER mkpdfs_mkdocs-1.0.1.dist-info\LICENSE mkpdfs_mkdocs-1.0.1.dist-info\METADATA mkpdfs_mkdocs-1.0.1.dist-info\RECORD mkpdfs_mkdocs-1.0.1.dist-info\WHEEL mkpdfs_mkdocs-1.0.1.dist-info\entry_points.txt mkpdfs_mkdocs-1.0.1.dist-info\top_level.txt mkpdfs_mkdocs__init.py mkpdfs_mkdocs__pycache__init.cpython-38.pyc mkpdfs_mkdocs__pycache\generator.cpython-38.pyc mkpdfs_mkdocs__pycache\mkpdfs.cpython-38.pyc mkpdfs_mkdocs__pycache\utils.cpython-38.pyc mkpdfs_mkdocs\design\FiraSans-Bold.otf mkpdfs_mkdocs\design\FiraSans-Italic.otf mkpdfs_mkdocs\design\FiraSans-Light.otf mkpdfs_mkdocs\design\FiraSans-LightItalic.otf mkpdfs_mkdocs\design\FiraSans-Regular.otf mkpdfs_mkdocs\design\cover.jpg mkpdfs_mkdocs\design\fonts\font-awesome.css mkpdfs_mkdocs\design\fonts\material-icons.css mkpdfs_mkdocs\design\fonts\specimen\FontAwesome.ttf mkpdfs_mkdocs\design\fonts\specimen\FontAwesome.woff mkpdfs_mkdocs\design\fonts\specimen\FontAwesome.woff2 mkpdfs_mkdocs\design\fonts\specimen\MaterialIcons-Regular.ttf mkpdfs_mkdocs\design\fonts\specimen\MaterialIcons-Regular.woff mkpdfs_mkdocs\design\fonts\specimen\MaterialIcons-Regular.woff2 mkpdfs_mkdocs\generator.py mkpdfs_mkdocs\mkpdfs.py mkpdfs_mkdocs\preprocessor__init__.py mkpdfs_mkdocs\preprocessor\pycache\init__.cpython-38.pyc mkpdfs_mkdocs\preprocessor\pycache__\prep.cpython-38.pyc mkpdfs_mkdocs\preprocessor\links\init__.py mkpdfs_mkdocs\preprocessor\links\pycache\init__.cpython-38.pyc mkpdfs_mkdocs\preprocessor\links\pycache__\transform.cpython-38.pyc mkpdfs_mkdocs\preprocessor\links\pycache__\util.cpython-38.pyc mkpdfs_mkdocs\preprocessor\links\transform.py mkpdfs_mkdocs\preprocessor\links\util.py mkpdfs_mkdocs\preprocessor\prep.py mkpdfs_mkdocs\utils.py

trogper commented 4 years ago

you need to compile it "yourself", look into #12 or #19