[pdal] 09/12: Use libjs-mathjax package for sphinx documentation.
Bas Couwenberg
sebastic at debian.org
Sat Aug 27 13:10:11 UTC 2016
This is an automated email from the git hooks/post-receive script.
sebastic pushed a commit to branch master-git
in repository pdal.
commit 7914d6f867c7fee381b6c1839f8ce71bceda36f9
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date: Sat Apr 30 18:54:56 2016 +0200
Use libjs-mathjax package for sphinx documentation.
---
debian/changelog | 1 +
debian/control | 4 +++-
debian/patches/series | 1 +
debian/patches/use-local-mathjax.patch | 15 +++++++++++++++
debian/rules | 3 +++
5 files changed, 23 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index 598d774..9a60028 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -9,6 +9,7 @@ pdal (1.2.0+git20160429-cbe9b08-1) UNRELEASED; urgency=medium
(disable nitfwrap tool by default).
* Add patch to not require sphinxcontrib.bibtex extension (not packaged).
* Add patch to fix websocketpp detection for greyhound plugin.
+ * Use libjs-mathjax package for sphinx documentation.
-- Bas Couwenberg <sebastic at debian.org> Sat, 30 Apr 2016 15:30:38 +0200
diff --git a/debian/control b/debian/control
index 614f60a..7a00d6a 100644
--- a/debian/control
+++ b/debian/control
@@ -18,6 +18,7 @@ Build-Depends: debhelper (>= 9),
libgeotiff-dev,
libhdf5-serial-dev,
libjsoncpp-dev,
+ libjs-mathjax,
libpq-dev,
libproj-dev,
libspatialite-dev,
@@ -67,7 +68,8 @@ Description: Point Data Abstraction Library
Package: pdal-doc
Architecture: all
Section: doc
-Depends: ${sphinxdoc:Depends},
+Depends: libjs-mathjax,
+ ${sphinxdoc:Depends},
${misc:Depends}
Suggests: libpdal-dev,
pdal
diff --git a/debian/patches/series b/debian/patches/series
index fcc14a4..26bdc22 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@ privacy-breach.patch
dont-require-nitro.patch
dont-require-sphinxcontrib-bibtex.patch
find-websocketpp.patch
+use-local-mathjax.patch
diff --git a/debian/patches/use-local-mathjax.patch b/debian/patches/use-local-mathjax.patch
new file mode 100644
index 0000000..f366f59
--- /dev/null
+++ b/debian/patches/use-local-mathjax.patch
@@ -0,0 +1,15 @@
+Description: Use packaged libjs-mathjax instead of online copy.
+Author: Bas Couwenberg <sebastic at debian.org>
+Forwarded: not-needed
+
+--- a/doc/conf.py
++++ b/doc/conf.py
+@@ -32,6 +32,8 @@ extensions = ['breathe', 'sphinx.ext.aut
+ 'sphinx.ext.mathjax', 'sphinx.ext.intersphinx']
+
+
++mathjax_path = '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/rules b/debian/rules
index 0305797..7640ae6 100755
--- a/debian/rules
+++ b/debian/rules
@@ -53,6 +53,9 @@ override_dh_auto_build:
dh_auto_build
SPHINXOPTS="-D today=\"$(SPHINX_BUILD_DATE)\"" sphinx-build doc/ doc/html/
+ for f in `find doc/html/ -type d`; do \
+ ln -s /usr/share/javascript/mathjax $${f}/mathjax ; \
+ done
override_dh_auto_test:
# Exclude tests:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/pdal.git
More information about the Pkg-grass-devel
mailing list