aboutsummaryrefslogtreecommitdiffstats
path: root/theme/Makefile
diff options
context:
space:
mode:
authorShankho Boron Ghosh <shankhoghosh123@gmail.com>2020-11-06 20:26:15 +0530
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2020-11-10 15:09:00 +0000
commitb0647613fa820df9487b32009267a3b20b65b478 (patch)
treeaf653cf62ecd274c45ab0f27dd728caa1ddf2b01 /theme/Makefile
parent57816f8bf1281e967d89ce0854060fb52ba42c81 (diff)
Added Guppy Branchguppy
Meta redirects to http://old-docs.automotivelinux.org/docs/en/guppy/getting_started/ Bug-AGL: [SPEC-3633] Signed-off-by: Shankho Boron Ghosh <shankhoghosh123@gmail.com> Change-Id: Idd21d5e00ee57f860857ef63e37d12a0930aa38e Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/documentation/+/25536 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/Makefile26
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