зеркало из https://github.com/mozilla/MozDef.git
Add make target to run docs server for development
This commit is contained in:
Родитель
de1706e1f7
Коммит
d86ddbc406
9
Makefile
9
Makefile
|
@ -139,3 +139,12 @@ rebuild: clean build-from-cwd
|
||||||
.PHONY: new-alert
|
.PHONY: new-alert
|
||||||
new-alert: ## Create an example alert and working alert unit test
|
new-alert: ## Create an example alert and working alert unit test
|
||||||
python tests/alert_templater.py
|
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
|
Загрузка…
Ссылка в новой задаче