Skip to content

Commit

Permalink
MNT fix filtering of examples file to run by sphinx (scikit-learn#15680)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmarmo authored and adrinjalali committed Nov 27, 2019
1 parent 2688ba2 commit b0d1660
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build_tools/circle/build_doc.sh
Expand Up @@ -79,7 +79,7 @@ get_build_type() {
auto_example_files="$(echo "$img_fig_lines" | grep auto_examples | awk -F "/" '{print $NF}')"

# remove "sphx_glr_" from path and accept replace _(\d\d\d|thumb).png with .py
scripts_names="$(echo "$auto_example_files" | sed 's/sphx_glr_//' | sed -e 's/_([[:digit:]][[:digit:]][[:digit:]]|thumb).png/.py/')"
scripts_names="$(echo "$auto_example_files" | sed 's/sphx_glr_//' | sed -E 's/_([[:digit:]][[:digit:]][[:digit:]]|thumb).png/.py/')"

# get unique values
examples_in_rst="$(echo "$scripts_names" | uniq )"
Expand Down

0 comments on commit b0d1660

Please sign in to comment.