Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions packages/core/src/engine/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,9 @@ export async function renderPages({ config, srcDir, fallbackSrcDir, outputDir, h
if (item.children) {
extractNavIndexes(item.children);
} else if (item._sourceFile) {
// _sourceFile is the original path like '/highlighting' - normalize to relative path
navDesignatedIndexFiles.add(item._sourceFile.replace(/^\//, ''));
// _sourceFile is the original path like '/highlighting/' - normalize to relative path
// and strip trailing slash to match relWithoutExt format used during comparison
navDesignatedIndexFiles.add(item._sourceFile.replace(/^\//, '').replace(/\/$/, ''));
}
}
};
Expand Down
Loading