Skip to content

Commit

Permalink
prefix child API example slug
Browse files Browse the repository at this point in the history
  • Loading branch information
griest024 committed Jan 14, 2025
1 parent 012fe4f commit ab61f9e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions tools/dgeni/src/processors/add-api-symbols-to-package.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export class AddApiSymbolsToPackagesProcessor implements FilterableProcessor {
...symbol.tableOfContents.map((entry) => ({
...entry,
lvl: entry.lvl + 1,
slug: entry.slug === 'examples' ? `${symbol.slug}-examples` : entry.slug,
})),
]);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ export class ExamplesProcessor implements FilterableProcessor {
{
content: 'Examples',
lvl: 2,
// TODO: add doc-specific prefix
slug: 'examples',
},
...genExamplesToc(doc.examples),
Expand Down

0 comments on commit ab61f9e

Please sign in to comment.