summaryrefslogtreecommitdiffstats
path: root/theme/Makefile
blob: 1480ec0d547339697f60e01e67d251c0b5f80579 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
VERSION=`python setup.py --version`

default:
	@echo "Specify one of: serve, publish_docs, publish_package"

serve:
	env/bin/mkdocs serve -a localhost:8000

test:
	env MKDOCS_BINARY=env/bin/mkdocs npm -C tests test

test-debug:
	env MKDOCS_BINARY=env/bin/mkdocs npm -C tests run test-debug

publish_docs:
	env/bin/mkdocs gh-deploy

publish_package:
	@echo Build python distribution
	python setup.py sdist bdist_wheel
	@echo "Publish to PyPI at https://pypi.python.org/pypi/mkdocs-windmill"
	@echo "Version in setup.py is $(VERSION)"
	@echo "Git tag is `git describe --tags`"
	@echo "Run this manually: python3 -m twine upload dist/mkdocs-windmill-$(VERSION).tar.gz dist/mkdocs_windmill-$(VERSION)-py2-none-any.whl"

.PHONY: serve publish_docs publish_package