-
-
Notifications
You must be signed in to change notification settings - Fork 44
bug: show_symbol_type_toc
not working with newest version of Python handler / material theme
#158
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
Comments
Try to upgrade your mkdocs-material dependency 🙂 |
haha, of course! thank you, sorry for the time waste |
No problem! Thanks for trying this so quickly 😄 |
@pawamoy Unfortunately, still encountering this with the following (up-to-date) dependencies:
Here's my full plugin config:
|
Oh OK, I thought you confirmed the upgrade fixed the issue. I'll try to replicate. mkdocstrings-python 0.1.dev395+g995e505: I guess you're installing with git+(https/ssh), from main branch? Try installing from latest tag instead. |
Okay, will try this now! |
Can reproduce same issue with my docs with:
I believe that's the last tagged release of Seems plausible I'm messing something up, but all the other features still work! |
Thanks for your patience! I'll be able to verify in an hour or so :) |
I cannot reproduce the issue 😕 I tried with these dependencies:
...as well as |
If your repository is public, don't hesitate to share it so I can see for myself 🙂 This will allow us to confirm if this is an environment issue. Otherwise, you could try to provide a minimum reproducible example (in a zip file, public Git repo, or just copy-pasted here in code blocks). |
@pawamoy I can invite you to the repo! I think you've helped me out before in this way in the past (thanks for that!) -- if you don't mind doing this, let me know |
Sure, lets do that 🙂 |
Ah, found the issue. I was going insane but it's actually a very simple bug: I wrongly recurse into heading tokens only when a parent heading has its label set by mkdocstrings. When top-level headings are not mkdocstrings headings, it fails, because I never descend into the other headings. Will push a fix right now 😄 Thanks for your patience again and for giving me access to your repo where the issue was reproducible 😊 |
Cool! Awesome that you found the issue, and no problem! |
Issue-mkdocstrings/python-158: mkdocstrings/python#158
Version 0.25.1 of mkdocstrings is out :) |
Thanks for a rapid response! |
Closing, let me know if you have any issue 🙂 Don't forget to remove me from your project ^^ |
Hi!
Description of the bug
I'm using the newest insider's edition of
mkdocstrings-python
, and I'm attempting to use:in my documentation (with an admittedly old insider's edition of
mkdocs-material
). However, the symbols are not rendering in the side ToC.Expected behavior
I expect the symbol types to show up next to the entries in the side ToC.
Environment information
Here's my exact versioning:
Additional context
Now, I do have some errors in my documentation -- but all other
mkdocstrings-python
options work correctly (e.g.show_symbol_type_heading
works fine) and I can switch them on and off and build my documentation without issue.The text was updated successfully, but these errors were encountered: