Skip to content

Commit 4f2eaca

Browse files
authored
fix(docs-utils): link computation missing for components (#3410)
1 parent 203f7e0 commit 4f2eaca

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libs/docs-utils/src/kind/helpers.ts

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { DAFF_DOCS_DESIGN_PATH } from '../path';
12
import { DaffDocKind } from './enum';
23
import { DAFF_DOC_KIND_PATH_SEGMENT_MAP } from './path-segment-map';
34

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

42+
case DaffDocKind.COMPONENT:
43+
return `/docs/${DAFF_DOCS_DESIGN_PATH}/${DAFF_DOC_KIND_PATH_SEGMENT_MAP[kind]}/${matchPath}`;
44+
4145
case DaffDocKind.PACKAGE:
4246
return `/docs/packages/${matchPath}`;
4347

0 commit comments

Comments
 (0)