Skip to content

sidebar directive in the new doc theme not producing a sidebar #9031

Closed

Description

@hoechenberger

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?

Source:
Screen Shot 2021-03-12 at 12 24 06

Rendering:
Screen Shot 2021-03-12 at 12 23 42

Activity

  1. larsoner commented on Mar 12, 2021

    @larsoner
    Member

    ... 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.

  2. added a commit that references this issue on Mar 13, 2021
    ff23d41
  3. self-assigned this
    on Mar 13, 2021
  4. drammock commented on Mar 13, 2021

    @drammock
    Member

    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.

  5. hoechenberger commented on Mar 13, 2021

    @hoechenberger
    MemberAuthor

    Thanks @drammock!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions