Skip to content

Commit

Permalink
all subdir in docs will have ipynb files, not only 'pratices'. (#4106)
Browse files Browse the repository at this point in the history
as the script will remove the ipynb files after converting, so the `Edit On Github` function will be misled.
  • Loading branch information
wadefelix authored Nov 17, 2021
1 parent 640c28e commit 7a7c0fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ci_scripts/hooks/pre-doc-compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 7a7c0fb

Please sign in to comment.