Description: debianization
 Meant to maintain a minimal debian/rules, to fix warnings, to address
 Debian specific stuff in general. This is a Debian centric patch.
Comment:
 0] Don't need to add jquery to script_files since we're using the Debian system
   jquery and that already gets added by Sphinx.
 1] There is a further fonts-related error but that is bootswatch's problem and
   not ours, see #845748.
 2] Python2 is now obsoleted: use_2to3 is set to False.
Origin: vendor, Debian
Forwarded: not-needed
Author: Jerome Benoit <calculus@rezozer.net>
Last-Update: 2022-05-29

--- a/setup.py
+++ b/setup.py
@@ -37,7 +37,7 @@
 setup(
     name="jupyter-sphinx-theme",
     version=__version__,
-    use_2to3=True,
+    use_2to3=False,
     description="Jupyter Sphinx Theme.",
     long_description=read_file("README"),
     url="http://github.com/jupyter/sphinx-theme",
@@ -64,5 +64,4 @@
     ],
 
     packages=PKGS,
-    include_package_data=True,
 )
--- a/jupyter_sphinx_theme/__init__.py
+++ b/jupyter_sphinx_theme/__init__.py
@@ -5,11 +5,6 @@
 
 on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
 
-def get_html_theme_path():
-    """Return list of HTML theme paths."""
-    cur_dir = os.path.abspath(os.path.dirname(__file__))
-    return [cur_dir]
-
 def bash(fileName):
     """Runs a bash script in the local directory"""
     sys.stdout.flush()
@@ -32,7 +27,7 @@
     source_suffix.append('.md')
 
 html_theme = 'jupyter'
-html_theme_path = get_html_theme_path()
+html_theme_path = ['/usr/share/jupyter_sphinx_theme']
 
 extensions = [
     'sphinx.ext.autodoc',
--- a/jupyter_sphinx_theme/jupyter/layout.html
+++ b/jupyter_sphinx_theme/jupyter/layout.html
@@ -2,10 +2,10 @@
 
 {% set theme_css_files = [] %}
 {% if theme_bootstrap_version == "3" %}
-  {% set bootstrap_version, bootstrap_additional_css, navbar_version = "3.3.4", "theme", "" %}
+  {% set bootstrap_version, bootstrap_additional_css, navbar_version = "3", "theme", "" %}
   {% set bs_span_prefix = "col-md-" %}
 {% else %}
-  {% set bootstrap_version, bootstrap_additional_css, navbar_version = "2.3.2", "responsive", "-2" %}
+  {% set bootstrap_version, bootstrap_additional_css, navbar_version = "2", "responsive", "-2" %}
   {% set bs_span_prefix = "span" %}
 {% endif %}
 
@@ -49,8 +49,6 @@
 {% endif %}
 
 {% set script_files = script_files + [
-    '_static/js/jquery-1.11.0.min.js',
-    '_static/js/jquery-fix.js',
     '_static/bootstrap-' + bootstrap_version + '/js/bootstrap.min.js',
     '_static/bootstrap-sphinx.js'
   ] + theme_custom_js
