diff --git a/debian/control b/debian/control index fac8a5581ae418369d2b3700e24382046116f8dd..a284f9fd9dedd90983baebe795c91a49c00d11ad 100644 --- a/debian/control +++ b/debian/control @@ -10,6 +10,7 @@ Build-Depends: debhelper (>= 9) , python-zbar , python-zbarpygtk , python-docutils + , python-sphinx Standards-Version: 3.9.6 Homepage: http://web.monkeysphere.info/monkeysign Vcs-Git: git://git.monkeysphere.info/monkeysign diff --git a/debian/doc-base b/debian/doc-base index d3edfbbeb55f35d2bb505dbc6ada0395df9f4b9d..20e3955182042047d225d32f8659bc701018563e 100644 --- a/debian/doc-base +++ b/debian/doc-base @@ -8,5 +8,5 @@ Format: text Files: /usr/share/doc/monkeysign/presentation.rst Format: HTML -Index: /usr/share/doc/monkeysign/presentation.html -Files: /usr/share/doc/monkeysign/presentation.html +Index: /usr/share/doc/monkeysign/html/index.html +Files: /usr/share/doc/monkeysign/html/ diff --git a/debian/docs b/debian/docs index 693b6e0037f4823c4645d757635d33f311095cf9..b604cf9deeb2f09bad8863d0da98793682cdaf85 100644 --- a/debian/docs +++ b/debian/docs @@ -1,4 +1,3 @@ README.mdwn HACKING.mdwn -doc/presentation* -doc/ui/ +doc/html/ diff --git a/debian/rules b/debian/rules index a7baa541080cafff0fcb1b96f31ce05c197b38cd..edc9562e00332c582aea563f4bcaf2ce9ff3e8e3 100755 --- a/debian/rules +++ b/debian/rules @@ -8,10 +8,14 @@ export DH_OPTIONS %: - dh $@ --with=python2 + dh $@ --with=python2,sphinxdoc override_dh_auto_install: dh_auto_install # workaround a limitation in distutils, see # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=743150 ln -sf monkeysign debian/monkeysign/usr/bin/monkeyscan + +override_dh_auto_build: + dh_auto_build + python setup.py build_sphinx diff --git a/setup.cfg b/setup.cfg index b12e400c5b68c44a1ed471542146af364a97f88d..90530dd94049f8fecb4ce1f1dfd7b3b9cdeddf54 100644 --- a/setup.cfg +++ b/setup.cfg @@ -5,3 +5,8 @@ parsers=monkeysign:monkeysign.cli:MonkeysignCli.parser [build_slides] file=doc/presentation.rst + +[build_sphinx] +source-dir = doc +build-dir = doc +all_files = 1