Skip to content

Commit 5a1eb71

Browse files
committed
remove deprecated ruff rule, workaround RTD theme property inline issue.
Signed-off-by: foamyguy <foamyguy@gmail.com>
1 parent 5b3bf35 commit 5a1eb71

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
@@ -124,6 +124,9 @@
124124
# so a file named "default.css" will overwrite the builtin "default.css".
125125
html_static_path = ["_static"]
126126

127+
# Include extra css to work around rtd theme glitches
128+
html_css_files = ["custom.css"]
129+
127130
# The name of an image file (relative to this directory) to use as a favicon of
128131
# the docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
129132
# 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)