diff --git a/docs/zh/guide/deploy.md b/docs/zh/guide/deploy.md index b9b8ea8e..da1194b6 100644 --- a/docs/zh/guide/deploy.md +++ b/docs/zh/guide/deploy.md @@ -285,3 +285,7 @@ Cache-Control: max-age=31536000,immutable ### Edgio 请参阅[创建并部署 VitePress 应用程序到 Edgio](https://docs.edg.io/guides/vitepress)。 + +### Kinsta 静态站点托管 {#kinsta-static-site-hosting} + +你可以按照这些 [说明](https://kinsta.com/docs/vitepress-static-site-example/) 在 [Kinsta](https://kinsta.com/static-site-hosting/) 上部署你的 Vitepress 网站。 diff --git a/docs/zh/guide/extending-default-theme.md b/docs/zh/guide/extending-default-theme.md index 9673fa22..3699fe17 100644 --- a/docs/zh/guide/extending-default-theme.md +++ b/docs/zh/guide/extending-default-theme.md @@ -101,9 +101,9 @@ import DefaultTheme from 'vitepress/theme' /** @type {import('vitepress').Theme} */ export default { extends: DefaultTheme, - enhanceApp(ctx) { + enhanceApp({ app }) { // register your custom global components - ctx.app.component('MyGlobalComponent' /* ... */) + app.component('MyGlobalComponent' /* ... */) } } ``` @@ -118,7 +118,7 @@ export default { extends: DefaultTheme, async enhanceApp({ app }) { // register your custom global components - ctx.app.component('MyGlobalComponent' /* ... */) + app.component('MyGlobalComponent' /* ... */) } } satisfies Theme ``` @@ -135,7 +135,7 @@ import DefaultTheme from 'vitepress/theme' import MyLayout from './MyLayout.vue' export default { - ...DefaultTheme, + extends: DefaultTheme, // override the Layout with a wrapper component that // injects the slots Layout: MyLayout @@ -168,7 +168,7 @@ import DefaultTheme from 'vitepress/theme' import MyComponent from './MyComponent.vue' export default { - ...DefaultTheme, + extends: DefaultTheme, Layout() { return h(DefaultTheme.Layout, null, { 'aside-outline-before': () => h(MyComponent) diff --git a/docs/zh/guide/i18n.md b/docs/zh/guide/i18n.md index 4d32a1a2..ace8442b 100644 --- a/docs/zh/guide/i18n.md +++ b/docs/zh/guide/i18n.md @@ -82,7 +82,7 @@ docs/ import DefaultTheme from 'vitepress/theme' export default { - ...DefaultTheme, + extends: DefaultTheme, setup() { const { lang } = useData() watchEffect(() => { diff --git a/docs/zh/reference/default-theme-search.md b/docs/zh/reference/default-theme-search.md index baf774fd..aa8f318f 100644 --- a/docs/zh/reference/default-theme-search.md +++ b/docs/zh/reference/default-theme-search.md @@ -96,7 +96,7 @@ export default defineConfig({ }) ``` -在 [MiniSearch docs](https://lucaong.github.io/minisearch/classes/_minisearch_.minisearch.html)了解更多信息。 +在 [MiniSearch docs](https://lucaong.github.io/minisearch/classes/MiniSearch.MiniSearch.html)了解更多信息。 ### 自定义渲染内容 {#custom-content-renderer} diff --git a/docs/zh/reference/site-config.md b/docs/zh/reference/site-config.md index 4ae07289..779f3f42 100644 --- a/docs/zh/reference/site-config.md +++ b/docs/zh/reference/site-config.md @@ -503,7 +503,7 @@ interface MarkdownOptions extends MarkdownIt.Options { // Add support for your own languages. // https://github.com/shikijs/shiki/blob/main/docs/languages.md#supporting-your-own-languages-with-shiki - languages?: Shiki.ILanguageRegistration + languages?: Shiki.ILanguageRegistration[] // markdown-it-anchor plugin options. // See: https://github.com/valeriangalliat/markdown-it-anchor#usage @@ -514,7 +514,7 @@ interface MarkdownOptions extends MarkdownIt.Options { attrs?: { leftDelimiter?: string rightDelimiter?: string - allowedAttributes?: string[] + allowedAttributes?: Array disable?: boolean } @@ -527,7 +527,7 @@ interface MarkdownOptions extends MarkdownIt.Options { // @mdit-vue/plugin-headers plugin options. // See: https://github.com/mdit-vue/mdit-vue/tree/main/packages/plugin-headers#options - headers?: HeadersPluginOptions + headers?: HeadersPluginOptions | boolean // @mdit-vue/plugin-sfc plugin options. // See: https://github.com/mdit-vue/mdit-vue/tree/main/packages/plugin-sfc#options @@ -554,7 +554,7 @@ interface MarkdownOptions extends MarkdownIt.Options { // You need to install `markdown-it-mathjax3` and set `math` to `true` to enable it. // You can also pass options to `markdown-it-mathjax3` here. // See: https://github.com/tani/markdown-it-mathjax3#customization - math?: any + math?: boolean | any // Global custom container titles container?: {