Skip to content

Commit b49ea6f

Browse files
committed
chore: map func
1 parent 99f819a commit b49ea6f

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

packages/hooks/docs/.vitepress/theme/home/TeamMember.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,11 @@
7979
<a
8080
v-for="f of data.functions"
8181
:key="f"
82-
:href="isProduction ? `/docs/hooks/${f}/` : `/${f}/`"
82+
:href="
83+
isProduction
84+
? `/docs/hooks/${data?.functionsMap?.[f] ?? f}/`
85+
: `/${data?.functionsMap?.[f] ?? f}/`
86+
"
8387
target="_blank"
8488
>
8589
<code>{{ f }}</code>

packages/hooks/docs/contributors.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export interface CoreTeam {
1414
description: string
1515
packages?: string[]
1616
functions?: string[]
17+
functionsMap?: Record<string, string>
1718
}
1819

1920
const contributorsAvatars: Record<string, string> = {}
@@ -56,6 +57,9 @@ const coreTeamMembers: CoreTeam[] = [
5657
github: 'Noobbbbbbb',
5758
description: '',
5859
functions: ['useFullscreen'],
60+
functionsMap: {
61+
useFullscreen: 'useFull'
62+
}
5963
}
6064
]
6165
// .sort(

0 commit comments

Comments
 (0)