Skip to content

Commit 029df3c

Browse files
committed
docs: fix sponsors
1 parent 6f5c23f commit 029df3c

File tree

2 files changed

+22
-11
lines changed

2 files changed

+22
-11
lines changed

packages/docs/.vitepress/theme/components/AsideSponsors.vue

+20-9
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,30 @@ interface Sponsor {
1313
1414
const asideSponsors = computed(() => {
1515
return [
16+
...(sponsors.platinum.length
17+
? [
18+
{
19+
items: sponsors.platinum.map((sponsor: Sponsor) => ({
20+
name: sponsor.alt,
21+
url: sponsor.href,
22+
img: sponsor.imgSrcLight,
23+
})),
24+
},
25+
]
26+
: []),
1627
{
1728
size: 'mini',
18-
items: sponsors.platinum.length ? sponsors.platinum.map((sponsor: Sponsor) => ({
19-
name: sponsor.alt,
20-
url: sponsor.href,
21-
img: sponsor.imgSrcLight,
22-
})) : [
23-
{
29+
items: sponsors.gold
30+
.map((sponsor: Sponsor) => ({
31+
name: sponsor.alt,
32+
url: sponsor.href,
33+
img: sponsor.imgSrcLight,
34+
}))
35+
.concat({
2436
name: 'Become a sponsor',
2537
url: 'https://github.com/sponsors/posva',
26-
img: '/your-logo-here.svg'
27-
}
28-
],
38+
img: '/your-logo-here.svg',
39+
}),
2940
},
3041
{
3142
size: 'xmini',

packages/docs/.vitepress/theme/components/sponsors.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
{
55
"alt": "CodeRabbit",
66
"href": "https://www.coderabbit.ai/?utm_source=cr_org&utm_medium=github",
7-
"imgSrcDark": "https://posva-sponsors.pages.dev/logos/coderabbitai.svg",
8-
"imgSrcLight": "https://posva-sponsors.pages.dev/logos/coderabbitai.svg"
7+
"imgSrcDark": "https://posva-sponsors.pages.dev/logos/coderabbitai-dark.svg",
8+
"imgSrcLight": "https://posva-sponsors.pages.dev/logos/coderabbitai-light.svg"
99
}
1010
],
1111
"silver": [

0 commit comments

Comments
 (0)