feat: support .mdx files in page resolver and DocTree scanner #43
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Some repos (e.g.
znzcybercity/docs_znzcybercity) use.mdxfiles alongside.md. The current page resolver and DocTree scanner only look for.mdextensions, causing:Warning: Page 'main/main_intro' not found in collection(file exists asmain_intro.mdx)Failed to export 'cybercity': IO error: No such file or directoryExpected behavior
The page resolver should find
.mdxfiles when.mdis not present. DocTree scanning should include.mdxfiles as valid markdown pages.Files to investigate
src/doctree/core.rs— collection scanning / page discoverysrc/book/resolver.rs— page path resolutionsrc/doctree/utils.rs— file extension checksAffected repo
collections/cybercity/main/main_intro.mdx,presentation.mdx)