mirror of https://github.com/tiangolo/fastapi.git
🐛 Fix deploy docs previews script to handle mkdocs.yml files (#11984)
This commit is contained in:
parent
0b30cad9d2
commit
8b6d9ba789
|
|
@ -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"):
|
||||
|
|
|
|||
Loading…
Reference in New Issue