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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
|
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.
Origin: vendor, Debian
Forwarded: not-needed
Author: Jerome Benoit <calculus@rezozer.net>
Last-Update: 2016-11-26
--- a/setup.py
+++ b/setup.py
@@ -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
|