-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
59 lines (45 loc) · 1.58 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
53
54
55
56
57
58
59
# Minimal makefile for Sphinx documentation
#
# You can set these variables from the command line, and also
# from the environment for the first two.
SPHINXOPTS ?= -j auto
SPHINXBUILD ?= python3 -msphinx
SOURCEDIR = .
BUILDDIR = _build
LANG = en_US.UTF-8
SPHINXSERV ?= sphinx-autobuild
MAKE = make
default: fast
view:
xdg-open "$(BUILDDIR)/html/index.html"
serve:
$(SPHINXSERV) $(SOURCEDIR) $(BUILDDIR)/html \
--builder fasthtml --doctree-dir $(BUILDDIR)/doctrees \
--port 30500 --open-browser
commit:
git commit -m "$(shell date +'%Y-%m-%d %H:%M')"
git push
commit-skip-recentupdate:
git commit -m "[skip-recentupdate] $(shell date +'%Y-%m-%d %H:%M')"
git push
commit-skip-build:
git commit -m "[skip ci] $(shell date +'%Y-%m-%d %H:%M')"
git push
pull:
git fetch origin master
git merge origin/master
migrate-to-permnotes:
./_utils/migrate-to-permnotes
# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
.PHONY: default view help serve commit Makefile snip fast
# 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)
# Snippet builder: https://sphinx.silverrainz.me/snippet/, for shell completion.
snip: snippet
# Fast HTML builder: https://sphinx.silverrainz.me/fasthtml/
fast: Makefile
@$(SPHINXBUILD) -b $@html "$(SOURCEDIR)" "$(BUILDDIR)/html" $(SPHINXOPTS) $(O) -d "$(BUILDDIR)/doctrees"