From 02384323541be4b0ee6260f84cde11dacd21c414 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antoine=20Beaupr=C3=A9?= <anarcat@koumbit.org> Date: Sat, 18 Oct 2014 15:00:02 -0400 Subject: [PATCH] try to ship the sphinx documentation with the package, untested --- debian/control | 1 + debian/doc-base | 4 ++-- debian/docs | 3 +-- debian/rules | 6 +++++- setup.cfg | 5 +++++ 5 files changed, 14 insertions(+), 5 deletions(-) diff --git a/debian/control b/debian/control index fac8a55..a284f9f 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 d3edfbb..20e3955 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 693b6e0..b604cf9 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 a7baa54..edc9562 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 b12e400..90530dd 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 -- GitLab