Hello community, here is the log from the commit of package python-readthedocs-sphinx-ext for openSUSE:Factory checked in at 2020-08-01 12:30:46 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-readthedocs-sphinx-ext (Old) and /work/SRC/openSUSE:Factory/.python-readthedocs-sphinx-ext.new.3592 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-readthedocs-sphinx-ext" Sat Aug 1 12:30:46 2020 rev:7 rq:822787 version:2.1.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-readthedocs-sphinx-ext/python-readthedocs-sphinx-ext.changes 2020-07-15 12:11:20.816552484 +0200 +++ /work/SRC/openSUSE:Factory/.python-readthedocs-sphinx-ext.new.3592/python-readthedocs-sphinx-ext.changes 2020-08-01 12:30:48.998436510 +0200 @@ -1,0 +2,7 @@ +Sat Jul 25 15:14:03 UTC 2020 - Arun Persaud <arun@gmx.de> + +- update to version 2.1.1: + * New line at the end of the file + * Put the JS embed back into script_files (#92) + +------------------------------------------------------------------- Old: ---- readthedocs-sphinx-ext-2.1.0.tar.gz New: ---- readthedocs-sphinx-ext-2.1.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-readthedocs-sphinx-ext.spec ++++++ --- /var/tmp/diff_new_pack.S0KNmr/_old 2020-08-01 12:30:49.686437155 +0200 +++ /var/tmp/diff_new_pack.S0KNmr/_new 2020-08-01 12:30:49.690437158 +0200 @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-readthedocs-sphinx-ext -Version: 2.1.0 +Version: 2.1.1 Release: 0 Summary: Sphinx extension for Read the Docs overrides License: MIT ++++++ readthedocs-sphinx-ext-2.1.0.tar.gz -> readthedocs-sphinx-ext-2.1.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/readthedocs-sphinx-ext-2.1.0/PKG-INFO new/readthedocs-sphinx-ext-2.1.1/PKG-INFO --- old/readthedocs-sphinx-ext-2.1.0/PKG-INFO 2020-07-08 19:50:32.000000000 +0200 +++ new/readthedocs-sphinx-ext-2.1.1/PKG-INFO 2020-07-23 22:20:55.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.0 Name: readthedocs-sphinx-ext -Version: 2.1.0 +Version: 2.1.1 Summary: Sphinx extension for Read the Docs overrides Home-page: http://github.com/readthedocs/readthedocs-sphinx-ext Author: Read the Docs, Inc diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/readthedocs-sphinx-ext-2.1.0/readthedocs_ext/_templates/readthedocs-insert.html.tmpl new/readthedocs-sphinx-ext-2.1.1/readthedocs_ext/_templates/readthedocs-insert.html.tmpl --- old/readthedocs-sphinx-ext-2.1.0/readthedocs_ext/_templates/readthedocs-insert.html.tmpl 2020-07-08 19:22:18.000000000 +0200 +++ new/readthedocs-sphinx-ext-2.1.1/readthedocs_ext/_templates/readthedocs-insert.html.tmpl 2020-07-23 22:18:06.000000000 +0200 @@ -29,6 +29,5 @@ </script> <script type="text/javascript" src="{{ rtd_analytics_url }}" async="async"></script> -<script type="text/javascript" src="{{ rtd_js_url }}" async="async"></script> <!-- end RTD <extrahead> --> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/readthedocs-sphinx-ext-2.1.0/readthedocs_ext/readthedocs.py new/readthedocs-sphinx-ext-2.1.1/readthedocs_ext/readthedocs.py --- old/readthedocs-sphinx-ext-2.1.0/readthedocs_ext/readthedocs.py 2020-07-08 19:29:57.000000000 +0200 +++ new/readthedocs-sphinx-ext-2.1.1/readthedocs_ext/readthedocs.py 2020-07-23 22:18:06.000000000 +0200 @@ -111,6 +111,23 @@ else: app.add_css_file(theme_css) + # Add the Read the Docs embed + # This *must* come after Sphinx has loaded jQuery as it relies on it. + # Unless this script is modified to not rely on jQuery (a good goal), + # it can't just be put into the extrahead + # in case a theme outputs scripts at the end of the body + js_file = '{}javascript/readthedocs-doc-embed.js'.format(STATIC_URL) + if all(( + app.builder.name in ONLINE_BUILDERS, + hasattr(app.builder, 'script_files'), + js_file not in app.builder.script_files, + )): + if sphinx.version_info < (1, 8): + app.builder.script_files.append(js_file) + else: + kwargs = {'async': 'async'} # Workaround reserved word in Py3.7 + app.add_js_file(js_file, **kwargs) + # This is monkey patched on the signal because we can't know what the user # has done with their `app.builder.templates` before now. @@ -157,7 +174,6 @@ if ctx.get('proxied_api_host'): ctx['rtd_data']['proxied_api_host'] = ctx['proxied_api_host'] ctx['rtd_css_url'] = '{}css/readthedocs-doc-embed.css'.format(STATIC_URL) - ctx['rtd_js_url'] = '{}javascript/readthedocs-doc-embed.js'.format(STATIC_URL) ctx['rtd_analytics_url'] = '{}javascript/readthedocs-analytics.js'.format(STATIC_URL) source = os.path.join( os.path.abspath(os.path.dirname(__file__)), diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/readthedocs-sphinx-ext-2.1.0/readthedocs_sphinx_ext.egg-info/PKG-INFO new/readthedocs-sphinx-ext-2.1.1/readthedocs_sphinx_ext.egg-info/PKG-INFO --- old/readthedocs-sphinx-ext-2.1.0/readthedocs_sphinx_ext.egg-info/PKG-INFO 2020-07-08 19:50:32.000000000 +0200 +++ new/readthedocs-sphinx-ext-2.1.1/readthedocs_sphinx_ext.egg-info/PKG-INFO 2020-07-23 22:20:55.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.0 Name: readthedocs-sphinx-ext -Version: 2.1.0 +Version: 2.1.1 Summary: Sphinx extension for Read the Docs overrides Home-page: http://github.com/readthedocs/readthedocs-sphinx-ext Author: Read the Docs, Inc diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/readthedocs-sphinx-ext-2.1.0/setup.py new/readthedocs-sphinx-ext-2.1.1/setup.py --- old/readthedocs-sphinx-ext-2.1.0/setup.py 2020-07-08 19:29:57.000000000 +0200 +++ new/readthedocs-sphinx-ext-2.1.1/setup.py 2020-07-23 22:18:30.000000000 +0200 @@ -4,7 +4,7 @@ setup( name='readthedocs-sphinx-ext', - version='2.1.0', + version='2.1.1', author='Read the Docs, Inc', author_email='dev@readthedocs.com', url='http://github.com/readthedocs/readthedocs-sphinx-ext',