| 1 |
|
| 2 |
|
| 3 |
export PYBUILD_NAME=md-toc |
| 4 |
|
| 5 |
%: |
| 6 |
dh ${@} --buildsystem=pybuild --with sphinxdoc |
| 7 |
|
| 8 |
override_dh_sphinxdoc: |
| 9 |
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS))) |
| 10 |
PYTHONPATH=src python3 -m sphinx -b html docs $(CURDIR)/debian/python-$(PYBUILD_NAME)-doc/usr/share/doc/python-$(PYBUILD_NAME)-doc/html |
| 11 |
dh_sphinxdoc |
| 12 |
|
| 13 |
|
| 14 |
rm -f debian/python-md-toc-doc/usr/share/doc/python-md-toc-doc/html/.nojekyll debian/python-md-toc-doc/usr/share/doc/python-md-toc-doc/html/_static/_static |
| 15 |
|
| 16 |
|
| 17 |
rm -rf debian/python-md-toc-doc/usr/share/doc/python-md-toc-doc/html/_static/__pycache__ |
| 18 |
endif |
| 19 |
|
| 20 |
override_dh_auto_test: |
| 21 |
|