diff --git a/Makefile b/Makefile index e9b05dd5..068179fd 100644 --- a/Makefile +++ b/Makefile @@ -139,3 +139,12 @@ rebuild: clean build-from-cwd .PHONY: new-alert new-alert: ## Create an example alert and working alert unit test python tests/alert_templater.py + +.PHONY: run-docs +run-docs: stop-docs ## Start container to serve up documentation for development + docker-compose -f docker/compose/dev-docs.yml up -d + @echo "Visit http://localhost:8000 - Feel free to update source code and then refresh webpage!" + +.PHONY: stop-docs +stop-docs: ## Stop the docs development container if running + -docker-compose -f docker/compose/dev-docs.yml stop diff --git a/docker/compose/dev-docs.yml b/docker/compose/dev-docs.yml new file mode 100644 index 00000000..09942e2d --- /dev/null +++ b/docker/compose/dev-docs.yml @@ -0,0 +1,11 @@ +--- +version: '3.7' +services: + docs: + image: dldl/sphinx-server + networks: + - default + volumes: + - ../../docs/source:/web + ports: + - 8000:8000