File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -3,23 +3,26 @@ default: build
33TUTORIALS_MAIN_BRANCH ?= main
44MODIFIED := $(shell python .github/get_modified_tutorials.py --main-branch $(TUTORIALS_MAIN_BRANCH ) )
55
6+ FLAGS = --flatten --build-path=. -v
7+ CONVERTFLAGS = --make-index --preprocessors=nbconvert.preprocessors.ExtractOutputPreprocessor --index-template=templates/index.tpl
8+
69build : envcheck execute convert
710buildall : envcheck executeall convertall
811
912envcheck :
1013 python -c " import pkg_resources; pkg_resources.require(open('requirements.txt', mode='r')); print('Your environment is all set!')"
1114
1215execute :
13- nbcollection execute --timeout=600 --flatten --build-path=. -v ${MODIFIED}
16+ nbcollection execute --timeout=600 ${FLAGS} ${MODIFIED}
1417
1518convert :
16- nbcollection convert --flatten --build-path=. -v --make-index --index-template=templates/index.tpl ${MODIFIED}
19+ nbcollection convert ${CONVERTFLAGS} ${FLAGS} ${MODIFIED}
1720
1821executeall :
19- nbcollection execute --timeout=600 --flatten --build-path=. -v tutorials
22+ nbcollection execute --timeout=600 ${FLAGS} tutorials
2023
2124convertall :
22- nbcollection convert --flatten --build-path=. -v --make-index --index-template=templates/index.tpl tutorials
25+ nbcollection convert ${CONVERTFLAGS} ${FLAGS} tutorials
2326
2427clean :
2528 rm -rf _build
You can’t perform that action at this time.
0 commit comments