Closed fohrloop closed 7 months ago
It is likely that this is related to how scrollspy works on Bootstrap 5.2. See: https://github.com/twbs/bootstrap/issues (Issue 36431). There are fixes proposed on the page but as I'm not so familiar with front end development it might be better that someone else took a look on it.
Thanks for flagging this @fohrloop. We will look into this and circle back with our findings.
@gabalafou would you be able to look into this?
If the IDs contain dots, then https://github.com/twbs/bootstrap/issues/39248 is perhaps the culprit.
You are right @Charlie-XIAO that seems to be the cause of this behaviour. Since this needs fixing elsewhere, and while the behavior is not ideal, it does not affect the usability of the secondary TOC or similar.
So in that spirit will close the issue and hope this will be resolved upstream.
It's still not working correctly. We have adopted this theme in falcon, but while it seem that the active section changes while scrolling the first section is never selected.
Example: https://falcon.readthedocs.io/en/latest/api/util.html
Click on Date and Time
on the secondary toc or scroll down. The various section open as expect, but the first section URI
never does
Other example of the same behaviour, without . in the href: https://falcon.readthedocs.io/en/latest/api/testing.html
Unfortunately, as this is coming directly from bootstrap and the issue remains open and unaddressed, there is not much we can do ATM but wait until this is fixed upstream.
shame. it's quite annoying once you notice it
Problem description
I noticed strange behavior with the secondary sidebar TOC highlighter, which shows the "active" part of the page. For some reason, I see that occasionally the "active" part is not highlighted in the sidebar TOC. What I'm referring is this highlight:
Example of problem (gif)
This is perhaps easier to explain with a short video. See that only the A list of functions part is ever "activated" for the highlight.
What I would expect
All the items in the following list would be activated, one by one:
Reproducing the problem
sphinx-autobuild docs/source/ docs/build/ -a -E
index.rst
:I've not yet found why this happens. Could this be a bug or is it related to some configuration value?
Tested with