From 9575aef4461b6ba50002eee95a6616c60fb39b71 Mon Sep 17 00:00:00 2001 From: Hiranya Jayathilaka Date: Wed, 5 May 2021 13:56:01 -0700 Subject: [PATCH] Generate API docs for namespace members --- .../src/documenters/MarkdownDocumenter.ts | 4 +++- .../src/documenters/MarkdownDocumenterHelpers.ts | 11 ----------- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/repo-scripts/api-documenter/src/documenters/MarkdownDocumenter.ts b/repo-scripts/api-documenter/src/documenters/MarkdownDocumenter.ts index 3163b88d536..313ce12e2fd 100644 --- a/repo-scripts/api-documenter/src/documenters/MarkdownDocumenter.ts +++ b/repo-scripts/api-documenter/src/documenters/MarkdownDocumenter.ts @@ -329,7 +329,9 @@ export class MarkdownDocumenter { output.push(...createThrowsSection(apiItem, configuration)); break; case ApiItemKind.Namespace: - // this._writeEntryPointOrNamespace(output, apiItem as ApiNamespace); + output.push( + ...this._createEntryPointOrNamespace(apiItem as ApiNamespace) + ); break; case ApiItemKind.Model: output.push(...this._createModelTable(apiItem as ApiModel)); diff --git a/repo-scripts/api-documenter/src/documenters/MarkdownDocumenterHelpers.ts b/repo-scripts/api-documenter/src/documenters/MarkdownDocumenterHelpers.ts index 590393aa895..2287e329353 100644 --- a/repo-scripts/api-documenter/src/documenters/MarkdownDocumenterHelpers.ts +++ b/repo-scripts/api-documenter/src/documenters/MarkdownDocumenterHelpers.ts @@ -108,20 +108,9 @@ export function getFilenameForApiItem( baseName += '_n'; } break; - // append the file name with the first letter of the ApiItemKind to avoid name collision. - // Sometimes we could have a class/interface and an entry point that have the same name. - // This happened in the admin SDK where the App interface and the app namespace write to the same file. case ApiItemKind.Class: - baseName += '.' + qualifiedName; - if (addFileNameSuffix) { - baseName += '_c'; - } - break; case ApiItemKind.Interface: baseName += '.' + qualifiedName; - if (addFileNameSuffix) { - baseName += '_i'; - } break; } }