Skip to content

Commit 00af923

Browse files
committed
Include doc and manpage in Debian package.
This implies building HTML doc and therefore adds python3-sphinx as a build-time dependency.
1 parent a0098e4 commit 00af923

File tree

4 files changed

+15
-2
lines changed

4 files changed

+15
-2
lines changed

debian/control

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ Build-Depends: debhelper (>= 9),
1515
python3-dbus,
1616
gir1.2-gtk-3.0,
1717
gir1.2-wnck-3.0,
18-
gir1.2-glib-2.0
18+
gir1.2-glib-2.0,
19+
python3-sphinx
1920
Standards-Version: 4.4.0
2021

2122
Package: quicktile

debian/docs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
quicktile
1+
docs/_build/html
2+
README.rst

debian/manpages

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
docs/_build/man/quicktile.1

debian/rules

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,13 @@ include /usr/share/dpkg/default.mk
2323
override_dh_auto_install:
2424
dh_auto_install
2525
install -D quicktile.desktop debian/quicktile/etc/xdg/autostart/quicktile.desktop
26+
27+
override_dh_installdocs:
28+
pip3 install --user sphinx_autodoc_typehints sphinxcontrib.autoprogram
29+
( cd docs ; env PATH=$$HOME/.local/bin/:$$PATH make html ; )
30+
dh_installdocs
31+
32+
override_dh_installman:
33+
pip3 install --user sphinx_autodoc_typehints sphinxcontrib.autoprogram
34+
( cd docs ; env PATH=$$HOME/.local/bin/:$$PATH make man ; )
35+
dh_installman

0 commit comments

Comments
 (0)