File tree 1 file changed +7
-4
lines changed
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -3,23 +3,26 @@ default: build
3
3
TUTORIALS_MAIN_BRANCH ?= main
4
4
MODIFIED := $(shell python .github/get_modified_tutorials.py --main-branch $(TUTORIALS_MAIN_BRANCH ) )
5
5
6
+ FLAGS = --flatten --build-path=. -v
7
+ CONVERTFLAGS = --make-index --preprocessors=nbconvert.preprocessors.ExtractOutputPreprocessor --index-template=templates/index.tpl
8
+
6
9
build : envcheck execute convert
7
10
buildall : envcheck executeall convertall
8
11
9
12
envcheck :
10
13
python -c " import pkg_resources; pkg_resources.require(open('requirements.txt', mode='r')); print('Your environment is all set!')"
11
14
12
15
execute :
13
- nbcollection execute --timeout=600 --flatten --build-path=. -v ${MODIFIED}
16
+ nbcollection execute --timeout=600 ${FLAGS} ${MODIFIED}
14
17
15
18
convert :
16
- nbcollection convert --flatten --build-path=. -v --make-index --index-template=templates/index.tpl ${MODIFIED}
19
+ nbcollection convert ${CONVERTFLAGS} ${FLAGS} ${MODIFIED}
17
20
18
21
executeall :
19
- nbcollection execute --timeout=600 --flatten --build-path=. -v tutorials
22
+ nbcollection execute --timeout=600 ${FLAGS} tutorials
20
23
21
24
convertall :
22
- nbcollection convert --flatten --build-path=. -v --make-index --index-template=templates/index.tpl tutorials
25
+ nbcollection convert ${CONVERTFLAGS} ${FLAGS} tutorials
23
26
24
27
clean :
25
28
rm -rf _build
You can’t perform that action at this time.
0 commit comments