Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .vitepress/buildEnd.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const buildEnd = async (config: SiteConfig): Promise<void> => {
id: blogUrl,
link: blogUrl,
language: 'en',
image: 'https://vite.dev/og-image.png',
image: 'https://vite.dev/og-image.jpg',
favicon: 'https://vite.dev/logo.svg',
copyright: 'Copyright © 2019-present VoidZero Inc. & Vite Contributors',
})
Expand Down
3 changes: 3 additions & 0 deletions .vitepress/inlined-scripts/banner.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
interface Window {
__VITE_BANNER_ID__: string
}
11 changes: 11 additions & 0 deletions .vitepress/inlined-scripts/banner.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,17 @@
}
}

window.__VITE_BANNER_ID__ = 'viteplusannouncement'
restore(`vite-docs-banner-${__VITE_BANNER_ID__}`, 'banner-dismissed')
})()
;(() => {
const restore = (key, cls, def = false) => {
const saved = localStorage.getItem(key)
if (saved ? saved !== 'false' : def) {
document.documentElement.classList.add(cls)
}
}

window.__VITE_BANNER_ID__ = 'viteconf2025'
restore(`vite-docs-banner-${__VITE_BANNER_ID__}`, 'banner-dismissed')
})()
11 changes: 8 additions & 3 deletions .vitepress/theme/components/AsideSponsors.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,19 @@ const sponsors = computed(() => {
<template>
<a
class="viteconf"
href="https://viteconf.org/?utm=vite-sidebar"
href="https://www.youtube.com/playlist?list=PLqGQbXn_GDmkJaoykvHCUmXUPjhgH2bVr"
target="_blank"
>
<img width="22" height="22" src="/viteconf.svg" alt="ViteConf Logo" />
<img
width="22"
height="22"
src="../../../images/viteconf.svg"
alt="ViteConf Logo"
/>
<span>
<p class="extra-info">Building Together</p>
<p class="heading">ViteConf 2025</p>
<p class="extra-info">First time in-person!</p>
<p class="extra-info">View the replays</p>
</span>
</a>
<VPDocAsideSponsors v-if="data" :data="sponsors" />
Expand Down
Loading