diff --git a/docs/zh/guide/theme-introduction.md b/docs/zh/guide/theme-introduction.md index 75855679..3641784b 100644 --- a/docs/zh/guide/theme-introduction.md +++ b/docs/zh/guide/theme-introduction.md @@ -101,7 +101,7 @@ export default Theme 如果你想扩展和自定义默认主题,你可以从 `vitepress/theme` 导入它并在导出自定义主题中对其进行扩展。以下是一些常见自定义的示例: -### 注册全局组件 {#extending-the-default-theme} +### 注册全局组件 {#registering-global-components} ```js // .vitepress/theme/index.js diff --git a/docs/zh/guide/theme-layout.md b/docs/zh/guide/theme-layout.md index efc93ef9..0a190142 100644 --- a/docs/zh/guide/theme-layout.md +++ b/docs/zh/guide/theme-layout.md @@ -33,5 +33,5 @@ page 布局可在 VitePress 主题不会影响标签的情况下让你自行设 选项 `home` 将生成模板化的“主页”。 在此布局中,你可以设置额外的选项,例如 `hero` 和 `features`,以进一步自定义内容。请访问[主题:主页](./theme-home-page)了解更多详情。 -## No 布局 {#home-layout} +## No 布局 {#no-layout} 如果你不想要任何布局,你可以通过在 frontmatter 中设置 `layout: false`。如果你想要一个完全可定制的登录页面 (默认情况下没有任何侧边栏、导航栏或页脚),这个选项很有用。 \ No newline at end of file diff --git a/docs/zh/guide/theme-nav.md b/docs/zh/guide/theme-nav.md index c856deb9..1cbb5425 100644 --- a/docs/zh/guide/theme-nav.md +++ b/docs/zh/guide/theme-nav.md @@ -138,6 +138,6 @@ export default { `activeMatch` 应为正则表达式字符串,但你必须将其定义为字符串。我们不能在这里使用实际的 RegExp 对象,因为它在构建时不可序列化。 ::: -## 社交链接 {#customize-link-s-active-state} +## 社交链接 {#social-links} 点击这里查看支持的 [`socialLinks`](../config/theme-configs#sociallinks). diff --git a/docs/zh/guide/using-vue.md b/docs/zh/guide/using-vue.md index 23471c92..5d5c5335 100644 --- a/docs/zh/guide/using-vue.md +++ b/docs/zh/guide/using-vue.md @@ -183,7 +183,7 @@ npm install -D stylus