You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(webui-press): normalize duplicate folder/filename paths as index
Treat markdown files where the filename matches the parent folder name as
index pages, avoiding redundant URL paths.
Example:
- Before: components/webui-button/webui-button.md → /webui-button/webui-button/
- After: components/webui-button/webui-button.md → /webui-button/
This enables cleaner component documentation URLs while preserving support
for additional pages (e.g., webui-button/usage.md → /webui-button/usage).
Changes:
- Add normalize_path_as_index() helper to strip duplicate filenames
- Update build_page_registry() to normalize paths before URL generation
- Add comprehensive test coverage (6 test cases)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
0 commit comments