Skip to content

Commit 3733e77

Browse files
committed
remove deprecated ruff rule, workaround RTD theme property inline issue.
Signed-off-by: foamyguy <[email protected]>
1 parent 817d9fa commit 3733e77

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
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
@@ -110,6 +110,9 @@
110110
# so a file named "default.css" will overwrite the builtin "default.css".
111111
html_static_path = ["_static"]
112112

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

ruff.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ extend-select = [
1717
"PLC2401", # non-ascii-name
1818
"PLC2801", # unnecessary-dunder-call
1919
"PLC3002", # unnecessary-direct-lambda-call
20-
"E999", # syntax-error
2120
"PLE0101", # return-in-init
2221
"F706", # return-outside-function
2322
"F704", # yield-outside-function

0 commit comments

Comments
 (0)