We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bda6d05 commit c600576Copy full SHA for c600576
repo-scripts/api-documenter/src/toc.ts
@@ -78,15 +78,19 @@ function generateTocRecursively(
78
};
79
80
for (const member of apiItem.members) {
81
- const fileName = getFilenameForApiItem(member, addFileNameSuffix);
82
-
83
- if (fileName) {
+ // only classes and interfaces have dedicated pages
+ if (
+ member.kind === ApiItemKind.Class ||
84
+ member.kind === ApiItemKind.Interface
85
+ ) {
86
+ const fileName = getFilenameForApiItem(member, addFileNameSuffix);
87
entryPointToc.section!.push({
88
title: member.displayName,
89
path: `${g3Path}/${fileName}`
90
});
91
}
92
93
+
94
toc.push(entryPointToc);
95
} else {
96
// travel the api tree to find the next entry point
0 commit comments