You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I just begun using MkDocs and it's so far great and super simple, which I loved because I'm kinda lazy about learning RST to use Sphinx. As I really like the RTD theme, and MkDocs has it built-in, I started to experiment with it and the python-markdown TOC extension.
However, I found that changing the toc_depth value of the extension affects the lateral TOC bar of the theme when it should not. E.g. I have this:
Because the pages have a #h1 header for the title, which I don't want to display in the [TOC], only ##h2 headers and so on, but with this set up the lateral bar TOC of RTD (not the extension) will now only show me the ###h3 headers if there's an upper h2 before, otherwise nothing will be shown up but the +/- sign next to the title, with no effect.
This issue is not present in the lateral table of contents of the Material theme nor in rtd-dropdown, so this is surely a bug in the built-in MkDocs RTD theme.
Activity
yaomtc commentedon Jul 2, 2023
I'm having an issue with the ToC myself. My H1 headers and everything after the second one are being left out of it.
I haven't changed
toc_depthand its default is 1, so I'm not sure why this is happening.