README.html: README.md readable.css
	pandoc $< --standalone --from=markdown+smart --to=html --css readable.css --output=$@

docs: explorationViewer/*
	PYTHONPATH=. pdoc --output-dir docs explorationViewer
	chmod -R 0755 docs

.PHONY: check

check:
	mypy --disallow-untyped-defs --disallow-untyped-calls explorationViewer

.PHONY: test

test:
	pytest --doctest-modules -v explorationViewer

.PHONY: build

build: explorationViewer/* README.html docs
	python -m build
