[python-bumps] 08/20: build docs using sphinxdoc

Drew Parsons dparsons at moszumanska.debian.org
Sun Oct 29 06:29:25 UTC 2017


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

dparsons pushed a commit to tag debian/0.7.6-1
in repository python-bumps.

commit ccba225d7f230bbe23e0e7e19c218576fa456bd6
Author: Drew Parsons <dparsons at debian.org>
Date:   Sun Oct 29 09:41:14 2017 +0800

    build docs using sphinxdoc
    
    html and texinfo.  The bumps docs are not suitable for man pages.
---
 debian/python-bumps-doc.doc-base                     | 14 ++++++++++++++
 ...{python-bumps-docs.docs => python-bumps-doc.docs} |  1 +
 debian/python-bumps-doc.info                         |  1 +
 debian/python-bumps.doc-base.EX                      | 20 --------------------
 debian/rules                                         | 15 ++++++++-------
 5 files changed, 24 insertions(+), 27 deletions(-)

diff --git a/debian/python-bumps-doc.doc-base b/debian/python-bumps-doc.doc-base
new file mode 100644
index 0000000..082317f
--- /dev/null
+++ b/debian/python-bumps-doc.doc-base
@@ -0,0 +1,14 @@
+Document: python-bumps
+Title: Debian python-bumps Manual
+Author: Paul Kienzle <pkienzle at nist.gov>
+Abstract: This manual describes what python-bumps is
+ and how it can be used. A tutorial is included.
+Section: Science/Data Analysis
+
+Format: Info
+Index: /usr/share/info/bumps.info.gz
+Files: /usr/share/info/bumps.info*.gz
+
+Format: HTML
+Index: /usr/share/doc/python-bumps-doc/html/index.html
+Files: /usr/share/doc/python-bumps-doc/html/*.html
diff --git a/debian/python-bumps-docs.docs b/debian/python-bumps-doc.docs
similarity index 71%
rename from debian/python-bumps-docs.docs
rename to debian/python-bumps-doc.docs
index efea0a6..b11db1b 100644
--- a/debian/python-bumps-docs.docs
+++ b/debian/python-bumps-doc.docs
@@ -1,2 +1,3 @@
 README.Debian
 README.source
+build/html
diff --git a/debian/python-bumps-doc.info b/debian/python-bumps-doc.info
new file mode 100644
index 0000000..747654c
--- /dev/null
+++ b/debian/python-bumps-doc.info
@@ -0,0 +1 @@
+build/texinfo/bumps.info*
diff --git a/debian/python-bumps.doc-base.EX b/debian/python-bumps.doc-base.EX
deleted file mode 100644
index 1aec233..0000000
--- a/debian/python-bumps.doc-base.EX
+++ /dev/null
@@ -1,20 +0,0 @@
-Document: python-bumps
-Title: Debian python-bumps Manual
-Author: <insert document author here>
-Abstract: This manual describes what python-bumps is
- and how it can be used to
- manage online manuals on Debian systems.
-Section: unknown
-
-Format: debiandoc-sgml
-Files: /usr/share/doc/python-bumps/python-bumps.sgml.gz
-
-Format: postscript
-Files: /usr/share/doc/python-bumps/python-bumps.ps.gz
-
-Format: text
-Files: /usr/share/doc/python-bumps/python-bumps.text.gz
-
-Format: HTML
-Index: /usr/share/doc/python-bumps/html/index.html
-Files: /usr/share/doc/python-bumps/html/*.html
diff --git a/debian/rules b/debian/rules
index 1720e8c..fd1fd57 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,16 +6,17 @@
 export PYBUILD_NAME=bumps
 
 %:
-	dh $@ --with python2,python3 --buildsystem=pybuild
+	dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
 
 override_dh_install:
 	dh_install
 #	mv debian/python3-bumps/usr/bin/bumps debian/python3-bumps/usr/bin/bumps3
 
-# If you need to rebuild the Sphinx documentation
-# Add spinxdoc to the dh --with line
-#override_dh_auto_build:
-#	dh_auto_build
-#	PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -bhtml        docs/ build/html # HTML generator
-#	PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -bman        docs/ build/man # Manpage generator
+override_dh_auto_build:
+	dh_auto_build
+	PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -bhtml     doc/ build/html # HTML generator
+	PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -btexinfo     doc/ build/texinfo # texinfo generator
 
+override_dh_installinfo:
+	cd build/texinfo; makeinfo bumps.texi
+	dh_installinfo

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



More information about the debian-science-commits mailing list