Skip to content

Commit cd29426

Browse files
authored
Generate API docs for namespace members (#4869)
1 parent 5b202f8 commit cd29426

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

repo-scripts/api-documenter/src/documenters/MarkdownDocumenter.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,9 @@ export class MarkdownDocumenter {
329329
output.push(...createThrowsSection(apiItem, configuration));
330330
break;
331331
case ApiItemKind.Namespace:
332-
// this._writeEntryPointOrNamespace(output, apiItem as ApiNamespace);
332+
output.push(
333+
...this._createEntryPointOrNamespace(apiItem as ApiNamespace)
334+
);
333335
break;
334336
case ApiItemKind.Model:
335337
output.push(...this._createModelTable(apiItem as ApiModel));

repo-scripts/api-documenter/src/documenters/MarkdownDocumenterHelpers.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -108,20 +108,9 @@ export function getFilenameForApiItem(
108108
baseName += '_n';
109109
}
110110
break;
111-
// append the file name with the first letter of the ApiItemKind to avoid name collision.
112-
// Sometimes we could have a class/interface and an entry point that have the same name.
113-
// This happened in the admin SDK where the App interface and the app namespace write to the same file.
114111
case ApiItemKind.Class:
115-
baseName += '.' + qualifiedName;
116-
if (addFileNameSuffix) {
117-
baseName += '_c';
118-
}
119-
break;
120112
case ApiItemKind.Interface:
121113
baseName += '.' + qualifiedName;
122-
if (addFileNameSuffix) {
123-
baseName += '_i';
124-
}
125114
break;
126115
}
127116
}

0 commit comments

Comments
 (0)