🐛 Fix deploy docs previews script to handle mkdocs.yml files (#11984)

This commit is contained in:
Sebastián Ramírez 2024-08-09 10:52:41 -05:00 committed by GitHub
parent 0b30cad9d2
commit 8b6d9ba789
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -63,7 +63,8 @@ def main():
lang_links: dict[str, list[str]] = {}
for f in docs_files:
match = re.match(r"docs/([^/]+)/docs/(.*)", f.filename)
assert match
if not match:
continue
lang = match.group(1)
path = match.group(2)
if path.endswith("index.md"):