-
Notifications
You must be signed in to change notification settings - Fork 20
/
Makefile
36 lines (25 loc) · 875 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
28
29
30
31
32
33
34
35
36
# This makes the documentation and readme for skimpy
.PHONY: all clean site publish
all: README.md site
# Build the readme
README.md: docs/index.ipynb
poetry run jupyter nbconvert --to markdown --execute docs/index.ipynb \
&& mv docs/index.md README.md \
&& poetry run python clean_readme.py \
&& poetry run nbstripout docs/index.ipynb
# Build the github pages site
site:
poetry run quartodoc build --config docs/_quarto.yml
cd docs; poetry run quarto render --execute
rm docs/.gitignore
poetry run nbstripout docs/*.ipynb
poetry run pre-commit run --all-files
clean:
rm README.md
publish:
poetry run quartodoc build --config docs/_quarto.yml
cd docs;poetry run quarto render --execute
cd docs;poetry run quarto publish gh-pages --no-render
rm docs/.gitignore
poetry run nbstripout docs/*.ipynb
poetry run pre-commit run --all-files