Skip to content

Commit ff3dde5

Browse files
committed
docs: improve RtD CSS for object signatures
1 parent 5e5dd6d commit ff3dde5

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

docs/source/_static/api-font.css

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/* Use a mono font for every part of a signature (preference settings, API endpoint, etc.) */
2+
.sig:not(.sig-inline) {
3+
font-family: SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, Courier, monospace;
4+
}
5+
6+
/* Make the RtD theme respect whitespaces */
7+
.property {
8+
display: inline !important;
9+
padding-right: 0 !important;
10+
}
11+
12+
.sig-prename {
13+
font-weight: normal;
14+
}

docs/source/conf.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,10 @@ def find_phoebus_version() -> str:
138138
# so a file named "default.css" will overwrite the builtin "default.css".
139139
html_static_path = ['_static']
140140

141+
html_css_files = [
142+
'api-font.css',
143+
]
144+
141145
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
142146
# using the given strftime format.
143147
#html_last_updated_fmt = '%b %d, %Y'

0 commit comments

Comments
 (0)