1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
Description: Build documentation with Sphinx 7.2 or higher
Additionally remove unsatisfiable link to html5shiv.js, obsolete.
Author: Nicholas Breen
Origin: vendor
Last-Update: 2025-02-14
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
Index: votca/share/sphinx/_themes/sphinx_rtd_theme/layout.html
===================================================================
--- votca.orig/share/sphinx/_themes/sphinx_rtd_theme/layout.html
+++ votca/share/sphinx/_themes/sphinx_rtd_theme/layout.html
@@ -14,7 +14,7 @@
{%- set sphinx_version_info = (_ver_major, _ver_minor, -1) -%}
<!DOCTYPE html>
-<html class="{{ sphinx_writer }}" lang="{{ lang_attr }}" >
+<html class="{{ sphinx_writer }}" lang="{{ lang_attr }}"{% if sphinx_version_info >= (7, 2) %} data-content_root="{{ content_root }}"{% endif %}>
<head>
<meta charset="utf-8" />
{{- metatags }}
@@ -61,9 +61,6 @@
{#- JAVASCRIPTS #}
{%- block scripts %}
- <!--[if lt IE 9]>
- <script src="{{ pathto('_static/js/html5shiv.min.js', 1) }}"></script>
- <![endif]-->
{%- if not embedded %}
{# XXX Sphinx 1.8.0 made this an external js-file, quick fix until we refactor the template to inherert more blocks directly from sphinx #}
{%- if sphinx_version_info >= (1, 8) -%}
|