diff options
author | Chris Johns <chrisj@rtems.org> | 2023-12-19 12:31:52 +1100 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2023-12-20 08:05:52 +1100 |
commit | e31a0b22fe43e0ec910678cdc4bdcf2be661a461 (patch) | |
tree | 3e0d3d8157623a32947e19f3dc0674dea9301340 /common/sphinx_rtd_theme_rtems | |
parent | c-user: CONFIGURE_JFFS2_DELAYED_WRITE_TASK_PRIORITY (diff) | |
download | rtems-docs-e31a0b22fe43e0ec910678cdc4bdcf2be661a461.tar.bz2 |
sphinx/style: Fix building with the latest sphinx
Tested on sphinx 7.2, 6.1.3 AND 5.3.0
Closes #4980
Diffstat (limited to 'common/sphinx_rtd_theme_rtems')
-rw-r--r-- | common/sphinx_rtd_theme_rtems/layout.html | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/common/sphinx_rtd_theme_rtems/layout.html b/common/sphinx_rtd_theme_rtems/layout.html index 0fe6c65..3542bea 100644 --- a/common/sphinx_rtd_theme_rtems/layout.html +++ b/common/sphinx_rtd_theme_rtems/layout.html @@ -67,7 +67,11 @@ {%- endblock %} {# CSS #} - <link rel="stylesheet" href="{{ pathto('_static/' + style, 1) }}" type="text/css" /> + {%- if sphinx_version <= "5.9.0" -%} + <link rel="stylesheet" href="{{ pathto('_static/' + style, 1) }}" type="text/css" /> + {%- else %} + <link rel="stylesheet" href="{{ pathto('_static/' + styles[-1], 1) }}" type="text/css" /> + {%- endif %} <link rel="stylesheet" href="{{ pathto('_static/pygments.css', 1) }}" type="text/css" /> {%- for css in css_files %} {%- if css|attr("rel") %} |