Skip to content

Commit

Permalink
prepare changes for the blog post
Browse files Browse the repository at this point in the history
  • Loading branch information
xmnlab committed Apr 3, 2024
1 parent 0912818 commit abd3fc6
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .makim.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,25 @@ groups:
docs:
targets:
pre-build:
help: pre-build step
shell: bash
run: |
mkdir -p build
# Directory to search for .ipynb files
export SEARCH_DIR="docs/tutorials"
# 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 --output-dir "$(dirname "$0")" "$0"' {} \;
# remove console colors from md files
find "$SEARCH_DIR" -name \
"*.md" -exec sh -c \
'cat "$0" | python docs/scripts/clean-output.py > "$(dirname "$0")/temp_index.md" && mv "$(dirname "$0")/temp_index.md" "$0"' {} \;
build:
help: Build documentation
run: |
Expand Down
2 changes: 1 addition & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ vulture = ">=2.7"
compose-go = ">=2.20.2"
jupyterlab = ">=4.1.5"
nox = ">=2024.3.2"
nbconvert = ">=7.16.3"
pymdown-extensions = ">=10.7.1"

[build-system]
requires = ["poetry-core>=1.0.0", "poetry>=1.5.1"]
Expand Down

0 comments on commit abd3fc6

Please sign in to comment.