Skip to content

Commit c09fecb

Browse files
committed
When an */index.html file changes, also change */.
1 parent 53e5de7 commit c09fecb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

build_docs.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,10 @@ def changed_files(left, right):
199199

200200
def traverse(dircmp_result):
201201
base = Path(dircmp_result.left).relative_to(left)
202-
changed.extend(str(base / file) for file in dircmp_result.diff_files)
202+
for file in dircmp_result.diff_files:
203+
changed.append(str(base / file))
204+
if file == "index.html":
205+
changed.append(str(base) + "/")
203206
for dircomp in dircmp_result.subdirs.values():
204207
traverse(dircomp)
205208

0 commit comments

Comments
 (0)