[Debian-astro-commits] [python-astropy] 04/05: Use the packaged MathJax
Ole Streicher
olebole at moszumanska.debian.org
Tue Dec 19 10:54:01 UTC 2017
This is an automated email from the git hooks/post-receive script.
olebole pushed a commit to branch master
in repository python-astropy.
commit 5ad3ccfe51ea6159173035b9441ea589b8b9a626
Author: Ole Streicher <olebole at debian.org>
Date: Tue Dec 19 11:35:20 2017 +0100
Use the packaged MathJax
---
debian/control | 1 +
debian/patches/Use-the-packaged-MathJax.patch | 20 ++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 22 insertions(+)
diff --git a/debian/control b/debian/control
index ca92da7..5fc4c3c 100644
--- a/debian/control
+++ b/debian/control
@@ -13,6 +13,7 @@ Build-Depends: cython,
libexpat1-dev,
libjs-jquery,
libjs-jquery-datatables,
+ libjs-mathjax,
pkg-config,
python-all-dev (>= 2.7~),
python-astropy-helpers (>= 1.1~),
diff --git a/debian/patches/Use-the-packaged-MathJax.patch b/debian/patches/Use-the-packaged-MathJax.patch
new file mode 100644
index 0000000..e24b2e6
--- /dev/null
+++ b/debian/patches/Use-the-packaged-MathJax.patch
@@ -0,0 +1,20 @@
+From: Ole Streicher <olebole at debian.org>
+Date: Tue, 19 Dec 2017 11:34:49 +0100
+Subject: Use the packaged MathJax
+
+---
+ astropy_helpers/astropy_helpers/sphinx/conf.py | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/astropy_helpers/astropy_helpers/sphinx/conf.py b/astropy_helpers/astropy_helpers/sphinx/conf.py
+index 0e77234..8eb29da 100644
+--- a/astropy_helpers/astropy_helpers/sphinx/conf.py
++++ b/astropy_helpers/astropy_helpers/sphinx/conf.py
+@@ -148,6 +148,7 @@ extensions = [
+ 'astropy_helpers.sphinx.ext.doctest',
+ 'astropy_helpers.sphinx.ext.changelog_links']
+
++mathjax_path = 'file:///usr/share/javascript/mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML'
+
+ if not on_rtd and LooseVersion(sphinx.__version__) < LooseVersion('1.4'):
+ extensions.append('sphinx.ext.pngmath')
diff --git a/debian/patches/series b/debian/patches/series
index 69494b6..cbc7bb3 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@ disable_helper.patch
only_python3-binaries.patch
mark_known_failures.patch
external_python_pkgs.patch
+Use-the-packaged-MathJax.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-astro/packages/python-astropy.git
More information about the Debian-astro-commits
mailing list