1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
export PYBUILD_NAME=opt-einsum
%:
dh $@ --with python3 --buildsystem=pybuild
override_dh_installdocs:
PYTHONPATH=. https_proxy='127.0.0.1:9' http_proxy='127.0.0.1:9' mkdocs build -d build/html
find -type f -name "*.html" -exec sed -i 's|https://fonts.gstatic.com|(URL removed)|g' {} +
find -type f -name "*.html" -exec sed -i 's|https://fonts.googleapis.com|(URL removed)|g' {} +
rm -f build/html/sitemap.xml.gz
dh_installdocs -ppython-opt-einsum-doc --doc-main-package=python-opt-einsum-doc build/html
dh_installdocs
|