From f4c88a444768c5961554312bcbd2f1180d9b1848 Mon Sep 17 00:00:00 2001 From: Troy Dawson Date: Wed, 14 Oct 2020 20:31:45 -0700 Subject: [PATCH] RHEL 9.0.0 Alpha bootstrap The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/python-sphinx_rtd_theme#bed24229d1e071065fc12488b2b78dbf35183965 --- .gitignore | 2 + python-sphinx_rtd_theme-script.patch | 39 ++++ python-sphinx_rtd_theme.rpmlintrc | 8 + python-sphinx_rtd_theme.spec | 255 +++++++++++++++++++++++++++ sources | 2 + 5 files changed, 306 insertions(+) create mode 100644 python-sphinx_rtd_theme-script.patch create mode 100644 python-sphinx_rtd_theme.rpmlintrc create mode 100644 python-sphinx_rtd_theme.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..0ca2fc2 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,2 @@ +/sphinx_rtd_theme-*.tar.gz +/objects.inv diff --git a/python-sphinx_rtd_theme-script.patch b/python-sphinx_rtd_theme-script.patch new file mode 100644 index 0000000..069bb90 --- /dev/null +++ b/python-sphinx_rtd_theme-script.patch @@ -0,0 +1,39 @@ +Remove deprecated use of script_files + +Fixes sphinx-doc/sphinx#6088 + +* Add script block +* Fix build error + +--- sphinx_rtd_theme/layout.html.orig 2019-02-12 12:37:47.000000000 -0700 ++++ sphinx_rtd_theme/layout.html 2019-08-06 09:02:26.103136905 -0600 +@@ -29,6 +29,7 @@ + {% endif %} + + {# JAVASCRIPTS #} ++ {%- block scripts %} + + {%- 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 #} +@@ -62,6 +63,7 @@ + href="{{ pathto('_static/opensearch.xml', 1) }}"/> + {%- endif %} + {%- endif %} ++ {%- endblock %} + + {# CSS #} + +--- sphinx_rtd_theme/search.html.orig 2019-02-12 12:37:47.000000000 -0700 ++++ sphinx_rtd_theme/search.html 2019-08-06 09:03:25.597117851 -0600 +@@ -9,7 +9,10 @@ + #} + {%- extends "layout.html" %} + {% set title = _('Search') %} +-{% set script_files = script_files + ['_static/searchtools.js'] %} ++{%- block scripts %} ++ {{ super() }} ++ ++{%- endblock %} + {% block footer %} +