Skip to content

Commit 20cb5c3

Browse files
Update scripts.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent a40f650 commit 20cb5c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def generate_docusaurus():
141141
content = f.read_text(encoding="utf-8")
142142
safe_content = clean_mdx_content(content)
143143
rel_path = f.relative_to(input)
144-
dest_path = out / rel_path.with_suffix("") / "index.md"
144+
dest_path = out / rel_path.parent / rel_path.stem / "index.md"
145145
dest_path.parent.mkdir(parents=True, exist_ok=True)
146146

147147
dest_path.write_text(safe_content, encoding="utf-8")

0 commit comments

Comments
 (0)