Fix style errors caused by python-sphinx upgrade to 7.0.1
This commit is contained in:
parent
bfa79ec6ca
commit
3804b639f7
36
Clean-up-HTML-link-tags.patch
Normal file
36
Clean-up-HTML-link-tags.patch
Normal file
@ -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() -%}
|
||||
- <link rel="stylesheet" href="{{ pathto('_static/pygments.css', 1) }}" type="text/css" />
|
||||
- <link rel="stylesheet" href="{{ pathto('_static/' + style, 1)|e }}" type="text/css" />
|
||||
{%- for css in css_files -%}
|
||||
- {%- if css|attr("filename") -%}
|
||||
+ {%- if css|attr("filename") %}
|
||||
{{ css_tag(css) }}
|
||||
- {%- else -%}
|
||||
+ {%- else %}
|
||||
<link rel="stylesheet" href="{{ pathto(css, 1)|e }}" type="text/css" />
|
||||
- {%- endif -%}
|
||||
+ {% endif %}
|
||||
{%- endfor -%}
|
||||
{%- endmacro -%}
|
||||
|
||||
--
|
||||
2.30.0
|
||||
|
||||
@ -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 <yao_xin001@hoperun.com> - 1.0.0-2
|
||||
- Fix style errors caused by python-sphinx upgrade to 7.0.1
|
||||
|
||||
* Tue Dec 7 2021 Li Jingwei <lijingwei@uniontech.com> - 1.0.0-1
|
||||
- package init
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user