summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2023-11-15 18:19:21 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2023-11-15 18:19:21 +0900
commit35f1e326ec68c67401e3b4eaff9514454b841d89 (patch)
tree80be8253944d3cbcd4cea693f8d3f8186ec2b875 /doc
parent936d64d555109423a7610c39b49159a7cdb1fbbd (diff)
Update sphinx_rtd_theme
Diffstat (limited to 'doc')
-rw-r--r--doc/sphinx_themes/sphinx_rtd_theme/__init__.py2
-rw-r--r--doc/sphinx_themes/sphinx_rtd_theme/layout.html13
2 files changed, 10 insertions, 5 deletions
diff --git a/doc/sphinx_themes/sphinx_rtd_theme/__init__.py b/doc/sphinx_themes/sphinx_rtd_theme/__init__.py
index 257167e5..3c7e134f 100644
--- a/doc/sphinx_themes/sphinx_rtd_theme/__init__.py
+++ b/doc/sphinx_themes/sphinx_rtd_theme/__init__.py
@@ -12,7 +12,7 @@ from sphinx.locale import _
from sphinx.util.logging import getLogger
-__version__ = '2.0.0rc3'
+__version__ = '2.0.0rc5'
__version_full__ = __version__
logger = getLogger(__name__)
diff --git a/doc/sphinx_themes/sphinx_rtd_theme/layout.html b/doc/sphinx_themes/sphinx_rtd_theme/layout.html
index f3de11ad..c8a30762 100644
--- a/doc/sphinx_themes/sphinx_rtd_theme/layout.html
+++ b/doc/sphinx_themes/sphinx_rtd_theme/layout.html
@@ -28,12 +28,17 @@
<link rel="stylesheet" href="{{ pathto('_static/' + style, 1) }}" type="text/css" />
<link rel="stylesheet" href="{{ pathto('_static/pygments.css', 1) }}" type="text/css" />
{%- endif %}
- {%- for css in css_files %}
- {{ css_tag(css) }}
+ {%- for css_file in css_files %}
+ {%- if css_file|attr("filename") %}
+ {{ css_tag(css_file) }}
+ {%- else %}
+ <link rel="stylesheet" href="{{ pathto(css_file, 1)|escape }}" type="text/css" />
+ {%- endif %}
{%- endfor %}
- {%- for cssfile in extra_css_files %}
- {{ css_tag(cssfile) }}
+ {# "extra_css_files" is a theme option and it's always a string #}
+ {%- for css_file in extra_css_files %}
+ <link rel="stylesheet" href="{{ pathto(css_file, 1)|escape }}" type="text/css" />
{%- endfor -%}
{#- FAVICON