forked from F5Networks/f5-ci-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
26 lines (22 loc) · 820 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Makefile for building and testing project documentation
.PHONY: help
help:
@echo " docker-preview to build preview of docs using sphinx-autobuild in a docker container"
@echo " docker-test to build and test docs in a docker container"
@echo " docker-html to build html docs in a docker container"
# Build live preview of docs in a docker container
.PHONY: docker-preview
docker-preview:
rm -rf docs/_build
DOCKER_RUN_ARGS="-p 127.0.0.1:8000:8000" \
./scripts/docker-docs.sh make -C docs preview
# run docs quality tests in a docker container
.PHONY: docker-test
docker-test:
rm -rf docs/_build
./scripts/docker-docs.sh ./scripts/test-docs.sh
# one-time html build using a docker container
.PHONY: docker-html
docker-html:
rm -rf docs/_build
./scripts/docker-docs.sh make -C docs/ html