Showing only #/h1 anchors as children in the table of contents? #2365
-
Hello! I’m the lead maintainer of https://github.com/fastlane/fastlane and I’m working on upgrading our docs 😊 We are currently on a super old version of mkdocs and I’m upgrading to We were using Example of current websiteIt seems like this took all Current status of upgrade to 1.1.2
Now it seems like my children as all So my question...Is there a way to adjust how markdown/toc determines what |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
I can't find headeranchor in PyMdown's docs so it perhaps is no longer supported? You should consider using the Table of Contents extension of the python markdown lib. |
Beta Was this translation helpful? Give feedback.
-
You can use the That said, some themes hard-code the number of levels they support. In that case, you can only use the However, some themes may provide a theme specific setting which controls this. For example, both the mkdocs and readthedocs themes provide a |
Beta Was this translation helpful? Give feedback.
-
I think I found my problem 😱 It looks like the TOC extension doesn’t see all I tried adjusting the Thanks to @Andre601 and @waylan for pointing me in the right direction! ❤️ |
Beta Was this translation helpful? Give feedback.
I think I found my problem 😱 It looks like the TOC extension doesn’t see all
#
as a children. It will only get things under the first#
. I need to rework my pages to only have one top level#
🤷♂️I tried adjusting the
toc_dept
but I can’t get it to show all the#
as children but it’s easy enough to just add an extra#
onto each heading in each file 😇Thanks to @Andre601 and @waylan for pointing me in the right direction! ❤️