diff options
author | growupboron <shankhoghosh123@gmail.com> | 2020-09-11 17:18:57 +0530 |
---|---|---|
committer | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2020-09-11 12:11:56 +0000 |
commit | 4aad369c9728061c97b3de792286e743ee884b09 (patch) | |
tree | 14bddddeab334e3fdbdcf29446a87aa11cf6cd97 /theme/Makefile | |
parent | 619a7e48085be1538c3b01eb93dcb9dc95bf0436 (diff) |
Simplified doc-site generationjellyfish_9.99.4jellyfish/9.99.49.99.4
Updated theme to windmill Using Mkdocs static site generator Deployed on readthedocs
Signed-off-by: growupboron <shankhoghosh123@gmail.com>
Change-Id: If62eaaea1855c91b64f687900f54eba6bc1caee8
Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/documentation/+/25236
Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
Tested-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
Diffstat (limited to 'theme/Makefile')
-rw-r--r-- | theme/Makefile | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/theme/Makefile b/theme/Makefile new file mode 100644 index 0000000..1480ec0 --- /dev/null +++ b/theme/Makefile @@ -0,0 +1,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 |