diff --git a/dev/update-examples.sh b/dev/update-examples.sh index 83dff474c855..c802e21503b7 100755 --- a/dev/update-examples.sh +++ b/dev/update-examples.sh @@ -22,9 +22,14 @@ cd examples/ for d in $(printf '%s\n' */ | sort -V); do example=${d%/} # For each example, copy the README into the source of the Example docs - [[ $example = doc ]] || cp $example/README.md $ROOT/examples/doc/source/$example.md 2>&1 >/dev/null + [[ $example != doc ]] && cp $example/README.md $ROOT/examples/doc/source/$example.md 2>&1 >/dev/null + # For each example, copy all images of the _static folder into the examples + # docs static folder + [[ $example != doc ]] && [ -d "$example/_static" ] && { + cp $example/_static/**.{jpg,png,jpeg} $ROOT/examples/doc/source/_static/ 2>/dev/null || true + } # For each example, insert the name of the example into the index file - [[ $example = doc ]] || (echo $INSERT_LINE; echo a; echo $example; echo .; echo wq) | ed $INDEX 2>&1 >/dev/null + [[ $example != doc ]] && (echo $INSERT_LINE; echo a; echo $example; echo .; echo wq) | ed $INDEX 2>&1 >/dev/null done echo "\`\`\`" >> $INDEX diff --git a/examples/doc/source/_static/.gitignore b/examples/doc/source/_static/.gitignore new file mode 100644 index 000000000000..c2412a5912cc --- /dev/null +++ b/examples/doc/source/_static/.gitignore @@ -0,0 +1,5 @@ +* +!custom.css +!favicon.ico +!flower-logo.png +!tmux_jtop_view.gif diff --git a/examples/doc/source/_static/diagram.png b/examples/doc/source/_static/diagram.png deleted file mode 100644 index 66d8855c859f..000000000000 Binary files a/examples/doc/source/_static/diagram.png and /dev/null differ