| 1 |
#!/usr/bin/make -f |
| 2 |
#export DH_VERBOSE = 1 |
| 3 |
export PYBUILD_NAME=yarg |
| 4 |
export PYBUILD_TEST_ARGS=-v {dir}/tests/ -p no:warnings |
| 5 |
|
| 6 |
%: |
| 7 |
|
| 8 |
dh $@ --with sphinxdoc --buildsystem=pybuild |
| 9 |
|
| 10 |
# Build sphinx HTML documentation |
| 11 |
execute_after_dh_auto_build: |
| 12 |
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS))) |
| 13 |
PYTHONPATH=$(CURDIR)/src/ \ |
| 14 |
http_proxy=http://127.0.0.1:9 \ |
| 15 |
https_proxy=https://127.0.0.1:9 \ |
| 16 |
python3 -m sphinx -N -bhtml docs/source debian/html |
| 17 |
endif |
| 18 |
|
| 19 |
override_dh_link: |
| 20 |
dh_link |
| 21 |
#Fixe privacy-breach-generic |
| 22 |
find debian/ -name '*Fira*' -delete |
| 23 |
find debian/python-yarg-doc/ -name '*.html' -exec sed -i 's|"https://||g' {} \; |
| 24 |
find debian/python-yarg-doc/ -name 'jinja.css' -exec sed -i 's|@import url("https||g' {} \; |