forked from F5Networks/f5-openstack-lbaasv2-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
28 lines (23 loc) · 849 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
27
28
# Makefile for building and testing documentation in a docker container
#
.PHONY: help
help:
@echo " docker-preview to build live 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 one-time HTML build in a docker container"
# Build live preview docs in a docker container
.PHONY: docker-preview
docker-preview:
make -C docs clean
DOCKER_RUN_ARGS="-p 0.0.0.0:8000:8000" ./docs/scripts/docker-docs.sh \
make -C docs preview
# run quality tests in a docker container
.PHONY: docker-test
docker-test:
make -C docs clean
./docs/scripts/docker-docs.sh ./docs/scripts/test-docs.sh
# build HTML docs in a docker container
.PHONY: docker-html
docker-html:
make -C docs clean
./docs/scripts/docker-docs.sh make -C docs/ html