Skip to content

Commit

Permalink
Packages/doc: Improve page layout
Browse files Browse the repository at this point in the history
Since a couple of sphinx versions the collapsible sidebar is kind of
broken, the closest issue I found was [1].

A different fix from [2] allows to nicify the layout at the cost of not
having the sidebar being collapseable [2].

[1]: sphinx-doc/sphinx#11557
[2]: https://stackoverflow.com/q/64668990
  • Loading branch information
t-b committed Jul 8, 2024
1 parent a36d315 commit efad5b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Packages/doc/_static/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@ div.body {
max-width: 100%;
}

.sphinxsidebarwrapper { overflow-y: scroll; }

/* change the cursor for zoomable images */
a[data-lightbox] {cursor: zoom-in;}
1 change: 0 additions & 1 deletion Packages/doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ def get_version():
# theming
html_theme = "classic"
html_theme_options = {
"collapsiblesidebar": "true",
"bodyfont" : "Helvetica, Arial, sans-serif",
"headfont" : "Helvetica, Arial, sans-serif"
}
Expand Down

0 comments on commit efad5b5

Please sign in to comment.