[python-arrayfire] 02/04: Use the system MathJax dependency.
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Fri Sep 16 14:02:53 UTC 2016
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to annotated tag debian/3.3.20160624-2
in repository python-arrayfire.
commit 9db6166377a0d9db2f581eb7a12207ecfa617a3d
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date: Fri Sep 16 12:47:58 2016 +0100
Use the system MathJax dependency.
---
debian/control | 3 ++-
debian/patches/Use-system-MathJax.patch | 22 ++++++++++++++++++++++
debian/patches/series | 1 +
debian/python-arrayfire-doc.links | 1 +
debian/rules | 3 +++
5 files changed, 29 insertions(+), 1 deletion(-)
diff --git a/debian/control b/debian/control
index 7d31816..95a54c4 100644
--- a/debian/control
+++ b/debian/control
@@ -63,7 +63,8 @@ Architecture: all
Multi-Arch: foreign
Section: doc
Depends: ${misc:Depends},
- ${sphinxdoc:Depends}
+ ${sphinxdoc:Depends},
+ libjs-mathjax
Description: examples for the ArrayFire Python wrappers
ArrayFire is a high performance software library for parallel computing
with an easy-to-use API. Its array based function set makes parallel
diff --git a/debian/patches/Use-system-MathJax.patch b/debian/patches/Use-system-MathJax.patch
new file mode 100644
index 0000000..f10c77b
--- /dev/null
+++ b/debian/patches/Use-system-MathJax.patch
@@ -0,0 +1,22 @@
+From: Ghislain Antony Vaillant <ghisvail at gmail.com>
+Date: Fri, 16 Sep 2016 12:47:33 +0100
+Subject: Use system MathJax.
+
+---
+ docs/conf.py | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/docs/conf.py b/docs/conf.py
+index 0493788..8c537b3 100644
+--- a/docs/conf.py
++++ b/docs/conf.py
+@@ -40,6 +40,9 @@ extensions = [
+ 'sphinx.ext.doctest',
+ 'sphinx.ext.inheritance_diagram']
+
++# Override required in order to use Debian's system mathjax.
++mathjax_path = 'MathJax.js'
++
+ # Add any paths that contain templates here, relative to this directory.
+ templates_path = ['_templates']
+
diff --git a/debian/patches/series b/debian/patches/series
index d83ee3e..13506d0 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
Fix-standalone-tests-module.patch
+Use-system-MathJax.patch
diff --git a/debian/python-arrayfire-doc.links b/debian/python-arrayfire-doc.links
new file mode 100644
index 0000000..2ecbca1
--- /dev/null
+++ b/debian/python-arrayfire-doc.links
@@ -0,0 +1 @@
+usr/share/javascript/mathjax/MathJax.js usr/share/doc/python-arrayfire-doc/html/_static/MathJax.js
diff --git a/debian/rules b/debian/rules
index 3795891..f935050 100755
--- a/debian/rules
+++ b/debian/rules
@@ -19,3 +19,6 @@ override_dh_auto_test:
PYBUILD_TEST_ARGS="cd {build_dir}; {interpreter} -m tests" \
PYBUILD_AFTER_TEST="rm -rf {build_dir}/tests" \
dh_auto_test
+
+override_dh_sphinxdoc:
+ dh_sphinxdoc --exclude=MathJax.js
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/python-arrayfire.git
More information about the debian-science-commits
mailing list