Skip to content

Commit

Permalink
docs: update vitepress and add active match to nav (#8376)
Browse files Browse the repository at this point in the history
  • Loading branch information
kiaking committed May 29, 2022
1 parent 37eb5b3 commit 4b1a22c
Show file tree
Hide file tree
Showing 11 changed files with 31 additions and 27 deletions.
6 changes: 3 additions & 3 deletions docs/.vitepress/config.ts
Expand Up @@ -53,9 +53,9 @@ export default defineConfig({
},

nav: [
{ text: 'Guide', link: '/guide/' },
{ text: 'Config', link: '/config/' },
{ text: 'Plugins', link: '/plugins/' },
{ text: 'Guide', link: '/guide/', activeMatch: '/guide/' },
{ text: 'Config', link: '/config/', activeMatch: '/config/' },
{ text: 'Plugins', link: '/plugins/', activeMatch: '/plugins/' },
{
text: 'Links',
items: [
Expand Down
1 change: 1 addition & 0 deletions docs/.vitepress/theme/components/HomeSponsors.vue
Expand Up @@ -9,6 +9,7 @@ const { data } = useSponsor()
<VPHomeSponsors
v-if="data"
message="Vite is free and open source, made possible by wonderful sponsors."
action-text="Become a sponsor"
action-link="https://github.com/sponsors/yyx990803"
:data="data"
/>
Expand Down
3 changes: 1 addition & 2 deletions docs/.vitepress/theme/index.ts
@@ -1,7 +1,6 @@
import { h } from 'vue'
import Theme from 'vitepress/theme'
import './styles/vars.css'
import './styles/custom.css'
import HomeSponsors from './components/HomeSponsors.vue'
import AsideSponsors from './components/AsideSponsors.vue'

Expand All @@ -10,7 +9,7 @@ export default {
Layout() {
return h(Theme.Layout, null, {
'home-features-after': () => h(HomeSponsors),
'aside-outline-after': () => h(AsideSponsors)
'aside-ads-before': () => h(AsideSponsors)
})
}
}
15 changes: 0 additions & 15 deletions docs/.vitepress/theme/styles/custom.css

This file was deleted.

19 changes: 19 additions & 0 deletions docs/.vitepress/theme/styles/vars.css
Expand Up @@ -38,6 +38,25 @@
#bd34fe 30%,
#41d1ff
);

--vp-home-hero-image-background-image: linear-gradient(
-45deg,
#bd34fe 50%,
#47caff 50%
);
--vp-home-hero-image-filter: blur(40px);
}

@media (min-width: 640px) {
:root {
--vp-home-hero-image-filter: blur(56px);
}
}

@media (min-width: 960px) {
:root {
--vp-home-hero-image-filter: blur(72px);
}
}

/**
Expand Down
4 changes: 2 additions & 2 deletions docs/index.md
Expand Up @@ -9,8 +9,8 @@ hero:
text: Next Generation Frontend Tooling
tagline: Get ready for a development environment that can finally catch up with you.
image:
light: /vite-splash-light.jpg
dark: /vite-splash-dark.jpg
src: /logo-with-shadow.png
alt: Vite
actions:
- theme: brand
text: Get Started
Expand Down
Binary file added docs/public/logo-with-shadow.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/public/vite-splash-dark.jpg
Binary file not shown.
Binary file removed docs/public/vite-splash-light.jpg
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -88,7 +88,7 @@
"typescript": "^4.6.4",
"unbuild": "^0.7.4",
"vite": "workspace:*",
"vitepress": "1.0.0-draft.6",
"vitepress": "1.0.0-draft.8",
"vitest": "^0.12.9",
"vue": "^3.2.35"
},
Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4b1a22c

Please sign in to comment.