Skip to content

Commit

Permalink
fix(docs-utils): link computation missing for components (#3410)
Browse files Browse the repository at this point in the history
  • Loading branch information
griest024 authored Jan 9, 2025
1 parent 203f7e0 commit 4f2eaca
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 4f2eaca

Please sign in to comment.