Skip to content

Commit 5cc6d7a

Browse files
committed
Merge remote-tracking branch 'origin/main' into immediate-watchers
2 parents 3ad513a + 262b5a1 commit 5cc6d7a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+585
-1022
lines changed

.vitepress/config.ts

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,24 @@ export default defineConfigWithTheme<ThemeConfig>({
608608
// Placeholder of the i18n config for @vuejs-translations.
609609
// i18n,
610610

611+
localeLinks: [
612+
{
613+
link: 'https://cn.vuejs.org',
614+
text: '简体中文',
615+
repo: 'https://github.com/vuejs-translations/docs-zh-cn'
616+
},
617+
{
618+
link: 'https://ja.vuejs.org',
619+
text: '日本語',
620+
repo: 'https://github.com/vuejs-translations/docs-ja'
621+
},
622+
{
623+
link: '/translations/',
624+
text: 'Help Us Translate!',
625+
isTranslationsDesc: true
626+
}
627+
],
628+
611629
algolia: {
612630
indexName: 'vuejs',
613631
appId: 'ML0LEBN7FQ',
@@ -623,7 +641,6 @@ export default defineConfigWithTheme<ThemeConfig>({
623641
},
624642

625643
socialLinks: [
626-
{ icon: 'languages', link: '/translations/' },
627644
{ icon: 'github', link: 'https://github.com/vuejs/' },
628645
{ icon: 'twitter', link: 'https://twitter.com/vuejs' },
629646
{ icon: 'discord', link: 'https://discord.com/invite/HBherRA' }

.vitepress/theme/components/PreferenceSwitch.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ import {
1111
1212
const route = useRoute()
1313
const show = $computed(() =>
14-
/^\/(guide|tutorial|examples)\//.test(route.path)
14+
/^\/(guide|tutorial|examples|style-guide)\//.test(route.path)
1515
)
16-
const showSFC = $computed(() => !/^\/guide/.test(route.path))
16+
const showSFC = $computed(() => !/^\/guide|style-guide/.test(route.path))
1717
1818
let isOpen = $ref(true)
1919
@@ -206,11 +206,11 @@ function useToggleFn(
206206
font-size: 11px;
207207
padding: 8px 4px;
208208
}
209-
209+
210210
.vt-switch {
211211
margin: auto;
212212
}
213-
213+
214214
.switch-link {
215215
margin-left: auto;
216216
}

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
},
1111
"dependencies": {
1212
"@vue/repl": "^1.3.2",
13-
"@vue/theme": "^1.2.2",
13+
"@vue/theme": "^1.3.0",
1414
"dynamics.js": "^1.1.5",
1515
"gsap": "^3.9.0",
16-
"vitepress": "^1.0.0-alpha.13",
17-
"vue": "^3.2.38"
16+
"vitepress": "^1.0.0-alpha.29",
17+
"vue": "^3.2.45"
1818
},
1919
"devDependencies": {
2020
"@types/markdown-it": "^12.2.3",

0 commit comments

Comments
 (0)