From 3804b639f763f627ebdbbcd172186a2441921f79 Mon Sep 17 00:00:00 2001 From: starlet-dx <15929766099@163.com> Date: Thu, 3 Aug 2023 17:24:23 +0800 Subject: [PATCH] Fix style errors caused by python-sphinx upgrade to 7.0.1 --- Clean-up-HTML-link-tags.patch | 36 +++++++++++++++++++++++++++++++++++ python-sphinx_lv2_theme.spec | 7 ++++++- 2 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 Clean-up-HTML-link-tags.patch diff --git a/Clean-up-HTML-link-tags.patch b/Clean-up-HTML-link-tags.patch new file mode 100644 index 0000000..d935144 --- /dev/null +++ b/Clean-up-HTML-link-tags.patch @@ -0,0 +1,36 @@ +From 0d044831b3fce872f86af5eac0aada6cefd154ac Mon Sep 17 00:00:00 2001 +From: starlet-dx <15929766099@163.com> +Date: Thu, 3 Aug 2023 17:13:07 +0800 +Subject: [PATCH 1/1] Clean up HTML link tags + +Refer: +https://gitlab.com/lv2/sphinx_lv2_theme/-/commit/9ca9e6f40de46f3f7ba1c99429de47c89a310c2f +--- + sphinx_lv2_theme/layout.html | 8 +++----- + 1 file changed, 3 insertions(+), 5 deletions(-) + +diff --git a/sphinx_lv2_theme/layout.html b/sphinx_lv2_theme/layout.html +index 1e0ce85..c8df8ba 100644 +--- a/sphinx_lv2_theme/layout.html ++++ b/sphinx_lv2_theme/layout.html +@@ -105,14 +105,12 @@ + + {# CSS links #} + {%- macro css() -%} +- +- + {%- for css in css_files -%} +- {%- if css|attr("filename") -%} ++ {%- if css|attr("filename") %} + {{ css_tag(css) }} +- {%- else -%} ++ {%- else %} + +- {%- endif -%} ++ {% endif %} + {%- endfor -%} + {%- endmacro -%} + +-- +2.30.0 + diff --git a/python-sphinx_lv2_theme.spec b/python-sphinx_lv2_theme.spec index 4df3994..3cbfce6 100644 --- a/python-sphinx_lv2_theme.spec +++ b/python-sphinx_lv2_theme.spec @@ -2,12 +2,14 @@ Name: python-%{pypi_name} Version: 1.0.0 -Release: 1 +Release: 2 Summary: A minimal pure-CSS theme for Sphinx License: ISC URL: https://gitlab.com/lv2/%{pypi_name} Source0: %{url}/-/archive/v%{version}/%{pypi_name}-v%{version}.tar.bz2 +Patch0: Clean-up-HTML-link-tags.patch + BuildArch: noarch BuildRequires: python%{python3_pkgversion}-devel @@ -61,5 +63,8 @@ for typical Sphinx themes. %changelog +* Thu Aug 03 2023 yaoxin - 1.0.0-2 +- Fix style errors caused by python-sphinx upgrade to 7.0.1 + * Tue Dec 7 2021 Li Jingwei - 1.0.0-1 - package init