From 7a7c0fbb27ada3709bed36a4cc30d497035dd13e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=20Wei=20=28=E4=BB=BB=E5=8D=AB=29?= Date: Wed, 17 Nov 2021 17:38:26 +0800 Subject: [PATCH] all subdir in docs will have ipynb files, not only 'pratices'. (#4106) as the script will remove the ipynb files after converting, so the `Edit On Github` function will be misled. --- ci_scripts/hooks/pre-doc-compile.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci_scripts/hooks/pre-doc-compile.sh b/ci_scripts/hooks/pre-doc-compile.sh index de1855f00c3..1d2b0b047bb 100755 --- a/ci_scripts/hooks/pre-doc-compile.sh +++ b/ci_scripts/hooks/pre-doc-compile.sh @@ -29,7 +29,7 @@ done ## 2 convert all ipynb files to markdown, and delete the ipynb files. # ../practices/**/*.ipynb -for i in ${SCRIPT_DIR}/../../docs/practices/**/*.ipynb ; do +for i in $(find ${SCRIPT_DIR}/../../docs/ -name '*.ipynb' -type f ) ; do echo "convert $i to markdown and delete ipynb" jupyter nbconvert --to markdown "$i" rm "$i"