diff options
author | Michał Górny <mgorny@gentoo.org> | 2023-09-01 11:58:23 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2023-09-01 11:58:23 +0200 |
commit | 52a9d1e397238096b4a0397b9a66d2030e29a557 (patch) | |
tree | 998bba845263f6a7c2563d4825eb92a7388355c1 /tyrian_sphinx_theme | |
parent | Link all generated indices in the navbar (diff) | |
download | tyrian-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>
Diffstat (limited to 'tyrian_sphinx_theme')
-rw-r--r-- | tyrian_sphinx_theme/layout.html | 6 | ||||
-rw-r--r-- | tyrian_sphinx_theme/theme.conf | 2 |
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] |