Skip to content

Commit fb71273

Browse files
committed
docs: bump vitepress version + add new sponsor
1 parent baa8c39 commit fb71273

File tree

7 files changed

+64
-9
lines changed

7 files changed

+64
-9
lines changed

docs/.vitepress/theme/sponsors.css

+7-2
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,15 @@
88
}
99

1010
.sponsors img {
11-
max-width: 200px;
11+
max-width: 180px;
1212
height: 40px;
1313
display: block;
14-
margin: 1.25rem 0;
14+
margin-top: 1em;
15+
}
16+
17+
.sponsors a.platinum img {
18+
max-width: 240px;
19+
height: 60px;
1520
}
1621

1722
.sponsors.frontpage {

docs/.vitepress/theme/sponsors.json

+7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
[
2+
{
3+
"id": "stackblitz",
4+
"name": "StackBlitz",
5+
"href": "https://stackblitz.com/",
6+
"src": "/stackblitz.svg",
7+
"tier": "platinum"
8+
},
29
{
310
"id": "tailwind",
411
"name": "Tailwind Labs",

docs/index.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@ footer: MIT Licensed | Copyright © 2019-present Evan You & Vite Contributors
2525

2626
<div class="frontpage sponsors">
2727
<h2>Sponsors</h2>
28-
<a v-for="{ href, src, name, id } of sponsors" :href="href" target="_blank" rel="noopener" aria-label="sponsor-img">
28+
<a v-for="{ href, src, name, id } of sponsors.filter(s => s.tier === 'platinum')" class="platinum" :href="href" target="_blank" rel="noopener" aria-label="sponsor-img">
29+
<img :src="src" :alt="name" :id="`sponsor-${id}`">
30+
</a>
31+
<br>
32+
<a v-for="{ href, src, name, id } of sponsors.filter(s => s.tier !== 'platinum')" :href="href" target="_blank" rel="noopener" aria-label="sponsor-img">
2933
<img :src="src" :alt="name" :id="`sponsor-${id}`">
3034
</a>
3135
<br>

docs/public/_headers

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
/assets/*
22
cache-control: max-age=31536000
3-
cache-control: immutable
3+
cache-control: immutable
4+
5+
/*.svg
6+
cache-control: max-age=604800
7+
cache-control: immutable
8+
9+
/*.png
10+
cache-control: max-age=604800
11+
cache-control: immutable

docs/public/stackblitz.svg

+31
Loading

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"ts-jest": "^27.0.7",
5858
"ts-node": "^10.1.0",
5959
"typescript": "~4.4.3",
60-
"vitepress": "^0.19.2",
60+
"vitepress": "^0.20.0",
6161
"yorkie": "^2.0.0",
6262
"rollup": "^2.57.0",
6363
"esbuild": "^0.13.2",

pnpm-lock.yaml

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)