Also package Ironic's install-guide.

Change-Id: Id57fc28ff7fba9380b6a3c087a13848eda69c27c
This commit is contained in:
Thomas Goirand 2016-09-30 21:07:44 +02:00
parent 8bd6eed0de
commit c87558c499
2 changed files with 10 additions and 5 deletions

View File

@ -5,5 +5,5 @@ Abstract: Sphinx documentation for Ironic
Section: Programming/Python
Format: HTML
Index: /usr/share/doc/ironic-doc/html/index.html
Files: /usr/share/doc/ironic-doc/html/*
Index: /usr/share/doc/ironic-doc/dev-doc-html/index.html
Files: /usr/share/doc/ironic-doc/dev-doc-html/* /usr/share/doc/ironic-doc/install-guide-html

11
debian/rules vendored
View File

@ -60,9 +60,14 @@ endif
override_dh_sphinxdoc:
ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
PYTHONPATH=$(CURDIR) sphinx-build -a -b html doc/source $(CURDIR)/debian/ironic-doc/usr/share/doc/ironic-doc/html
PYTHONPATH=$(CURDIR) sphinx-build -a -b html doc/source $(CURDIR)/debian/ironic-doc/usr/share/doc/ironic-doc/dev-doc-html
## This is a workaround to avoid FTBFS, though a real fix should be found.
mkdir -p $(CURDIR)/debian/ironic-doc/usr/share/doc/ironic-doc/html/_static
touch $(CURDIR)/debian/ironic-doc/usr/share/doc/ironic-doc/html/_static/toggle.js
mkdir -p $(CURDIR)/debian/ironic-doc/usr/share/doc/ironic-doc/dev-doc-html/_static
touch $(CURDIR)/debian/ironic-doc/usr/share/doc/ironic-doc/dev-doc-html/_static/toggle.js
rm $(CURDIR)/debian/ironic-doc/usr/share/doc/ironic-doc/dev-doc-html/search.html
PYTHONPATH=$(CURDIR) sphinx-build -a -b html install-guide/source $(CURDIR)/debian/ironic-doc/usr/share/doc/ironic-doc/install-guide-html
rm $(CURDIR)/debian/ironic-doc/usr/share/doc/ironic-doc/install-guide-html/search.html
dh_sphinxdoc -O--buildsystem=python_distutils
endif