Skip to content

Commit f148f2b

Browse files
committed
Remove visual distraction from docs
1 parent 59749c2 commit f148f2b

File tree

3 files changed

+25
-1
lines changed

3 files changed

+25
-1
lines changed

docs/_static/css/custom.css

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
tt, code, pre {
2+
font-family: monospace, sans-serif;
3+
font-size: 96.5%;
4+
}
5+
6+
.rst-content dl:not(.docutils) tt.descname,
7+
.rst-content dl:not(.docutils) tt.descclassname,
8+
.rst-content dl:not(.docutils) tt.descname,
9+
.rst-content dl:not(.docutils) code.descname,
10+
.rst-content dl:not(.docutils) tt.descclassname,
11+
.rst-content dl:not(.docutils) code.descclassname {
12+
font-size: 130% !important;
13+
}
14+
15+
.rst-content dl:not(.docutils) dl dt {
16+
background: #fff;
17+
border: none;
18+
margin: 0;
19+
padding: 0;
20+
}

docs/conf.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,10 @@
114114
# Add any paths that contain custom static files (such as style sheets) here,
115115
# relative to this directory. They are copied after the builtin static files,
116116
# so a file named "default.css" will overwrite the builtin "default.css".
117-
# html_static_path = ['_static']
117+
html_static_path = ['_static']
118+
119+
def setup(app):
120+
app.add_stylesheet("css/custom.css")
118121

119122
# Allows the mod index to function more helpfully (not everything under 'e')
120123
modindex_common_prefix = ['eth.']

newsfragments/1797.doc.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Tweak layout of API docs to improve readability

0 commit comments

Comments
 (0)