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
In the development of the pydata-sphinx-theme we use extensively twitter bootstrap to build the UI of a Sphinx generated documentation. When documenting Python API, the Autodoc plugin (that reads the Python docstring and transform it into a documentation page) creates anchors for functions that correspond to the exact path f the method: "pandas.DataFrame.from_csv". These points seems to be incompatible with the twitter bootstrap ScrollSpy tool as they are not interpreted as correct anchors.
As you see it's simply not working as I replaced the target names by "item.1" instead of "item 1".
Going down this issue, it seems related to how uri are parsed in bootstrap. Is there any will to support my use case ? if yes how can I help, if not do you see a workaround that would not imply using custom scrollspy ?
The text was updated successfully, but these errors were encountered:
Thanks for opening this issue @12rambau.
I haven't checked in detail this precise use case yet but it could be linked to my comment here #39201 (review) where it seems that the specification really allows almost all characters as IDs and that maybe our selector engine is too restrictive in a way.
We need to dig that :)
Note: depending on how this issue is treated, if the modification is approved, we definitely need to add this use case (and others) as unit tests.
just wanted to add that we've stumbled across this problem, too. It basically affects all JS modules, e.g. modal, collapse, etc. As soon as the ID has anything in it that has a special meaning in a selector (e.g. ., ,, +, ~), the functionality breaks. According to HTML standards, the only character that's not allowed in an ID is a whitespace, so it would be great if bootstrap could support that
Prerequisites
Context
In the development of the pydata-sphinx-theme we use extensively twitter bootstrap to build the UI of a Sphinx generated documentation. When documenting Python API, the Autodoc plugin (that reads the Python docstring and transform it into a documentation page) creates anchors for functions that correspond to the exact path f the method: "pandas.DataFrame.from_csv". These points seems to be incompatible with the twitter bootstrap ScrollSpy tool as they are not interpreted as correct anchors.
For interested reader, see this thread for more context: pydata/pydata-sphinx-theme#1435
reproducible example
I created this small fiddle by adapting one of bootstrap example: https://codepen.io/12rambau/pen/rNovoyw
As you see it's simply not working as I replaced the target names by "item.1" instead of "item 1".
Going down this issue, it seems related to how uri are parsed in bootstrap. Is there any will to support my use case ? if yes how can I help, if not do you see a workaround that would not imply using custom scrollspy ?
The text was updated successfully, but these errors were encountered: