#!/usr/bin/make -f

export PYBUILD_NAME=pydantic_handlebars

%:
	dh $@ --buildsystem=pybuild

execute_after_dh_auto_build:
ifeq ($(filter nodoc,$(DEB_BUILD_OPTIONS)),)
	mkdocs build -d $(CURDIR)/build/html -f $(CURDIR)/mkdocs.yml
endif

ifeq ($(filter nodoc,$(DEB_BUILD_OPTIONS)),)
execute_after_dh_installdocs:
	dh_mkdocs -T mkdocs -T libjs-underscore -T mkdocs-material
	find -type f -name "sitemap.xml.gz" -delete
endif
