Skip to content

Commit

Permalink
fix(docs-utils): link computation missing for components
Browse files Browse the repository at this point in the history
  • Loading branch information
griest024 committed Jan 9, 2025
1 parent 0db48b5 commit 4ed4b26
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libs/docs-utils/src/kind/helpers.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { DAFF_DOCS_DESIGN_PATH } from '../path';
import { DaffDocKind } from './enum';
import { DAFF_DOC_KIND_PATH_SEGMENT_MAP } from './path-segment-map';

Expand Down Expand Up @@ -38,6 +39,9 @@ export const daffDocsGetLinkUrl = (path: string): string => {
case DaffDocKind.API:
return `/docs/${DAFF_DOC_KIND_PATH_SEGMENT_MAP[kind]}/${matchPath}`;

case DaffDocKind.COMPONENT:
return `/docs/${DAFF_DOCS_DESIGN_PATH}/${DAFF_DOC_KIND_PATH_SEGMENT_MAP[kind]}/${matchPath}`;

case DaffDocKind.PACKAGE:
return `/docs/packages/${matchPath}`;

Expand Down

0 comments on commit 4ed4b26

Please sign in to comment.