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
TOC rendering issue #59
Comments
Yes, definitely a bug with the section headings. I'll look into it. Just a quite check, because I couldn't find it, are you using the latest version of this plugin? Also, which version of |
Yeah, all latest. FYI, I am always using the same demo project to show you to the problems. Its base on mm-docs and you can see all versions in requirements.txt |
No, this happens since first version of this plugin. |
So the root cause is that in your project, the first page under the new 'Extra' section ( This plugin has quite some logic to support sections, even nested sections, like the one in the screenshot below. Things got super complex if a new page does not start with a new level 1 heading and so I required all pages to start with heading 1. That is also your solution: The real problem is that this error wasn't raised: mkdocs-print-site-plugin/mkdocs_print_site_plugin/plugin.py Lines 179 to 188 in ad73023
I tracked down & fixed that bug, will release a new version soon. |
Should be fixed in v2.1 let me know :) |
It works:
Adding it looks good. Thanks a lot :) |
TOC part with sections is rendered totally differently from the other TOC elements.
Take a look at "Extra" in the TOC here:
Here are the problems:
All in all, it looks very ugly, especially with more of them.
The text was updated successfully, but these errors were encountered: