-
-
Notifications
You must be signed in to change notification settings - Fork 544
/
Makefile
27 lines (21 loc) · 998 Bytes
/
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
COMMIT_HASH := $(shell eval git rev-parse HEAD)
format:
pre-commit run --all-files
execute-notebooks:
jupyter nbconvert --execute --to notebook --inplace docs/introduction/*/*.ipynb --ExecutePreprocessor.timeout=-1
jupyter nbconvert --execute --to notebook --inplace docs/recipes/*.ipynb --ExecutePreprocessor.timeout=-1
jupyter nbconvert --execute --to notebook --inplace docs/examples/*.ipynb --ExecutePreprocessor.timeout=-1
jupyter nbconvert --execute --to notebook --inplace docs/examples/*/*.ipynb --ExecutePreprocessor.timeout=-1
render-notebooks:
jupyter nbconvert --to markdown docs/introduction/*/*.ipynb
jupyter nbconvert --to markdown docs/recipes/*.ipynb
jupyter nbconvert --to markdown docs/examples/*.ipynb
jupyter nbconvert --to markdown docs/examples/*/*.ipynb
doc: render-notebooks
(cd benchmarks && python render.py)
python docs/parse river --out docs --verbose
mkdocs build
livedoc: doc
mkdocs serve --dirtyreload
rebase:
git fetch && git rebase origin/main