| 1 |
#!/usr/bin/make -f |
| 2 |
export DH_VERBOSE = 1 |
| 3 |
|
| 4 |
export PYBUILD_NAME=sphinx-copybutton |
| 5 |
|
| 6 |
%: |
| 7 |
dh $@ --with sphinxdoc --buildsystem=pybuild |
| 8 |
|
| 9 |
override_dh_auto_build: |
| 10 |
ln -sf /usr/share/nodejs/clipboard/dist/clipboard.js sphinx_copybutton/_static/clipboard.min.js |
| 11 |
dh_auto_build |
| 12 |
PYTHONPATH=. http_proxy='127.0.0.1:9' python3 -m sphinx -N -bhtml docs docs/build/html |
| 13 |
rm -rf docs/build/html/_static/__pycache__ |
| 14 |
|
| 15 |
execute_after_dh_auto_install: |
| 16 |
dh_install -ppython-sphinx-copybutton-doc docs/build/html /usr/share/doc/python-sphinx-copybutton-doc/ |