Skip to content

Commit 737ee15

Browse files
fixes for test failures patch.py
1 parent cd10ffc commit 737ee15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/patch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def patch(article_path: str, results: dict, link: str):
1616
article_path_pure = PurePath(re.sub(r"^.*?content/", "", article_path))
1717
article_path_parts = list(article_path_pure.parts)
1818
if "learning-paths" in article_path_parts:
19-
content_type, sw_category, content_title = article_path_parts
19+
content_type, sw_category, content_title, *others_1 = article_path_parts
2020
article_path = PurePath(article_path, "_index.md")
2121
elif "install-guides" in article_path_parts:
2222
# In case the install guide is in a subdirectory

0 commit comments

Comments
 (0)