From 100af3b5f17bf97ab51831f9fceb6bd7c26b2635 Mon Sep 17 00:00:00 2001 From: foamyguy Date: Thu, 14 Nov 2024 14:06:49 -0600 Subject: [PATCH] workaround for vertical stacking issue with docs theme --- docs/_static/custom.css | 13 +++++++++++++ docs/conf.py | 2 ++ 2 files changed, 15 insertions(+) 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..df9eac9 --- /dev/null +++ b/docs/_static/custom.css @@ -0,0 +1,13 @@ +/* +SPDX-FileCopyrightText: 2024 Tim Cocks for Adafruit Industries + +SPDX-License-Identifier: MIT + */ + +/* +Fix for horizontal stacking weirdness in the RTD theme with Python properties: +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 3eede50..c5fcded 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -116,6 +116,8 @@ # html_favicon = "_static/favicon.ico" +html_css_files = ["custom.css"] + # Output file base name for HTML help builder. htmlhelp_basename = "AdafruitDisplay_shapesLibrarydoc"