Skip to content

Commit

Permalink
Update file renaming logic for ComponentRenderer
Browse files Browse the repository at this point in the history
  • Loading branch information
milldr committed Jul 25, 2024
1 parent 749a2d1 commit 824195c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/docs-collator/ComponentRenderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,13 @@ def __render_doc(self, component, file):
label = submodule_name
title = submodule_name

# renaming final file <module-name>/<module-name>.md
# renaming final file <module-name>/<module-name>.mdx
result_file = os.path.join(
os.path.dirname(result_file), f"{submodule_name}.md"
os.path.dirname(result_file), f"{submodule_name}.mdx"
)
else:
# renaming final file <module-name>/README.mdx
result_file = os.path.join(os.path.dirname(result_file), f"{name}.mdx")

io.create_dirs(os.path.dirname(result_file))

Expand Down

0 comments on commit 824195c

Please sign in to comment.