Add make docs
@@ -2,6 +2,7 @@ INOTIFY_CALL ?= inotifywait -e modify -r ./powerfulseal ./tests
TOX_CALL ?= tox -r
METRICS_SERVER_URL ?= http://metrics-server.kube-system.svc.kubernetes.cluster/
CLOUD_OPTION ?= --openstack
+SCHEMA_FILE=powerfulseal/policy/ps-schema.json
name ?= powerfulseal
version ?= `python setup.py --version`
@@ -138,5 +139,10 @@ minikube-interactive:
--ssh-path-to-private-key `minikube ssh-key` \
--override-ssh-host `minikube ip`
+docs: $(SCHEMA_FILE)
+ pip install json-schema-for-humans
+ mkdir -p docs-schema
+ generate-schema-doc $(SCHEMA_FILE) docs-schema/index.html
+
.PHONY: test watch upload clean build tag push version autonomous autonomous-headless interactive validate label minikube-autonomous minikube-label minikube-interactive
