[python-xarray] 10/12: Use the packaged MathJax
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Sat Apr 15 20:52:04 UTC 2017
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch master
in repository python-xarray.
commit 55b864b2cdb37659865ed5b38fb57d1840c5f592
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date: Sat Apr 15 15:44:59 2017 +0100
Use the packaged MathJax
- Add MathJax to the i-deps of the documentation package
- Patch the docs configuration to use the packaged MathJax
Gbp-Dch: full
---
debian/control | 3 ++-
debian/patches/Use-packaged-MathJax.patch | 21 +++++++++++++++++++++
debian/patches/series | 1 +
debian/rules | 3 +++
4 files changed, 27 insertions(+), 1 deletion(-)
diff --git a/debian/control b/debian/control
index a4f938b..2e76155 100644
--- a/debian/control
+++ b/debian/control
@@ -68,7 +68,8 @@ Package: python-xarray-doc
Architecture: all
Section: doc
Depends: ${misc:Depends},
- ${sphinxdoc:Depends}
+ ${sphinxdoc:Depends},
+ libjs-mathjax
Built-Using: ${sphinxdoc:Built-Using}
Description: documentation for xarray
xarray (formerly xray) is an open source project and Python package that aims
diff --git a/debian/patches/Use-packaged-MathJax.patch b/debian/patches/Use-packaged-MathJax.patch
new file mode 100644
index 0000000..172cfe9
--- /dev/null
+++ b/debian/patches/Use-packaged-MathJax.patch
@@ -0,0 +1,21 @@
+From: Ghislain Antony Vaillant <ghisvail at gmail.com>
+Date: Sat, 15 Apr 2017 16:01:30 +0100
+Subject: Use packaged MathJax
+
+---
+ doc/conf.py | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/doc/conf.py b/doc/conf.py
+index 4b05a28..55d0ffb 100644
+--- a/doc/conf.py
++++ b/doc/conf.py
+@@ -102,6 +102,8 @@ autosummary_generate = True
+ numpydoc_class_members_toctree = True
+ numpydoc_show_class_members = False
+
++mathjax_path = 'file:///usr/share/javascript/mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML'
++
+ # 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 8a02a61..6baeed3 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
Fix-missing-config-errors-when-running-test-suite.patch
Use-packaged-docs.patch
+Use-packaged-MathJax.patch
diff --git a/debian/rules b/debian/rules
index 226b0d7..48d125a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -24,3 +24,6 @@ override_dh_auto_build:
ifeq (,$(findstring nodoc,$(DEB_BUILD_PROFILES)))
PYTHONPATH=$(CURDIR) $(MAKE) -C doc html
endif
+
+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-xarray.git
More information about the debian-science-commits
mailing list