File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -3,23 +3,25 @@ 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=. --preprocessors=nbconvert.preprocessors.ExtractOutputPreprocessor -v
7+
68build : envcheck execute convert
79buildall : envcheck executeall convertall
810
911envcheck :
1012 python -c " import pkg_resources; pkg_resources.require(open('requirements.txt', mode='r')); print('Your environment is all set!')"
1113
1214execute :
13- nbcollection execute --timeout=600 --flatten --build-path=. -v ${MODIFIED}
15+ nbcollection execute --timeout=600 ${FLAGS} ${MODIFIED}
1416
1517convert :
16- nbcollection convert --flatten --build-path=. -v -- make-index --index-template=templates/index.tpl ${MODIFIED}
18+ nbcollection convert --make-index --index-template=templates/index.tpl ${FLAGS} ${MODIFIED}
1719
1820executeall :
19- nbcollection execute --timeout=600 --flatten --build-path=. -v tutorials
21+ nbcollection execute --timeout=600 ${FLAGS} tutorials
2022
2123convertall :
22- nbcollection convert --flatten --build-path=. -v -- make-index --index-template=templates/index.tpl tutorials
24+ nbcollection convert --make-index --index-template=templates/index.tpl ${FLAGS} tutorials
2325
2426clean :
2527 rm -rf _build
You can’t perform that action at this time.
0 commit comments