Skip to content

Commit 9ef3955

Browse files
committed
only call for convert
1 parent 9fd9759 commit 9ef3955

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ 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=. --preprocessors=nbconvert.preprocessors.ExtractOutputPreprocessor -v
6+
FLAGS = --flatten --build-path=. -v
7+
CONVERTFLAGS = --make-index --preprocessors=nbconvert.preprocessors.ExtractOutputPreprocessor --index-template=templates/index.tpl
78

89
build: envcheck execute convert
910
buildall: envcheck executeall convertall
@@ -15,13 +16,13 @@ execute:
1516
nbcollection execute --timeout=600 ${FLAGS} ${MODIFIED}
1617

1718
convert:
18-
nbcollection convert --make-index --index-template=templates/index.tpl ${FLAGS} ${MODIFIED}
19+
nbcollection convert ${CONVERTFLAGS} ${FLAGS} ${MODIFIED}
1920

2021
executeall:
2122
nbcollection execute --timeout=600 ${FLAGS} tutorials
2223

2324
convertall:
24-
nbcollection convert --make-index --index-template=templates/index.tpl ${FLAGS} tutorials
25+
nbcollection convert ${CONVERTFLAGS} ${FLAGS} tutorials
2526

2627
clean:
2728
rm -rf _build

0 commit comments

Comments
 (0)