forked from chrystalchern/mdof
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
61 lines (45 loc) · 1.56 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
60
61
SHELL = /bin/bash
SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build
SOURCEDIR = docs
BUILDDIR = _build
NOTEBOOKS = notebooks/00_Overview.ipynb \
notebooks/01_SISO_Intro.ipynb \
notebooks/02_SISO_Event.ipynb \
notebooks/03_SISO_History.ipynb \
notebooks/04_MIMO_Intro.ipynb \
notebooks/06_MIMO_History.ipynb \
../mdof_studies/PowerSpectrum.ipynb
# Put this first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
test:
pytest --nbmake $(NOTEBOOKS)
publish: test
cp -r _build/html/* site/
git add site && git commit -m'cc - rebuild site'
git subtree push --prefix site origin gh-pages
make speak
speak:
echo -ne '\007'
sleep 2
echo -ne '\007'
sleep 2
echo -ne '\007'
html: Makefile
cp ./notebooks/0[0-9]_* ./docs/examples
cp -r ./notebooks/figures/* ./docs/examples/figures
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
sed -i 's/\\bm{/\\boldsymbol{/g' $(BUILDDIR)/html/theory/srim.html
.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)
APIDOC = python3 tools/doc.py
APIDIR = docs/user/
conda:
for i in 7 8 9 10; do conda mambabuild -c local -c conda-forge etc/conda --py 3.$i; done
pypa:
sudo ./etc/pypa/docker-build
.PHONY: docs