docs: update docs
This commit is contained in:
parent
b3843c7d97
commit
4a8fd3f7fc
@ -1,4 +1,5 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
import type { LocaleConfig } from 'vuepress'
|
||||||
import { computed } from 'vue'
|
import { computed } from 'vue'
|
||||||
import VPButton from 'vuepress-theme-plume/components/VPButton.vue'
|
import VPButton from 'vuepress-theme-plume/components/VPButton.vue'
|
||||||
import { useRouteLocale } from 'vuepress/client'
|
import { useRouteLocale } from 'vuepress/client'
|
||||||
|
|||||||
@ -76,7 +76,7 @@ export default defineUserConfig({
|
|||||||
{ dir: 'typescript', link: '/typescript/', sidebar: 'auto' }
|
{ dir: 'typescript', link: '/typescript/', sidebar: 'auto' }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
// [!code ++:16]
|
// [!code ++:17]
|
||||||
// 使用 collections 配置
|
// 使用 collections 配置
|
||||||
collections: [
|
collections: [
|
||||||
{
|
{
|
||||||
@ -90,6 +90,7 @@ export default defineUserConfig({
|
|||||||
type: 'doc', // 替代原笔记功能
|
type: 'doc', // 替代原笔记功能
|
||||||
dir: 'typescript', // 指向 docs/typescript 目录
|
dir: 'typescript', // 指向 docs/typescript 目录
|
||||||
title: 'TypeScript笔记',
|
title: 'TypeScript笔记',
|
||||||
|
linkPrefix: '/typescript/', // 页面链接前缀、侧边栏判断依据
|
||||||
sidebar: 'auto', // 自动生成侧边栏
|
sidebar: 'auto', // 自动生成侧边栏
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|||||||
@ -83,7 +83,7 @@ export default defineUserConfig({
|
|||||||
{ dir: 'typescript', link: '/typescript/', sidebar: 'auto' }
|
{ dir: 'typescript', link: '/typescript/', sidebar: 'auto' }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
// [!code ++:16]
|
// [!code ++:17]
|
||||||
// Use collections configuration
|
// Use collections configuration
|
||||||
collections: [
|
collections: [
|
||||||
{
|
{
|
||||||
@ -97,6 +97,7 @@ export default defineUserConfig({
|
|||||||
type: 'doc', // Replaces original notes functionality
|
type: 'doc', // Replaces original notes functionality
|
||||||
dir: 'typescript', // Points to docs/typescript directory
|
dir: 'typescript', // Points to docs/typescript directory
|
||||||
title: 'TypeScript Notes',
|
title: 'TypeScript Notes',
|
||||||
|
linkPrefix: '/typescript/', // Page link prefix, sidebar judgment basis
|
||||||
sidebar: 'auto', // Auto-generate sidebar
|
sidebar: 'auto', // Auto-generate sidebar
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|||||||
@ -38,7 +38,8 @@ export default defineUserConfig({
|
|||||||
```
|
```
|
||||||
|
|
||||||
::: note
|
::: note
|
||||||
The following documentation is forked from [@vuepress/plugin-markdown-chart](https://ecosystem.vuejs.press/plugins/markdown/markdown-chart/mermaid.html) and is provided under the [MIT](https://github.com/vuepress/ecosystem/blob/main/LICENSE) license.
|
The following documentation is forked from [@vuepress/plugin-markdown-chart](https://ecosystem.vuejs.press/plugins/markdown/markdown-chart/mermaid.html)
|
||||||
|
and is provided under the[MIT](https://github.com/vuepress/ecosystem/blob/main/LICENSE) license.
|
||||||
:::
|
:::
|
||||||
|
|
||||||
## Syntax
|
## Syntax
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user