From 4f2eacae7b43dadefb4934614c1e619c19d181a6 Mon Sep 17 00:00:00 2001 From: griest024 Date: Thu, 9 Jan 2025 13:50:00 -0500 Subject: [PATCH] fix(docs-utils): link computation missing for components (#3410) --- libs/docs-utils/src/kind/helpers.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/docs-utils/src/kind/helpers.ts b/libs/docs-utils/src/kind/helpers.ts index 74c349f61e..59fc9552e7 100644 --- a/libs/docs-utils/src/kind/helpers.ts +++ b/libs/docs-utils/src/kind/helpers.ts @@ -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'; @@ -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}`;