Skip to content

Commit

Permalink
chore: sync
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Aug 14, 2024
2 parents 5caca44 + 3d56a01 commit 84c0717
Show file tree
Hide file tree
Showing 12 changed files with 359 additions and 171 deletions.
14 changes: 9 additions & 5 deletions .vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ export const sidebar: ThemeConfig['sidebar'] = {
{ text: '服务端渲染', link: '/api/ssr' },
{ text: 'TypeScript 工具类型', link: '/api/utility-types' },
{ text: '自定义渲染', link: '/api/custom-renderer' },
{ text: '编译时标志', link: '/api/compile-time-flags' },
{ text: '编译时标志', link: '/api/compile-time-flags' }
]
}
],
Expand Down Expand Up @@ -587,12 +587,16 @@ const i18n: ThemeConfig['i18n'] = {
ariaToC: '当前页面的目录',
ariaMainNav: '主导航',
ariaMobileNav: '移动版导航',
ariaSidebarNav: '侧边栏导航',
ariaSidebarNav: '侧边栏导航'
}

export default defineConfigWithTheme<ThemeConfig>({
extends: baseConfig,

sitemap: {
hostname: 'https://cn.vuejs.org'
},

lang: 'zh-CN',
title: 'Vue.js',
description: 'Vue.js - 渐进式的 JavaScript 框架',
Expand Down Expand Up @@ -778,7 +782,7 @@ export default defineConfigWithTheme<ThemeConfig>({
reportMissingResultsLinkText: '向我们反馈'
}
}
},
}
},

// carbonAds: {
Expand All @@ -802,7 +806,8 @@ export default defineConfigWithTheme<ThemeConfig>({
text: '版权声明',
link: 'https://github.com/vuejs-translations/docs-zh-cn#%E7%89%88%E6%9D%83%E5%A3%B0%E6%98%8E'
},
copyright: '本中文文档采用 知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议 (CC BY-NC-SA 4.0) 进行许可。'
copyright:
'本中文文档采用 知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议 (CC BY-NC-SA 4.0) 进行许可。'
}
},

Expand Down Expand Up @@ -834,7 +839,6 @@ export default defineConfigWithTheme<ThemeConfig>({
}
},
build: {
minify: 'terser',
chunkSizeWarningLimit: Infinity
},
json: {
Expand Down
2 changes: 1 addition & 1 deletion .vitepress/theme/components/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ html:not(.dark) .accent,
}
.dark .actions .security:hover {
background: linear-gradient(var(--vt-c-gray-dark-3), var(--vt-c-gray-dark-3)) padding-box,
background: linear-gradient(var(--vt-c-gray-dark-3), var(--vt-c-gray-dark-3)) padding-box,
linear-gradient(45deg, #42d392, #647eff) border-box;
}
Expand Down
2 changes: 1 addition & 1 deletion .vitepress/theme/components/SponsorsAside.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const { frontmatter } = useData()
<template>
<a
class="viteconf-cta-aside"
href="https://viteconf.org/?utm=vite-sidebar"
href="https://viteconf.org/?utm=vue-sidebar"
target="_blank"
>
<img width="22" height="22" src="/viteconf.svg" />
Expand Down
4 changes: 4 additions & 0 deletions .vitepress/theme/styles/style-guide.css
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,7 @@
.style-verb.avoid {
background-color: var(--vt-c-red);
}
.vt-doc summary {
width: fit-content;
cursor: pointer;
}
11 changes: 5 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"license": "CC BY-NC-SA 4.0",
"engines": {
"node": ">=14.0.0",
"node": ">=18.0.0",
"pnpm": ">=7.4.0"
},
"type": "module",
Expand All @@ -16,12 +16,12 @@
"type": "vue-tsc --noEmit"
},
"dependencies": {
"@vue/repl": "^4.2.1",
"@vue/repl": "^4.3.1",
"@vue/theme": "^2.2.12",
"dynamics.js": "^1.1.5",
"gsap": "^3.12.5",
"vitepress": "^1.2.3",
"vue": "^3.4.27"
"vitepress": "^1.3.2",
"vue": "^3.5.0-beta.1"
},
"devDependencies": {
"@types/body-scroll-lock": "^3.1.2",
Expand All @@ -33,9 +33,8 @@
"lodash": "^4.17.21",
"open": "^8.4.0",
"simple-git": "^2.48.0",
"terser": "^5.31.0",
"typescript": "^5.4.5",
"vue-tsc": "^2.0.19",
"vue-tsc": "^2.0.29",
"zhlint": "^0.8.1"
},
"packageManager": "[email protected]"
Expand Down
Loading

0 comments on commit 84c0717

Please sign in to comment.