Skip to content

Commit 54a63d4

Browse files
committed
remove deprecated ruff rule, workaround RTD theme property inline issue.
Signed-off-by: foamyguy <[email protected]>
1 parent 7c424d0 commit 54a63d4

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
@@ -104,6 +104,9 @@
104104
# so a file named "default.css" will overwrite the builtin "default.css".
105105
html_static_path = ["_static"]
106106

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