Skip to content

Commit 435a6a4

Browse files
authored
all subdir in docs will have ipynb files, not only 'pratices'. (#4106) (#4107)
as the script will remove the ipynb files after converting, so the `Edit On Github` function will be misled.
1 parent fce7fc3 commit 435a6a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ci_scripts/hooks/pre-doc-compile.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ done
2929

3030
## 2 convert all ipynb files to markdown, and delete the ipynb files.
3131
# ../practices/**/*.ipynb
32-
for i in ${SCRIPT_DIR}/../../docs/practices/**/*.ipynb ; do
32+
for i in $(find ${SCRIPT_DIR}/../../docs/ -name '*.ipynb' -type f ) ; do
3333
echo "convert $i to markdown and delete ipynb"
3434
jupyter nbconvert --to markdown "$i"
3535
rm "$i"

0 commit comments

Comments
 (0)