Skip to content

Commit 8d6ad64

Browse files
committed
unmerged changes from #251. workaround rtd theme stacking glitch
1 parent 253d810 commit 8d6ad64

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed
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+
/* Workaround for 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;}

{{ cookiecutter.__dirname }}/docs/{% if cookiecutter.sphinx_docs in ['y', 'yes'] %}conf.py{% endif %}

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,9 @@ html_theme = "sphinx_rtd_theme"
140140
# so a file named "default.css" will overwrite the builtin "default.css".
141141
html_static_path = ["_static"]
142142

143+
# Include extra css to work around rtd theme glitches
144+
html_css_files = ["custom.css"]
145+
143146
# The name of an image file (relative to this directory) to use as a favicon of
144147
# the docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
145148
# pixels large.

0 commit comments

Comments
 (0)