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
{{ message }}
Repository navigation
sidebar directive in the new doc theme not producing a sidebar #9031
It appears .. sidebar:: will not actually create a sidebar anymore – which does make sense IMHO with the new layout; however maybe we should replace "sidebars" with "info boxes" now?
... actually we shouldn't even really use that anymore since it's for sphinx-bootstrap-theme, which uses BS3, and pydata-sphinx-theme uses BS4 I think.
I'd propose adding whatever the correct thing is (if it is info boxes) to the upstream pydata-sphinx-theme to see if they'd want it. If they do then let's implement it there, if they don't then we can vendor in our own doc/sphinxext/* somewhere.
actually we shouldn't even really use that anymore since it's for sphinx-bootstrap-theme, which uses BS3, and pydata-sphinx-theme uses BS4 I think.
FYI I updated doc/sphinxext/sphinx_bootstrap_divs when we switched themes, to be BS4 compliant. (not certain I did it fully or in the best way, but I at least made it work).
The real problem here was that the sidebars used to be put in a div and now they're in an aside tag instead, and our CSS selector was too specific. I've pushed a fix as part of #9036.
Activity
larsoner commentedon Mar 12, 2021
Can you look to see what needs to be changed in https://github.com/larsoner/sphinx-bootstrap-divs which we vendor in https://github.com/mne-tools/mne-python/tree/main/doc/sphinxext/sphinx_bootstrap_divs ?
larsoner commentedon Mar 12, 2021
... actually we shouldn't even really use that anymore since it's for sphinx-bootstrap-theme, which uses BS3, and pydata-sphinx-theme uses BS4 I think.
I'd propose adding whatever the correct thing is (if it is info boxes) to the upstream pydata-sphinx-theme to see if they'd want it. If they do then let's implement it there, if they don't then we can vendor in our own
doc/sphinxext/*somewhere.fix sidebar styling (fixes mne-tools#9031)
drammock commentedon Mar 13, 2021
FYI I updated
doc/sphinxext/sphinx_bootstrap_divswhen we switched themes, to be BS4 compliant. (not certain I did it fully or in the best way, but I at least made it work).The real problem here was that the sidebars used to be put in a
divand now they're in anasidetag instead, and our CSS selector was too specific. I've pushed a fix as part of #9036.hoechenberger commentedon Mar 13, 2021
Thanks @drammock!