Skip to content

Commit 39f2bee

Browse files
committed
workaround RTD theme property inline issue.
1 parent 2cb1fba commit 39f2bee

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

docs/_static/custom.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/* SPDX-FileCopyrightText: 2025 Sam Blenny
2+
* SPDX-License-Identifier: MIT
3+
*/
4+
5+
/* Monkey patch the rtd theme to prevent horizontal stacking of short items
6+
* see https://github.com/readthedocs/sphinx_rtd_theme/issues/1301
7+
*/
8+
.py.property{display: block !important;}

docs/conf.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@
116116
# so a file named "default.css" will overwrite the builtin "default.css".
117117
html_static_path = ["_static"]
118118

119+
# Include extra css to work around rtd theme glitches
120+
html_css_files = ["custom.css"]
121+
119122
# The name of an image file (relative to this directory) to use as a favicon of
120123
# the docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
121124
# pixels large.

0 commit comments

Comments
 (0)