-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
55 lines (41 loc) · 1.31 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Minimal makefile for Sphinx documentation
#
RED=\033[0;31m
BLUE=\033[0;34m
LBLUE=\033[1;34m
LGRAY=\033[0;37m
NC=\033[0m
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
SPHINXPROJ = openstack-darter
SOURCEDIR = docs
BUILDDIR = docs/_build
# Put it first so that "make" without argument is like "make help".
help:
@printf "\n"
@printf "${LGRAY}Darter (openstack-darter) Help${NC}\n"
@printf "\n"
@printf " ${LBLUE}dochelp${NC} to show help for documentation\n"
@printf " ${LBLUE}servedoc${NC} to create simple server for show documentations\n"
@printf " ${LBLUE}worker${NC} to starting the worker for wait jobs for execute\n"
@printf " ${LBLUE}rqdash${NC} to starting the dashboard for Redis Queue (RQ)\n"
@printf "\n"
dochelp:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
servedoc:
cd docs/_build/html && python3 -m http.server 9000
gendoc:
make copydoc
make html
copydoc:
sphinx-apidoc -f -o docs src
worker:
rq worker -c settings -v
rqdash:
rq-dashboard
.PHONY: help Makefile
# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)