[Python-modules-commits] [cf-python] 06/17: Added documentation fixes.

Klaus Zimmermann zklaus-guest at moszumanska.debian.org
Thu Sep 8 14:48:56 UTC 2016


This is an automated email from the git hooks/post-receive script.

zklaus-guest pushed a commit to branch master
in repository cf-python.

commit acc0424a9ea24a75df06304114863c51f0089c16
Author: Klaus Zimmermann <klaus_zimmermann at gmx.de>
Date:   Thu Aug 18 11:46:49 2016 +0200

    Added documentation fixes.
    
    Signed-off-by: Klaus Zimmermann <klaus_zimmermann at gmx.de>
---
 debian/control | 17 ++++++++++++++---
 debian/rules   | 10 ++++++++++
 2 files changed, 24 insertions(+), 3 deletions(-)

diff --git a/debian/control b/debian/control
index 0093e94..ab510d7 100644
--- a/debian/control
+++ b/debian/control
@@ -1,8 +1,14 @@
 Source: cf-python
-Section: science
+Section: python
 Priority: optional
 Maintainer: Klaus Zimmermann <klaus_zimmermann at gmx.de>
-Build-Depends: debhelper (>=9),dh-python,python-all (>= 2.6.6-3~),python-setuptools,python-netcdf4,python-sphinx
+Build-Depends:
+ debhelper (>=9),
+ dh-python,
+ python-all (>= 2.6.6-3~),
+ python-setuptools,
+ python-netcdf4,
+ python-sphinx
 Standards-Version: 3.9.7
 Homepage: http://cfpython.bitbucket.org/
 #Vcs-Git: git://anonscm.debian.org/collab-maint/cf-python.git
@@ -46,7 +52,12 @@ Description: Python processing of Climate and Forecast (CF) data models (Python
 Package: python-cf-doc
 Architecture: all
 Section: doc
-Depends: ${sphinxdoc:Depends}, ${misc:Depends}
+Depends:
+ ${sphinxdoc:Depends},
+ ${misc:Depends},
+ libjs-mathjax,
+ libjs-underscore,
+ libjs-jquery
 Description: Python processing of Climate and Forecast (CF) data models (Python 2)
  CF is a netCDF convention which is in wide and growing use for the storage of
  model-generated and observational data relating to the atmosphere, ocean and
diff --git a/debian/rules b/debian/rules
index 561b680..27ee316 100755
--- a/debian/rules
+++ b/debian/rules
@@ -15,6 +15,16 @@ override_dh_auto_test:
 override_dh_sphinxdoc:
 	dh_sphinxdoc -X jquery.js -X underscore.js
 
+override_dh_installdocs:
+	dh_installdocs
+	ln -s /usr/share/javascript/mathjax/MathJax.js $(CURDIR)/docs/build/_static/
+	ln -s /usr/share/javascript/underscore.js $(CURDIR)/docs/build/_static/
+	ln -s /usr/share/javascript/jquery/jquery.js $(CURDIR)/docs/build/_static/
+	ln -s /usr/share/javascript/jquery/jquery.min.js $(CURDIR)/docs/build/_static/
+	find docs/build -name "*.html" -exec sed -i "s|https://cdn.mathjax.org/mathjax/latest/MathJax.js|_static/MathJax.js|" {} \;
+	find docs/build -name "*.html" -exec sed -i "s|https://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js|_static/jquery.min.js|" {} \;
+	dh_installdocs -ppython-cf-doc docs/build
+
 # If you need to rebuild the Sphinx documentation
 # Add spinxdoc to the dh --with line
 #override_dh_auto_build:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/cf-python.git



More information about the Python-modules-commits mailing list