Skip to content

Commit 2c2b72d

Browse files
authored
Special handling logic for enum docs (#565)
* Added AppMetadata type to the docgen toc * Special handling for enum docs
1 parent 9c109f7 commit 2c2b72d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

docgen/content-sources/node/toc.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,8 @@ toc:
167167
path: /docs/reference/admin/node/admin.projectManagement.AndroidAppMetadata
168168
- title: "AppMetadata"
169169
path: /docs/reference/admin/node/admin.projectManagement.AppMetadata
170+
- title: "AppPlatform"
171+
path: /docs/reference/admin/node/admin.projectManagement.AppPlatform
170172
- title: "IosApp"
171173
path: /docs/reference/admin/node/admin.projectManagement.IosApp
172174
- title: "IosAppMetadata"

docgen/generate-docs.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ function fixLinks(file) {
9696
return fs.readFile(file, 'utf8').then(data => {
9797
const flattenedLinks = data
9898
.replace(/\.\.\//g, '')
99-
.replace(/(modules|interfaces|classes)\//g, '');
99+
.replace(/(modules|interfaces|classes|enums)\//g, '');
100100
let caseFixedLinks = flattenedLinks;
101101
for (const lower in lowerToUpperLookup) {
102102
const re = new RegExp(lower, 'g');
@@ -347,7 +347,8 @@ Promise.all([
347347
return Promise.all([
348348
// moveFilesToRoot('classes'),
349349
moveFilesToRoot('modules'),
350-
moveFilesToRoot('interfaces')
350+
moveFilesToRoot('interfaces'),
351+
moveFilesToRoot('enums'),
351352
]);
352353
})
353354
// Check for files listed in TOC that are missing and warn if so.

0 commit comments

Comments
 (0)