-
Notifications
You must be signed in to change notification settings - Fork 64
/
Makefile
41 lines (30 loc) · 1.23 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
# Minimal makefile for Sphinx documentation
#
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
SOURCEDIR = source
BUILDDIR = _build
# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
.PHONY: help Makefile serve release
build:
docker run --rm -it --name xuperdocs -p 8000:8000 -v `pwd`:`pwd` -w `pwd` xuperdocs make html
serve:
docker run --rm -it --name xuperdocs -p 8000:8000 -v `pwd`/source:/web xuperdocs
lint:
docker run --rm -it --name xuperdocs -p 8000:8000 -v `pwd`:/web xuperdocs doc8 --ignore D001 --ignore D000 --ignore D002 --ignore D004 --ignore D003 source
build-image:
docker build -t xuperdocs .
release :
docker run --rm --name xuperdocs-release -u `id -u`:`id -g` -v `pwd`:`pwd` -w `pwd` xuperdocs sphinx-versioning build -r master source source/_build/html
stop:
docker stop xuperdocs
clean:
rm -rf _build
rm -rf source/_build
# 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)