Skip to content

Commit 17035c8

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

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
@@ -115,6 +115,9 @@
115115
# so a file named "default.css" will overwrite the builtin "default.css".
116116
html_static_path = ["_static"]
117117

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