Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ba457da

Browse files
committed
DOC: more work on fixing the css
We were shadowing the default (basic.css) style sheet the way we were pulling our custom style sheet in.
1 parent 78982c9 commit ba457da

File tree

2 files changed

+34
-3
lines changed

2 files changed

+34
-3
lines changed

doc/_static/mpl.css

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,3 +144,33 @@ hr.box-sep {
144144
flex: 0 0 90%;
145145
}
146146
}
147+
148+
149+
/* multi colunm TOC */
150+
.contents ul {
151+
list-style-type: none;
152+
padding-left: 2em;
153+
}
154+
155+
.contents > ul {
156+
padding-left: 0;
157+
}
158+
159+
.multicol-toc > ul {
160+
column-width: 250px;
161+
column-gap: 60px;
162+
-webkit-column-width: 250px;
163+
-moz-column-width: 250px;
164+
column-rule: 1px solid #ccc;
165+
}
166+
167+
.multicol-toc > li {
168+
/* break inside is not yet broadly supported, but we just try */
169+
break-inside: avoid-column;
170+
-moz-break-inside: avoid-column;
171+
-webkit-break-inside: avoid-column;
172+
}
173+
174+
.contents > ul > li > a {
175+
font-size: 1.0em;
176+
}

doc/conf.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@
6868

6969
exclude_patterns = [
7070
"api/prev_api_changes/api_changes_*/*",
71-
# Be sure to update users/whats_new.rst:
72-
'users/prev_whats_new/whats_new_3.4.0.rst',
7371
]
7472

7573

@@ -272,7 +270,10 @@ def _check_dependencies():
272270
# must exist either in Sphinx' static/ path, or in one of the custom paths
273271
# given in html_static_path.
274272
# html_style = 'matplotlib.css'
275-
html_style = f"mpl.css?{SHA}"
273+
# html_style = f"mpl.css?{SHA}"
274+
html_css_files = [
275+
f"mpl.css?{SHA}",
276+
]
276277

277278
html_theme = "pydata_sphinx_theme"
278279

0 commit comments

Comments
 (0)