Skip to content

Commit 67c484e

Browse files
authored
Docs - added composite tab to docs build script (#3709)
* Added composite category in docs build script * Added composite category to valid categories * Refactor category validation to use consistent VALID_CATEGORIES constant * Revert "Refactor category validation to use consistent VALID_CATEGORIES constant" This reverts commit 342324e.
1 parent 7ba8152 commit 67c484e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

scripts/docs/buildDocsCommon.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const fs = require('fs');
77

88
const COMPONENTS_DOCS_DIR = './docs/components';
99
const SERVICES_DOCS_DIR = './docs/services';
10+
const COMPOSITE_DOCS_DIR = './docs/composite';
1011
const FOUNDATION_DOCS_DIR = './docs/foundation';
1112

1213
const VALID_COMPONENTS_CATEGORIES = [
@@ -27,7 +28,8 @@ const VALID_COMPONENTS_CATEGORIES = [
2728
'infra',
2829
// non components categories
2930
'services',
30-
'dev' // development category for components we don't want to render in our docs (used in test.api.json)
31+
'dev', // development category for components we don't want to render in our docs (used in test.api.json),
32+
'composite'
3133
];
3234

3335
function buildDocs(apiFolders, componentsPreProcess) {
@@ -95,6 +97,10 @@ function processComponents(components) {
9597

9698
let dirPath;
9799
switch (component.category) {
100+
case 'composite': {
101+
dirPath = `${COMPOSITE_DOCS_DIR}`;
102+
break;
103+
}
98104
case 'services': {
99105
dirPath = `${SERVICES_DOCS_DIR}`;
100106
break;

0 commit comments

Comments
 (0)