File: rules

package info (click to toggle)
python-sphinx-autodoc2 0.5.0-6
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 1,268 kB
  • sloc: python: 3,407; xml: 72; makefile: 9
file content (16 lines) | stat: -rwxr-xr-x 658 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/make -f

export PYBUILD_NAME=sphinx-autodoc2

%:
	dh $@ --with sphinxdoc --buildsystem=pybuild

override_dh_installdocs:
	https_proxy='127.0.0.1:9' http_proxy='127.0.0.1:9' sphinx-build -b html docs build/sphinx/html

	# Remove or replace privacy-breach URLs with local paths
	find -type f -name "*.html" -exec sed -i 's|https://img.shields.io/github/stars/chrisjsewell/sphinx-autodoc2|(URL removed)|g' {} +
	find -type f -name "*.html" -exec sed -i 's|https://img.shields.io/pypi/v/sphinx-autodoc2|(URL removed)|g' {} +

	dh_installdocs -ppython-sphinx-autodoc2-doc --doc-main-package=python-sphinx-autodoc2-doc build/sphinx/html
	dh_installdocs