-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
45 lines (35 loc) · 1.19 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
# Makefile for Sphinx documentation
#
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = poetry run sphinx-build
PAPER =
BUILDDIR = _build
# Internal variables.
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
.PHONY: help clean html dirhtml singlehtml livehtml
clean:
-rm -rf $(BUILDDIR)/*
rm-crud:
@find . -name .#* -delete
@find . -name ._* -delete
html: rm-crud
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
@echo
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
livehtml: html
livereload $(BUILDDIR)/html -p 33234
dirhtml: rm-crud
$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
@echo
@echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
singlehtml: rm-crud
$(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
@echo
@echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."
deploy: clean html
cp googlebe81353f5272462b.html $(BUILDDIR)/html/googlebe81353f5272462b.html
cp CNAME $(BUILDDIR)/html/CNAME
cp README_build.md $(BUILDDIR)/html/README.md
git fetch origin
poetry run ghp-import -n -p -r origin -b master $(BUILDDIR)/html