Skip to content

Commit 9b52919

Browse files
committed
feat: add missing contents
1 parent 68afebc commit 9b52919

File tree

11 files changed

+115
-10
lines changed

11 files changed

+115
-10
lines changed

.vitepress/config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import {
1313
groupIconVitePlugin,
1414
} from 'vitepress-plugin-group-icons'
1515
import { buildEnd } from './buildEnd.config'
16+
import { markdownItImageSize } from 'markdown-it-image-size'
1617

1718
const ogDescription = 'Vite, 프런트엔드 개발의 새로운 기준'
1819
const ogImage = 'https://ko.vite.dev/og-image.jpg'
@@ -499,6 +500,10 @@ export default defineConfig({
499500
md.use(markdownItFootnote)
500501
// @ts-ignore
501502
md.use(groupIconMdPlugin)
503+
// @ts-ignore
504+
md.use(markdownItImageSize, {
505+
publicDir: path.resolve(import.meta.dirname, '../public')
506+
})
502507
},
503508
},
504509
vite: {
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<template>
2+
<a
3+
href="/guide/api-environment#environments-configuration"
4+
class="ignore-header"
5+
>
6+
<Badge type="info" text="non-inherit" />
7+
</a>
8+
</template>

.vitepress/theme/components/SponsorBanner.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ function dismiss() {
8080
Register
8181
</a>
8282
</p>
83-
<button @click="dismiss">
83+
<button aria-label="close" @click="dismiss">
8484
<svg
8585
class="close"
8686
xmlns="http://www.w3.org/2000/svg"

.vitepress/theme/components/landing/3. frameworks-section/FrameworkCard.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ const props = withDefaults(defineProps<Props>(), {
5656
v-if="props.framework.logo"
5757
:src="props.framework.logo"
5858
:alt="props.framework.name"
59+
loading="lazy"
5960
/>
6061
</component>
6162
</template>

.vitepress/theme/components/landing/4. community-section/CommunityCard.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ defineProps<{
3636
:src="testimonial.avatar"
3737
:alt="testimonial.name"
3838
class="card__avatar"
39+
loading="lazy"
3940
/>
4041
<div class="card__meta">
4142
<span class="card__name">

.vitepress/theme/components/landing/4. community-section/CommunitySection.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ SolidJS in mind, they should scale from our simplest template to opinionated sta
5353
name: 'David Cramer',
5454
handle: '@zeeg',
5555
avatar:
56-
'https://pbs.twimg.com/profile_images/1706891973553168384/zdAPOznc_400x400.jpg',
56+
'https://pbs.twimg.com/profile_images/1911613315765133312/HVkULegC_400x400.jpg',
5757
comment: ['Vite has been a game changer for the industry.'],
5858
},
5959
{
@@ -69,7 +69,7 @@ SolidJS in mind, they should scale from our simplest template to opinionated sta
6969
name: 'Christoph Nakazawa',
7070
handle: '@cpojer',
7171
avatar:
72-
'https://pbs.twimg.com/profile_images/1854151427595407360/4GyUCgEH_400x400.jpg',
72+
'https://pbs.twimg.com/profile_images/1910252462126313472/gXgT-jxL_400x400.jpg',
7373
comment: ['Vite is gonna eat the (JavaScript) world.'],
7474
},
7575
{

.vitepress/theme/components/landing/5. sponsor-section/SponsorSection.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ const { data } = useSponsor()
4545
alt="Vite is made possible by our contributors, partner companies, and sponsors"
4646
width="58"
4747
height="55"
48+
loading="lazy"
4849
/>
4950
<h2>자유롭게 사용할 수 있는 오픈 소스</h2>
5051
<h4>
@@ -55,7 +56,7 @@ const { data } = useSponsor()
5556
<h4>제공</h4>
5657
<div class="voidzero">
5758
<a :href="voidZero.url" target="_blank">
58-
<img :src="voidZero.img" />
59+
<img :src="voidZero.img" alt="VoidZero logo" loading="lazy" />
5960
</a>
6061
</div>
6162

.vitepress/theme/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import AsideSponsors from './components/AsideSponsors.vue'
99
import SvgImage from './components/SvgImage.vue'
1010
import YouTubeVideo from './components/YouTubeVideo.vue'
1111
import SponsorBanner from './components/SponsorBanner.vue'
12+
import NonInheritBadge from './components/NonInheritBadge.vue'
1213
import 'virtual:group-icons.css'
1314

1415
export default {
@@ -22,6 +23,7 @@ export default {
2223
enhanceApp({ app }) {
2324
app.component('SvgImage', SvgImage)
2425
app.component('YouTubeVideo', YouTubeVideo)
26+
app.component('NonInheritBadge', NonInheritBadge)
2527
app.use(TwoslashFloatingVue)
2628
},
2729
} satisfies Theme

.vitepress/theme/styles/landing.css

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,11 @@
44

55
html:has(.landing) {
66
--vp-c-bg: #101010;
7-
87
background-color: #101010;
9-
10-
body {
11-
background-color: #101010;
12-
}
138
}
149

1510
.landing {
1611
overflow-x: hidden;
17-
background-color: #101010;
1812

1913
* {
2014
-webkit-font-smoothing: antialiased !important;

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"gray-matter": "^4.0.3",
2222
"gsap": "^3.13.0",
2323
"markdown-it-footnote": "^4.0.0",
24+
"markdown-it-image-size": "^14.7.0",
2425
"prettier": "^3.6.2",
2526
"vite": "^7.0.6",
2627
"vitepress": "^2.0.0-alpha.9",

0 commit comments

Comments
 (0)