We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36786dc commit a40f650Copy full SHA for a40f650
2 files changed
scripts.py
@@ -141,7 +141,7 @@ def generate_docusaurus():
141
content = f.read_text(encoding="utf-8")
142
safe_content = clean_mdx_content(content)
143
rel_path = f.relative_to(input)
144
- dest_path = out / rel_path.with_suffix(".md")
+ dest_path = out / rel_path.with_suffix("") / "index.md"
145
dest_path.parent.mkdir(parents=True, exist_ok=True)
146
147
dest_path.write_text(safe_content, encoding="utf-8")
templates/docusaurus/module.html.jinja2
@@ -17,7 +17,7 @@
17
{% if module.submodules %}
18
## Submodules
19
{% for submodule in module.submodules if is_public(submodule) | trim %}
20
-- [{{ submodule.name }}](./{{ submodule.name }})
+- [{{ submodule.name }}]({{ module.name }}/{{ submodule.name }})
21
{% endfor %}
22
{% endif %}
23
{% endblock %}
0 commit comments