File tree Expand file tree Collapse file tree 2 files changed +3
-18
lines changed Expand file tree Collapse file tree 2 files changed +3
-18
lines changed Original file line number Diff line number Diff line change 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
-
8
1
/* Make .. deprecation:: blocks visible
9
2
* (by default they're entirely unstyled)
10
3
*/
45
38
46
39
/* Hacks to make the upper-left logo area look nicer */
47
40
48
- .wy-side-nav-search {
49
- /* Lighter background color to match logo */
50
- background-color : # d2e7fa !important ;
51
- }
52
-
53
41
.wy-side-nav-search > a {
54
42
color : # 306998 !important ;
55
43
}
Original file line number Diff line number Diff line change @@ -167,13 +167,9 @@ def autodoc_process_signature(
167
167
return signature , return_annotation
168
168
169
169
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.
175
170
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" )
177
173
app .connect ("autodoc-process-signature" , autodoc_process_signature )
178
174
# After Intersphinx runs, add additional mappings.
179
175
app .connect ("builder-inited" , add_intersphinx , priority = 1000 )
@@ -370,6 +366,7 @@ def add_mapping(
370
366
"navigation_depth" : 4 ,
371
367
"logo_only" : True ,
372
368
"prev_next_buttons_location" : "both" ,
369
+ "style_nav_header_background" : "#d2e7fa" ,
373
370
}
374
371
375
372
# Add any paths that contain custom static files (such as style sheets) here,
You can’t perform that action at this time.
0 commit comments