Skip to content
Merged
Show file tree
Hide file tree
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
14 changes: 14 additions & 0 deletions repo-scripts/api-documenter/src/toc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,20 @@ function generateTocRecursively(
section: []
};

for (const member of apiItem.members) {
// only classes and interfaces have dedicated pages
if (
member.kind === ApiItemKind.Class ||
member.kind === ApiItemKind.Interface
) {
const fileName = getFilenameForApiItem(member, addFileNameSuffix);
entryPointToc.section!.push({
title: member.displayName,
path: `${g3Path}/${fileName}`
});
}
}

toc.push(entryPointToc);
} else {
// travel the api tree to find the next entry point
Expand Down
Loading