change file tree (#1859)
Co-authored-by: Chayenne <zhaochenyang@g.ucla.edu>
This commit is contained in:
@@ -12,7 +12,18 @@ BUILDDIR = _build
|
||||
help:
|
||||
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
||||
|
||||
.PHONY: help Makefile
|
||||
# New target to compile Markdown and Jupyter Notebook files
|
||||
compile:
|
||||
find $(SOURCEDIR) -name '*.ipynb' | while read nb; do \
|
||||
if [ -f "$$nb" ]; then \
|
||||
echo "Executing $$nb"; \
|
||||
jupyter nbconvert --to notebook --execute --inplace "$$nb" \
|
||||
--ExecutePreprocessor.timeout=600 \
|
||||
--ExecutePreprocessor.kernel_name=python3; \
|
||||
fi; \
|
||||
done
|
||||
|
||||
.PHONY: help Makefile compile
|
||||
|
||||
# Catch-all target: route all unknown targets to Sphinx using the new
|
||||
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
|
||||
|
||||
Reference in New Issue
Block a user