Skip to content

Commit 32968ec

Browse files
committed
add suffix to namespace files
1 parent 3b18da1 commit 32968ec

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

repo-scripts/api-documenter/src/cli/BaseAction.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export abstract class BaseAction extends CommandLineAction {
7676
`Add suffix to interface and class names in the file path.` +
7777
`For example, packageA.myinterface_i.md for MyInterface interface, ` +
7878
`Add packageA.myclass_c.md for MyClass class.` +
79-
`This is to avoid name conflict in case packageA also has, for example, a namespace with the same name in lowercase.` +
79+
`This is to avoid name conflict in case packageA also has, for example, an entry point with the same name in lowercase.` +
8080
`This option is specifically designed for the Admin SDK where such case occurs.`
8181
});
8282
}

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

+3
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ export function getFilenameForApiItem(
104104
break;
105105
case ApiItemKind.Namespace:
106106
baseName += '.' + qualifiedName;
107+
if (addFileNameSuffix) {
108+
baseName += '_n';
109+
}
107110
break;
108111
// append the file name with the first letter of the ApiItemKind to avoid name collision.
109112
// Sometimes we could have a class/interface and an entry point that have the same name.

0 commit comments

Comments
 (0)