#!/usr/bin/make -f
%:
	dh $@ --buildsystem=pybuild


execute_after_dh_auto_build:
	dh_doc_privacy README.md docs
ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
	pybuild --system=custom --build --build-args='cd {dir}/docs && PYTHONPATH={build_dir} LC_ALL=C.UTF-8 LANGUAGE=C.UTF-8 sphinx-build \
		-bhtml \
		-d _build/doctrees \
		-D html_theme_options.github_button=false \
		-D "mathjax_path=mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML" \
		. _build/html'
endif
