Skip to content

Commit 675e10f

Browse files
authored
Merge pull request #530 from adrn/extract-output
Enabled ExtractOutputPreprocessor
2 parents 2708164 + 9ef3955 commit 675e10f

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Makefile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,26 @@ default: build
33
TUTORIALS_MAIN_BRANCH ?= main
44
MODIFIED := $(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+
69
build: envcheck execute convert
710
buildall: envcheck executeall convertall
811

912
envcheck:
1013
python -c "import pkg_resources; pkg_resources.require(open('requirements.txt', mode='r')); print('Your environment is all set!')"
1114

1215
execute:
13-
nbcollection execute --timeout=600 --flatten --build-path=. -v ${MODIFIED}
16+
nbcollection execute --timeout=600 ${FLAGS} ${MODIFIED}
1417

1518
convert:
16-
nbcollection convert --flatten --build-path=. -v --make-index --index-template=templates/index.tpl ${MODIFIED}
19+
nbcollection convert ${CONVERTFLAGS} ${FLAGS} ${MODIFIED}
1720

1821
executeall:
19-
nbcollection execute --timeout=600 --flatten --build-path=. -v tutorials
22+
nbcollection execute --timeout=600 ${FLAGS} tutorials
2023

2124
convertall:
22-
nbcollection convert --flatten --build-path=. -v --make-index --index-template=templates/index.tpl tutorials
25+
nbcollection convert ${CONVERTFLAGS} ${FLAGS} tutorials
2326

2427
clean:
2528
rm -rf _build

0 commit comments

Comments
 (0)