Skip to content

Commit 01e7c23

Browse files
committed
Remove obsolete hacks
1 parent f8caca0 commit 01e7c23

File tree

2 files changed

+3
-18
lines changed

2 files changed

+3
-18
lines changed

docs/source/_static/hackrtd.css renamed to docs/source/_static/styles.css

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
/* Temporary hack to work around bug in rtd theme 2.0 through 2.4
2-
See https://github.com/rtfd/sphinx_rtd_theme/pull/382
3-
*/
4-
pre {
5-
line-height: normal !important;
6-
}
7-
81
/* Make .. deprecation:: blocks visible
92
* (by default they're entirely unstyled)
103
*/
@@ -45,11 +38,6 @@ pre {
4538

4639
/* Hacks to make the upper-left logo area look nicer */
4740

48-
.wy-side-nav-search {
49-
/* Lighter background color to match logo */
50-
background-color: #d2e7fa !important;
51-
}
52-
5341
.wy-side-nav-search > a {
5442
color: #306998 !important;
5543
}

docs/source/conf.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -167,13 +167,9 @@ def autodoc_process_signature(
167167
return signature, return_annotation
168168

169169

170-
# XX hack the RTD theme until
171-
# https://github.com/rtfd/sphinx_rtd_theme/pull/382
172-
# is shipped (should be in the release after 0.2.4)
173-
# ...note that this has since grown to contain a bunch of other CSS hacks too
174-
# though.
175170
def setup(app: Sphinx) -> None:
176-
app.add_css_file("hackrtd.css")
171+
# Add our custom styling to make our documentation better!
172+
app.add_css_file("styles.css")
177173
app.connect("autodoc-process-signature", autodoc_process_signature)
178174
# After Intersphinx runs, add additional mappings.
179175
app.connect("builder-inited", add_intersphinx, priority=1000)
@@ -370,6 +366,7 @@ def add_mapping(
370366
"navigation_depth": 4,
371367
"logo_only": True,
372368
"prev_next_buttons_location": "both",
369+
"style_nav_header_background": "#d2e7fa",
373370
}
374371

375372
# Add any paths that contain custom static files (such as style sheets) here,

0 commit comments

Comments
 (0)