From 1277db45e2ea86030b4e0e9df1bc2b6146261afa Mon Sep 17 00:00:00 2001 From: zhang-liang-pengkun Date: Fri, 12 Jan 2024 17:47:25 +0800 Subject: [PATCH] Twiddle autodoc-oriented 'dl' styling so new Sphinx basic.css dl bottom-margin comes through Signed-off-by: zhang-liang-pengkun --- ...oriented-dl-styling-so-new-Sphinx-ba.patch | 43 +++++++++++++++++++ python-sphinx-theme-alabaster.spec | 6 ++- 2 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 0004-Twiddle-autodoc-oriented-dl-styling-so-new-Sphinx-ba.patch diff --git a/0004-Twiddle-autodoc-oriented-dl-styling-so-new-Sphinx-ba.patch b/0004-Twiddle-autodoc-oriented-dl-styling-so-new-Sphinx-ba.patch new file mode 100644 index 0000000..44c5691 --- /dev/null +++ b/0004-Twiddle-autodoc-oriented-dl-styling-so-new-Sphinx-ba.patch @@ -0,0 +1,43 @@ +From 7963dfe802a6c68ece56c25445d3da86596ff79d Mon Sep 17 00:00:00 2001 +From: Jeff Forcier +Date: Thu, 8 Sep 2022 18:04:14 -0400 +Subject: [PATCH] Twiddle autodoc-oriented 'dl' styling so new Sphinx basic.css + dl bottom-margin comes through + +Otherwise all our eg autoclasses/funcs/etc run together +--- + alabaster/static/alabaster.css_t | 4 +++- + docs/changelog.rst | 2 ++ + 2 files changed, 5 insertions(+), 1 deletion(-) + +diff --git a/alabaster/static/alabaster.css_t b/alabaster/static/alabaster.css_t +index b6f790b..0fd7c71 100644 +--- a/alabaster/static/alabaster.css_t ++++ b/alabaster/static/alabaster.css_t +@@ -474,7 +474,9 @@ table.footnote td { + } + + dl { +- margin: 0; ++ margin-left: 0; ++ margin-right: 0; ++ margin-top: 0; + padding: 0; + } + +diff --git a/docs/changelog.rst b/docs/changelog.rst +index 5f14e3e..c72efc7 100644 +--- a/docs/changelog.rst ++++ b/docs/changelog.rst +@@ -2,6 +2,8 @@ + Changelog + ========= + ++- :support:`- backported` Tweak CSS somewhat for compatibility with modern ++ Sphinx versions' base stylesheet. + - :release:`0.7.12 <2018-10-02>` + - :bug:`-` On some browsers/platforms, 'badge'-style sidebar elements were + displaying dotted underlines. This was unintentional and explicit styling has +-- +2.39.0.windows.2 + diff --git a/python-sphinx-theme-alabaster.spec b/python-sphinx-theme-alabaster.spec index 18aea24..d3f36af 100644 --- a/python-sphinx-theme-alabaster.spec +++ b/python-sphinx-theme-alabaster.spec @@ -1,6 +1,6 @@ name: python-sphinx-theme-alabaster Version: 0.7.12 -Release: 4 +Release: 5 Summary: Configurable sidebar-enabled Sphinx theme License: BSD @@ -9,6 +9,7 @@ Source0: https://files.pythonhosted.org/packages/cc/b4/ed8dcb0d67d5cfb7f8 Patch0001: 0001-Declare-support-for-Python-3.8-only.patch Patch0002: 0002-Nix-setup.cfg.patch Patch0003: 0003-Don-t-import-deprecated-module.patch +Patch0004: 0004-Twiddle-autodoc-oriented-dl-styling-so-new-Sphinx-ba.patch BuildArch: noarch BuildRequires: python2-devel python2-setuptools @@ -67,6 +68,9 @@ rm -rf alabaster.egg-info %changelog +* Fri Jan 12 2024 zhangliangpengkun - 0.7.12-5 +- Twiddle autodoc-oriented 'dl' styling so new Sphinx basic.css dl bottom-margin comes through + * Thu Dec 28 2023 zhangliangpengkun - 0.7.12-4 - Don't import deprecated module -- Gitee