-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.makim.yaml
31 lines (28 loc) · 988 Bytes
/
.makim.yaml
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
version: 1.0
groups:
pages:
targets:
pre-build:
help: pre-build step
shell: bash
run: |
# not used yet
exit 0
mkdir -p build
# Directory to search for .ipynb files
export SEARCH_DIR="pages/blog"
# Find all .ipynb files, excluding .ipynb_checkpoints,
# and convert them to Markdown named 'index.md'
find "$SEARCH_DIR" -path "*/.ipynb_checkpoints/*" -prune -o -name \
"*.ipynb" -exec sh -c \
'jupyter nbconvert --to markdown --template=theme/custom-markdown.tpl --output-dir "$(dirname "$0")" --output "index" "$0"' {} \;
build:
help: build the static page
dependencies:
- target: pages.pre-build
run: mkdocs build --verbose --clean
preview:
help: preview the web page dynamically
dependencies:
- target: pages.pre-build
run: mkdocs serve --watch pages --watch theme