Skip to content

Commit 02423d4

Browse files
authored
CI Fix check rendered doc _changed.html with template files (scikit-learn#29948)
1 parent 7ab1b64 commit 02423d4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build_tools/circle/build_doc.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,8 @@ set +o pipefail
198198

199199
affected_doc_paths() {
200200
files=$(git diff --name-only origin/main...$CIRCLE_SHA1)
201-
echo "$files" | grep ^doc/.*\.rst | sed 's/^doc\/\(.*\)\.rst$/\1.html/'
201+
# use sed to replace files ending by .rst or .rst.template by .html
202+
echo "$files" | grep ^doc/.*\.rst | sed 's/^doc\/\(.*\)\.rst$/\1.html/; s/^doc\/\(.*\)\.rst\.template$/\1.html/'
202203
echo "$files" | grep ^examples/.*.py | sed 's/^\(.*\)\.py$/auto_\1.html/'
203204
sklearn_files=$(echo "$files" | grep '^sklearn/')
204205
if [ -n "$sklearn_files" ]

0 commit comments

Comments
 (0)