Skip to content

Commit 24748ea

Browse files
release v3.0.0
2 parents 4b1aeb1 + 94a3df2 commit 24748ea

29 files changed

+743
-162
lines changed

.vitepress/config.ts

+9-9
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import renderPermaLink from './render-perma-link'
33
import MarkDownItCustomAnchor from './markdown-it-custom-anchor'
44

55
const ogDescription = 'Next Generation Frontend Tooling'
6-
const ogImage = 'https://main.vitejs.dev/og-image.png'
6+
const ogImage = 'https://vitejs.dev/og-image.png'
77
const ogTitle = 'Vite'
8-
const ogUrl = 'https://main.vitejs.dev'
8+
const ogUrl = 'https://vitejs.dev'
99

1010
export default defineConfig({
1111
title: 'Vite 官方中文文档',
@@ -18,11 +18,9 @@ export default defineConfig({
1818
['meta', { property: 'og:title', content: ogTitle }],
1919
['meta', { property: 'og:image', content: ogImage }],
2020
['meta', { property: 'og:url', content: ogUrl }],
21-
['meta', { property: 'twitter:description', content: ogDescription }],
22-
['meta', { property: 'twitter:title', content: ogTitle }],
23-
['meta', { property: 'twitter:card', content: 'summary_large_image' }],
24-
['meta', { property: 'twitter:image', content: ogImage }],
25-
['meta', { property: 'twitter:url', content: ogUrl }]
21+
['meta', { property: 'og:description', content: ogDescription }],
22+
['meta', { name: 'twitter:card', content: 'summary_large_image' }],
23+
['meta', { name: 'twitter:site', content: '@vite_js' }]
2624
],
2725

2826
vue: {
@@ -44,6 +42,7 @@ export default defineConfig({
4442
],
4543

4644
algolia: {
45+
appId: 'BH4D9OD16A',
4746
apiKey: 'b573aa848fd57fb47d693b531297403c',
4847
indexName: 'vitejs',
4948
searchParameters: {
@@ -77,6 +76,7 @@ export default defineConfig({
7776
{
7877
text: '相关链接',
7978
items: [
79+
{ text: 'Team', link: '/team' },
8080
{
8181
text: 'Twitter',
8282
link: 'https://twitter.com/vite_js'
@@ -104,10 +104,10 @@ export default defineConfig({
104104
]
105105
},
106106
{
107-
text: 'v3 (next)',
107+
text: 'Version',
108108
items: [
109109
{
110-
text: 'v2.x(稳定版)',
110+
text: 'Vite v2 文档',
111111
link: 'https://v2.vitejs.dev'
112112
}
113113
]

.vitepress/theme/styles/vars.css

+33-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
--vp-c-brand: #646cff;
77
--vp-c-brand-light: #747bff;
88
--vp-c-brand-lighter: #9499ff;
9+
--vp-c-brand-lightest: #bcc0ff;
910
--vp-c-brand-dark: #535bf2;
1011
--vp-c-brand-darker: #454ce1;
1112
--vp-c-brand-dimm: rgba(100, 108, 255, 0.08);
@@ -71,7 +72,7 @@
7172

7273
.dark {
7374
--vp-custom-block-tip-border: var(--vp-c-brand);
74-
--vp-custom-block-tip-text: var(--vp-c-brand-lighter);
75+
--vp-custom-block-tip-text: var(--vp-c-brand-lightest);
7576
--vp-custom-block-tip-bg: var(--vp-c-brand-dimm);
7677
}
7778

@@ -82,3 +83,34 @@
8283
.DocSearch {
8384
--docsearch-primary-color: var(--vp-c-brand) !important;
8485
}
86+
87+
/**
88+
* VitePress: Custom fix
89+
* -------------------------------------------------------------------------- */
90+
91+
/*
92+
Use lighter colors for links in dark mode for a11y.
93+
Also specify some classes twice to have higher specificity
94+
over scoped class data attribute.
95+
*/
96+
.dark .vp-doc a,
97+
.dark .vp-doc a > code,
98+
.dark .VPNavBarMenuLink.VPNavBarMenuLink:hover,
99+
.dark .VPNavBarMenuLink.VPNavBarMenuLink.active,
100+
.dark .link.link:hover,
101+
.dark .link.link.active,
102+
.dark .edit-link-button.edit-link-button,
103+
.dark .pager-link .title {
104+
color: var(--vp-c-brand-lighter);
105+
}
106+
107+
.dark .vp-doc a:hover,
108+
.dark .vp-doc a > code:hover {
109+
color: var(--vp-c-brand-lightest);
110+
opacity: 1;
111+
}
112+
113+
/* Transition by color instead of opacity */
114+
.dark .vp-doc .custom-block a {
115+
transition: color 0.25s;
116+
}

_data/team.js

+152
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,152 @@
1+
export const core = [
2+
{
3+
avatar: 'https://www.github.com/yyx990803.png',
4+
name: 'Evan You',
5+
title: 'Creator',
6+
org: 'Vue.js',
7+
orgLink: 'https://vuejs.org/',
8+
desc: 'Husband, father of two, independent open source developer.',
9+
links: [
10+
{ icon: 'github', link: 'https://github.com/yyx990803' },
11+
{ icon: 'twitter', link: 'https://twitter.com/youyuxi' }
12+
],
13+
sponsor: 'https://github.com/sponsors/yyx990803'
14+
},
15+
{
16+
avatar: 'https://www.github.com/patak-dev.png',
17+
name: 'Patak',
18+
title: 'A collaborative being',
19+
org: 'StackBlitz',
20+
orgLink: 'https://stackblitz.com/',
21+
desc: 'Core team member of Vite. Team member of Vue.',
22+
links: [
23+
{ icon: 'github', link: 'https://github.com/patak-dev' },
24+
{ icon: 'twitter', link: 'https://twitter.com/patak_dev' }
25+
],
26+
sponsor: 'https://github.com/sponsors/patak-dev'
27+
},
28+
{
29+
avatar: 'https://www.github.com/antfu.png',
30+
name: 'Anthony Fu',
31+
title: 'A fanatical open sourceror',
32+
org: 'NuxtLabs',
33+
orgLink: 'https://nuxtlabs.com/',
34+
desc: 'Core team member of Vite & Vue. Working at NuxtLabs.',
35+
links: [
36+
{ icon: 'github', link: 'https://github.com/antfu' },
37+
{ icon: 'twitter', link: 'https://twitter.com/antfu7' }
38+
],
39+
sponsor: 'https://github.com/sponsors/antfu'
40+
},
41+
{
42+
avatar: 'https://github.com/sodatea.png',
43+
name: 'Haoqun Jiang',
44+
title: 'Developer',
45+
org: 'Vue.js',
46+
orgLink: 'https://vuejs.org/',
47+
desc: 'Vite/Vite core team member. Full-time open sourcerer.',
48+
links: [
49+
{ icon: 'github', link: 'https://github.com/sodatea' },
50+
{ icon: 'twitter', link: 'https://twitter.com/haoqunjiang' }
51+
],
52+
sponsor: 'https://github.com/sponsors/sodatea'
53+
},
54+
{
55+
avatar: 'https://github.com/Shinigami92.png',
56+
name: 'Shinigami',
57+
title: 'Maintainer',
58+
org: 'Faker',
59+
orgLink: 'https://fakerjs.dev',
60+
desc: 'Passionate TypeScript enthusiast working extensively with Vue SPA and pug.',
61+
links: [
62+
{ icon: 'github', link: 'https://github.com/Shinigami92' },
63+
{ icon: 'twitter', link: 'https://twitter.com/Shini_92' }
64+
],
65+
sponsor: 'https://github.com/sponsors/Shinigami92'
66+
},
67+
{
68+
avatar: 'https://i.imgur.com/KMed6rQ.jpeg',
69+
name: 'Alec Larson',
70+
title: 'Entrepreneur',
71+
desc: 'Dabbling in social ecommerce, meta frameworks, and board games',
72+
links: [
73+
{ icon: 'github', link: 'https://github.com/aleclarson' },
74+
{ icon: 'twitter', link: 'https://twitter.com/retropragma' }
75+
],
76+
sponsor: 'https://github.com/sponsors/aleclarson'
77+
},
78+
{
79+
avatar: 'https://github.com/bluwy.png',
80+
name: 'Bjorn Lu',
81+
title: 'Frontend Developer',
82+
desc: 'Svelte and Vite team member. Something something opinions.',
83+
links: [
84+
{ icon: 'github', link: 'https://github.com/bluwy' },
85+
{ icon: 'twitter', link: 'https://twitter.com/bluwyoo' }
86+
],
87+
sponsor: 'https://bjornlu.com/sponsor'
88+
},
89+
{
90+
avatar: 'https://github.com/poyoho.png',
91+
name: 'yoho',
92+
title: 'Frontend Developer',
93+
desc: 'Frontend. Vite team member.',
94+
links: [
95+
{ icon: 'github', link: 'https://github.com/poyoho' },
96+
{ icon: 'twitter', link: 'https://twitter.com/yoho_po' }
97+
]
98+
},
99+
{
100+
avatar: 'https://github.com/sapphi-red.png',
101+
name: 'green',
102+
title: 'Web Developer',
103+
desc: 'Vite team member. Call me sapphi or green or midori ;)',
104+
links: [
105+
{ icon: 'github', link: 'https://github.com/sapphi-red' },
106+
{ icon: 'twitter', link: 'https://twitter.com/sapphi_red' }
107+
],
108+
sponsor: 'https://github.com/sponsors/sapphi-red'
109+
},
110+
{
111+
avatar: 'https://github.com/ygj6.png',
112+
name: 'ygj6',
113+
title: 'Developer',
114+
desc: 'Web Developer. Vue & Vite team member',
115+
links: [
116+
{ icon: 'github', link: 'https://github.com/ygj6' },
117+
{ icon: 'twitter', link: 'https://twitter.com/ygj_66' }
118+
]
119+
},
120+
{
121+
avatar: 'https://github.com/Niputi.png',
122+
name: 'Niputi',
123+
title: 'Developer',
124+
org: 'Computershare Denmark',
125+
desc: 'weeb/javascript lover.',
126+
links: [
127+
{ icon: 'github', link: 'https://github.com/Niputi' },
128+
{ icon: 'twitter', link: 'https://twitter.com/Niputi_' }
129+
]
130+
}
131+
]
132+
133+
export const emeriti = [
134+
{
135+
avatar: 'https://github.com/underfin.png',
136+
name: 'underfin',
137+
title: 'Developer',
138+
links: [{ icon: 'github', link: 'https://github.com/underfin' }]
139+
},
140+
{
141+
avatar: 'https://github.com/GrygrFlzr.png',
142+
name: 'GrygrFlzr',
143+
title: 'Developer',
144+
links: [{ icon: 'github', link: 'https://github.com/GrygrFlzr' }]
145+
},
146+
{
147+
avatar: 'https://github.com/nihalgonsalves.png',
148+
name: 'Nihal Gonsalves',
149+
title: 'Senior Software Engineer',
150+
links: [{ icon: 'github', link: 'https://github.com/nihalgonsalves' }]
151+
}
152+
]

0 commit comments

Comments
 (0)