[med-svn] [python-ruffus] 01/02: use libjs-mathjax
Andreas Tille
tille at debian.org
Sun Feb 1 20:15:44 UTC 2015
This is an automated email from the git hooks/post-receive script.
tille pushed a commit to branch master
in repository python-ruffus.
commit 426c2c9a0f8ce456e3ce36abf81287915e2b9ad0
Author: Andreas Tille <tille at debian.org>
Date: Sun Feb 1 20:42:43 2015 +0100
use libjs-mathjax
---
debian/control | 3 ++-
debian/rules | 8 ++++++++
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/debian/control b/debian/control
index 7390a57..99dd7df 100644
--- a/debian/control
+++ b/debian/control
@@ -53,7 +53,8 @@ Package: python-ruffus-doc
Architecture: all
Section: doc
Depends: ${misc:Depends},
- ${sphinxdoc:Depends}
+ ${sphinxdoc:Depends},
+ libjs-mathjax
Description: documentation for Python computation pipeline library widely used in bioinformatics
Ruffus is designed to allow scientific and other analyses to be automated
with the minimum of fuss and the least effort.
diff --git a/debian/rules b/debian/rules
index 92c0d45..8a3f8a4 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,6 +2,9 @@
DH_VERBOSE := 1
+DEBPKGNAME:=$(shell dpkg-parsechangelog | awk '/^Source:/ {print $$2}')
+docpkg:=$(DEBPKGNAME)-doc
+
export PYBUILD_NAME=ruffus
%:
@@ -11,3 +14,8 @@ override_dh_installdocs:
PYTHONPATH=`pwd` make -C doc html
dh_installdocs -ppython-ruffus-doc doc/_build/html
dh_installdocs -A
+
+override_dh_sphinxdoc:
+ dh_sphinxdoc
+ find debian/$(docpkg)/usr/share/doc/$(docpkg)/html -type f -name "*.html" -exec sed -i 's?http://cdn.mathjax.org/mathjax/latest/?/usr/share/javascript/mathjax?g' \{\} \;
+# find debian/$(docpkg)/usr/share/doc/$(docpkg)/html/tutorials -type f -name "*.html" -exec sed -i 's?http://cdn.mathjax.org/mathjax/latest/?/usr/share/javascript/mathjax?g' \{\} \;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/python-ruffus.git
More information about the debian-med-commit
mailing list