Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PDF export is missing first pages #47

Closed
majkinetor opened this issue Apr 5, 2021 · 5 comments
Closed

PDF export is missing first pages #47

majkinetor opened this issue Apr 5, 2021 · 5 comments

Comments

@majkinetor
Copy link

majkinetor commented Apr 5, 2021

In latest version PDF export has truncated top.

This might be due to handling of TOC depth in newest version 1.1.0 but removing toc with add_table_of_contents: false still doesn't fix it (that is, sometimes it does, I guess it depends on the size of the doc).

Here are some screenshots - on all front page is missing and depending on TOC depth there are different outputs. Removing TOC doesn't fix front page problem.

screenshots

bug1

bug2

This is with latest material (v7.1.0)

@majkinetor
Copy link
Author

This actually seems to be due to mkdocs-material changes. I tested 1.0.0 with material 7.1.0 and there is the same problem.

Then I tested 1.1.0 with all latest mkdocs-material versions and got this:

  • last v6 (6.2.8) works
  • version 7.0.0 is the first one showing the problem and it is there in all subsequent versions.

https://squidfunk.github.io/mkdocs-material/changelog

@timvink
Copy link
Owner

timvink commented Apr 9, 2021

thnx for all the updates this & other issues. I have planned some time next week to do another big iteration on this plugin.

@timvink
Copy link
Owner

timvink commented May 10, 2021

This was really helpful! Quite sure it is related to #44. Opened squidfunk/mkdocs-material#2655 to address this.

In the short term, you can fix this error by removing this line:

https://github.com/majkinetor/mm-docs-template/blob/b864b66fc680419c90b05a90309108550ca10241/source/mkdocs.yml#L66

Longer term, hopefully mkdocs-material provides a fix!

@timvink
Copy link
Owner

timvink commented May 19, 2021

Fix is now available thanks to squidfunk. Simply pip install --upgrade mkdocs-print-site-plugin.

@majkinetor
Copy link
Author

It works. Thanks a lot :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants