-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Blog plugin returns error when using section-index #7283
Comments
Thanks for reporting. I checked your reproduction (please see my remark below) and it is definitely related to the section index plugin. If you remove the plugin, the build completes without error. Note that we do not officially support this plugin, but we support basically the exact same functionality via the Also note that the literate nav plugin doesn't seem compatible with the blog plugin, which adds navigation entries dynamically. You can see that there are actually multiple competing entries. If you disable the plugin, the blog plugin works as expected. Please also report this to the maintainer of the literate nav plugin. Next time, please use the info plugin which is mandatory – you actually checked the box but did not us it. The info plugin collects much more information than what you get by just zipping things up 😉 It helps us help you faster. |
I also checked the source of the section index plugin – the problem is here: # The page becomes a section-page.
page.__class__ = SectionPage
assert isinstance(page, SectionPage) The section index plugin extends the normal |
Hi Martin (@squidfunk), thank you for your quick reply. You mentioned "but we support basically the exact same functionality via the navigation.indexes feature" but there is a reason for using section index and "literate nav plugin". I want to define a navigation structure based on my folder structure but with different title, like so: docs
"folder A" should be named "PROJECTS" and "folder B" should be named "HOME" in the navigation. Is that possible with the original "navigation" configuration in mkdocs-material? I know that I could rename the folder from "folder A" to "PROJECT" but if I would do so I cannot define the order in the navigation. |
I'm not sure, I'm not a user of literate nan, and, as said, it's not a plugin we officially support. You can ask on our discussion board for support, if you like – maybe there are other users that have achieved what you're asking for |
@thinkORo |
@kamilkrzyskow I know it's a play on words but this plugin is, in this context, awesome. It doesn't reduce the effort to control the navigation that much as I have to define ".pages"-files. But it increases the clearness in my mkdocs.yml enormously. THANK YOU. |
Context
To better (as with the material functionality) define my menu structure, I use literate-nav together with section-index.
Unfortunately, I get the following error when activating the blog plugin.
Bug description
Related links
n/a
Reproduction
support.zip
Steps to reproduce
Browser
Firefox
Before submitting
The text was updated successfully, but these errors were encountered: