Skip to content

Commit

Permalink
feat(dgeni): exclude design from base docsgen (#2968)
Browse files Browse the repository at this point in the history
  • Loading branch information
griest024 committed Aug 14, 2024
1 parent 995241a commit dec7dca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions tools/dgeni/src/constants/excluded-packages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
*/
export const DAFF_DGENI_EXCLUDED_PACKAGES = <const>[
'branding',
'design',
'documentation',
'docs-components',
'docs-utils',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,13 @@ export class GenerateGuideListProcessor implements Processor {
if (designDoc) {
designDoc.path = 'design';
}
const docsWithoutDesignChildren = docs.filter((d) => !d.id?.startsWith('design/'));

docs.push({
docType: 'navigation-list',
template: 'guide-list.template.json',
path: this.outputFolder + '/index.json',
outputPath: this.outputFolder + '/index.json',
data: generateNavigationTrieFromDocuments(docsWithoutDesignChildren.map(transformGuideDoc)),
data: generateNavigationTrieFromDocuments(docs.map(transformGuideDoc)),
});

return docs;
Expand Down

0 comments on commit dec7dca

Please sign in to comment.