[python-escript] 03/03: Use libjs-mathjax instead of external site

Joel Fenwick jfenwick-guest at moszumanska.debian.org
Thu Nov 30 01:07:20 UTC 2017


This is an automated email from the git hooks/post-receive script.

jfenwick-guest pushed a commit to branch debian
in repository python-escript.

commit ff2a920900096d7493a09b8ad8d8f9eb38fd3ab8
Author: Joel Fenwick <joelfenwick at uq.edu.au>
Date:   Tue Nov 28 21:04:34 2017 +1000

    Use libjs-mathjax instead of external site
    
    Also fix the version number in the sphinx doco
---
 debian/control                  |  2 ++
 debian/patches/fixmathjax       | 11 +++++++++++
 debian/patches/fixsphinxversion | 14 ++++++++++++++
 debian/patches/series           |  2 ++
 4 files changed, 29 insertions(+)

diff --git a/debian/control b/debian/control
index 7abaed6..63c345a 100644
--- a/debian/control
+++ b/debian/control
@@ -24,6 +24,7 @@ Build-Depends: python-all-dev,
                libopenmpi-dev,
                openmpi-bin,
                debhelper (>= 10),
+               libjs-mathjax,
                dh-python
 Standards-Version: 4.1.1
 Vcs-Browser: https://anonscm.debian.org/cgit/debian-science/packages/python-escript.git
@@ -157,6 +158,7 @@ Package: python-escript-doc
 Architecture: all
 Depends: doc-base,
          libjs-sphinxdoc,
+         libjs-mathjax,
          sphinx-common,
          ${misc:Depends}
 Recommends: python-escript
diff --git a/debian/patches/fixmathjax b/debian/patches/fixmathjax
new file mode 100644
index 0000000..2f16fba
--- /dev/null
+++ b/debian/patches/fixmathjax
@@ -0,0 +1,11 @@
+--- a/doc/sphinx_api/conf.py
++++ b/doc/sphinx_api/conf.py
+@@ -93,6 +93,8 @@ pygments_style = 'sphinx'
+ 
+ # -- Options for HTML output ---------------------------------------------------
+ 
++mathjax_path = 'file:///usr/share/javascript/mathjax/MathJax.js'
++
+ # The theme to use for HTML and HTML Help pages.  See the documentation for
+ # a list of builtin themes.
+ html_theme = 'default'
diff --git a/debian/patches/fixsphinxversion b/debian/patches/fixsphinxversion
new file mode 100644
index 0000000..2f31289
--- /dev/null
+++ b/debian/patches/fixsphinxversion
@@ -0,0 +1,14 @@
+--- a/doc/sphinx_api/conf.py
++++ b/doc/sphinx_api/conf.py
+@@ -52,9 +52,9 @@ copyright = u'2012-2014, Author'
+ # built documents.
+ #
+ # The short X.Y version.
+-version = '4.0'
++version = '5.1'
+ # The full version, including alpha/beta/rc tags.
+-release = '4.0'
++release = '5.1'
+ 
+ # The language for content autogenerated by Sphinx. Refer to documentation
+ # for a list of supported languages.
diff --git a/debian/patches/series b/debian/patches/series
index 3f6167c..cb4003a 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -5,3 +5,5 @@
 #dateless-gz
 #rootintar
 manspelling
+fixmathjax
+fixsphinxversion

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/python-escript.git



More information about the debian-science-commits mailing list