aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-09-01 11:58:23 +0200
committerMichał Górny <mgorny@gentoo.org>2023-09-01 11:58:23 +0200
commit52a9d1e397238096b4a0397b9a66d2030e29a557 (patch)
tree998bba845263f6a7c2563d4825eb92a7388355c1
parentLink all generated indices in the navbar (diff)
downloadtyrian-sphinx-theme-52a9d1e397238096b4a0397b9a66d2030e29a557.tar.gz
tyrian-sphinx-theme-52a9d1e397238096b4a0397b9a66d2030e29a557.tar.bz2
tyrian-sphinx-theme-52a9d1e397238096b4a0397b9a66d2030e29a557.zip
Fix CSS header compatibility with Sphinx-7
Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r--tyrian_sphinx_theme/layout.html6
-rw-r--r--tyrian_sphinx_theme/theme.conf2
2 files changed, 4 insertions, 4 deletions
diff --git a/tyrian_sphinx_theme/layout.html b/tyrian_sphinx_theme/layout.html
index 3e8accc..b18f02e 100644
--- a/tyrian_sphinx_theme/layout.html
+++ b/tyrian_sphinx_theme/layout.html
@@ -25,9 +25,9 @@
{%- endmacro %}
{%- macro css() %}
- <link rel="stylesheet" href="{{ pathto('_static/' + style, 1) }}" type="text/css" />
- <link rel="stylesheet" href="{{ pathto('_static/pygments.css', 1) }}" type="text/css" />
- <link rel="stylesheet" href="{{ pathto('_static/custom.css', 1) }}" type="text/css" />
+{%- for css in css_files %}
+ {{ css_tag(css) }}
+{%- endfor %}
<link rel="icon" href="https://www.gentoo.org/favicon.ico" type="image/x-icon">
<link href="https://assets.gentoo.org/tyrian/bootstrap.min.css" rel="stylesheet" media="screen">
diff --git a/tyrian_sphinx_theme/theme.conf b/tyrian_sphinx_theme/theme.conf
index 60ccefb..3616f25 100644
--- a/tyrian_sphinx_theme/theme.conf
+++ b/tyrian_sphinx_theme/theme.conf
@@ -1,6 +1,6 @@
[theme]
inherit = basic
-stylesheet = tyrian-sphinx-theme.css
+stylesheet = tyrian-sphinx-theme.css,custom.css
sidebars = localtoc.html
[options]