Skip to content

Commit

Permalink
monkeypatch RTD theme bug
Browse files Browse the repository at this point in the history
  • Loading branch information
fladd committed May 30, 2024
1 parent b9ebdec commit 4af655b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
7 changes: 7 additions & 0 deletions _static/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/*
Fix for horizontal stacking weirdness in the RTD theme with Python properties:
https://github.com/readthedocs/sphinx_rtd_theme/issues/1301
*/
.py.property {
display: block !important;
}
6 changes: 5 additions & 1 deletion conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,11 @@
# 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']

# Monkeypatch RTD theme bug:
# https://github.com/readthedocs/sphinx_rtd_theme/issues/1301
html_css_files = ["custom.css"]

# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
# using the given strftime format.
Expand Down

0 comments on commit 4af655b

Please sign in to comment.