Add generate-docs to Makefile

This commit is contained in:
Jakub Al-Khalili 2019-10-29 12:17:56 +01:00 committed by Paweł Prażak
parent 5382e6964d
commit 327a688674
1 changed files with 7 additions and 0 deletions

View File

@ -459,8 +459,15 @@ endif
helm-package:
@echo "+ $@"
cd chart && helm package jenkins-operator
.PHONY: helm-deploy
helm-deploy: helm-package
@echo "+ $@"
helm repo index chart/ --url https://raw.githubusercontent.com/jenkinsci/kubernetes-operator/master/chart/jenkins-operator/
cd chart/ && mv jenkins-operator-*.tgz jenkins-operator
.PHONY: generate-docs
generate-docs: ## Re-generate docs directory from the website directory
@echo "+ $@"
rm -rf docs || echo "Cannot remove docs dir, ignoring"
hugo -s website -d ../docs