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
fix: improve path segment extraction for multi-instance docs
Refactors the path extraction logic in both index.ts and sidebars/index.ts
to use segment-by-segment matching instead of string splitting. This fixes
edge cases where docPath appears multiple times in outputDir or when paths
have inconsistent leading/trailing slashes.
Changes:
- Normalize paths by removing leading ./ and leading/trailing slashes
- Match docPath segments within outputDir segments sequentially
- Clean up double slashes in the resulting infoBasePath
Fixes#1305
0 commit comments