Closed lwasser closed 1 year ago
Ah interesting, I think this one can be fixed upstream in the pydata-sphinx-theme because this is where we inherit the sidebar behavior from. I opened up an issue to track it there, please let me know if my description was off:
👋 @choldgraf oh good i meant to update this because i actually have found the same behavior in other themes. i will also test in furo to see if i get the same behavior just in case it's even more upstream than pydata.
I'm closing this one as I think it's now tracked upstream in pydata, and there's nothing actionable in this repo. Let's figure out the right path forward (even if just documentation) there!
Describe the bug
context Please see this discussion for reference. I was trying to create custom left side bar title. Sphinx theme defaults to the first H1 tag on the page for the left side bar title.
My toctree directive element looked like this where some of the labels rendered in the left nav and others didnt. :
problem
This is just unexpected behavior. i wouldn't expect extra h1 tags to interfere wtih how sphinx reads custom titles for the left nav.
PS. i'm also happy to update documentation with how to create a nice toc with hidden toctree elements and custom labels as i had to dig to figure this out!
thanks for all of the work that you do here on these awesome themes and myST syntax!
Reproduce the bug
please see the discussion that i mentioned above but i otherwise. just make an md page with multiple h1 tags throughout the page. and i think you'll see the behavior.
List your environment
Jupyter Book : 0.13.1 External ToC : 0.2.4 MyST-Parser : 0.15.2 MyST-NB : 0.13.2 Sphinx Book Theme : 0.3.3 Jupyter-Cache : 0.4.3 NbClient : 0.5.13
Tracked in