File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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-
81/* Make .. deprecation:: blocks visible
92 * (by default they're entirely unstyled)
103 */
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}
Original file line number Diff line number Diff 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.
175170def 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,
You can’t perform that action at this time.
0 commit comments