Skip to content
Permalink
Browse files

Add make target to run docs server for development

  • Loading branch information...
pwnbus committed Oct 16, 2019
1 parent de1706e commit d86ddbc406a7d289fba52e5a613153bff2eba32c
Showing with 20 additions and 0 deletions.
  1. +9 −0 Makefile
  2. +11 −0 docker/compose/dev-docs.yml
@@ -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
@@ -0,0 +1,11 @@
---
version: '3.7'
services:
docs:
image: dldl/sphinx-server
networks:
- default
volumes:
- ../../docs/source:/web
ports:
- 8000:8000

0 comments on commit d86ddbc

Please sign in to comment.
You can’t perform that action at this time.