Closed jwaschkau closed 4 years ago
Hi there. I would like to try this plugin but I ended up with error this PR is supposed to solve. When is it supposed to be reviewed / merged ?
Thanks !
Likewise, I'm also waiting for a fix to try making a nice PDF!
As a quick fix you can try to install directly from the repository
pip install -e git+https://github.com/jwaschkau/mkpdfs-mkdocs-plugin.git#egg=mkpdfs-mkdocs-plugin
@comwes Ping? :)
Is compatibility with previous mkdocs versions preserved?
Is compatibility with previous mkdocs versions preserved?
Hey trogper,
is backwards compatibility necessary? If not we could just update setup.py and require mkdocs >1.1 if this change should break compatibility.
I'm not sure how much important it is (for everyone) but we are stuck on mkdocs 1.0.4 due to reduced search language support
I try to use directly from repo, but I get a different error
AttributeError: 'Section' object has no attribute 'file'
So, a release would be helpful.
@moronic It is caused by nested sections. See #4 and #22.
closes #23
As a quick fix you can try to install directly from the repository
pip install -e git+https://github.com/jwaschkau/mkpdfs-mkdocs-plugin.git#egg=mkpdfs-mkdocs-plugin
WARNING: Generating metadata for package mkpdfs-mkdocs-plugin produced metadata for project name mkpdfs-mkdocs. Fix your #egg=mkpdfs-mkdocs-plugin fragments. WARNING: Discarding git+https://github.com/jwaschkau/mkpdfs-mkdocs-plugin.git#egg=mkpdfs-mkdocs-plugin. Requested mkpdfs-mkdocs from git+https://github.com/jwaschkau/mkpdfs-mkdocs-plugin.git#egg=mkpdfs-mkdocs-plugin has inconsistent name: filename has 'mkpdfs-mkdocs-plugin', but metadata has 'mkpdfs-mkdocs' ERROR: Could not find a version that satisfies the requirement mkpdfs-mkdocs-plugin (unavailable) ERROR: No matching distribution found for mkpdfs-mkdocs-plugin (unavailable)
ERROR: No matching distribution found for mkpdfs-mkdocs-plugin (unavailable)
You need to change the egg name! The call would then look like .. (mind the missing -plugin
at the end)
pip install -e git+https://github.com/jwaschkau/mkpdfs-mkdocs-plugin.git#egg=mkpdfs-mkdocs
Seems like the weasyprint.fonts error is back. I think it's supposed to be weasyprint.text.fonts now.
File ".../src/mkpdfs-mkdocs/mkpdfs_mkdocs/mkpdfs.py", line 11, in <module>
from weasyprint.fonts import FontConfiguration
ModuleNotFoundError: No module named 'weasyprint.fonts'
closes #14 closes #16
Fixes error when building documentation with mkdocs >= 1.1