Skip to content

Commit

Permalink
Stretch the doc to the screen width
Browse files Browse the repository at this point in the history
Default alabaster"s width is too narrow and causes too many word
and signature wraps.  I would leave it to the user to decide which
width they want.  someone with more CSS knowledge could make it a bit more dynamic
but default is really suboptimal IMHO
  • Loading branch information
yarikoptic committed Jul 21, 2021
1 parent ee38041 commit 4ab20a2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions docs/source/_static/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@import './alabaster.css'; /* for Alabaster */

div.footer {
text-align: center;
}
7 changes: 6 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,13 @@
# a list of builtin themes.
#
html_theme = "alabaster"
html_theme_options = {
"page_width": "auto",
"body_max_width": "auto",
}
html_style = "custom.css"

# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
# html_static_path = ["_static"]
html_static_path = ["_static"]

0 comments on commit 4ab20a2

Please sign in to comment.