diff --git a/patches/10OCT2025-remove-deprecated-ruff-rule-workaround-RTD-css.patch b/patches/10OCT2025-remove-deprecated-ruff-rule-workaround-RTD-css.patch new file mode 100644 index 0000000..dc36889 --- /dev/null +++ b/patches/10OCT2025-remove-deprecated-ruff-rule-workaround-RTD-css.patch @@ -0,0 +1,56 @@ +From 376f74a7d95ac91145393cd89c1cba3d6ac94ffd Mon Sep 17 00:00:00 2001 +From: foamyguy +Date: Fri, 10 Oct 2025 16:18:40 -0500 +Subject: [PATCH] remove deprecated ruff rule, workaround RTD theme property + inline issue. + +--- + docs/_static/custom.css | 8 ++++++++ + docs/conf.py | 3 +++ + ruff.toml | 1 - + 3 files changed, 11 insertions(+), 1 deletion(-) + create mode 100644 docs/_static/custom.css + +diff --git a/docs/_static/custom.css b/docs/_static/custom.css +new file mode 100644 +index 0000000..d60cf4b +--- /dev/null ++++ b/docs/_static/custom.css +@@ -0,0 +1,8 @@ ++/* SPDX-FileCopyrightText: 2025 Sam Blenny ++ * SPDX-License-Identifier: MIT ++ */ ++ ++/* Monkey patch the rtd theme to prevent horizontal stacking of short items ++ * see https://github.com/readthedocs/sphinx_rtd_theme/issues/1301 ++ */ ++.py.property{display: block !important;} +diff --git a/docs/conf.py b/docs/conf.py +index f51f557..879bff7 100644 +--- a/docs/conf.py ++++ b/docs/conf.py +@@ -128,6 +128,9 @@ html_theme = "sphinx_rtd_theme" + # so a file named "default.css" will overwrite the builtin "default.css". + html_static_path = ["_static"] + ++# Include extra css to work around rtd theme glitches ++html_css_files = ["custom.css"] ++ + # The name of an image file (relative to this directory) to use as a favicon of + # the docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 + # pixels large. +diff --git a/ruff.toml b/ruff.toml +index 0f3565b..7bd00c3 100644 +--- a/ruff.toml ++++ b/ruff.toml +@@ -17,7 +17,6 @@ extend-select = [ + "PLC2401", # non-ascii-name + "PLC2801", # unnecessary-dunder-call + "PLC3002", # unnecessary-direct-lambda-call +- "E999", # syntax-error + "PLE0101", # return-in-init + "F706", # return-outside-function + "F704", # yield-outside-function +-- +2.51.0 +