Skip to content

Commit 78f24f3

Browse files
intijkulivz
authored andcommitted
docs: update slugify source (#1123)
slugify source code link broken.
1 parent b562972 commit 78f24f3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/docs/docs/config/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ Whether to show line numbers to the left of each code blocks.
199199
### markdown.slugify
200200

201201
- Type: `Function`
202-
- Default: [source](https://github.com/vuejs/vuepress/tree/master/packages/@vuepress/shared-utils/lib/slugify.js)
202+
- Default: [source](https://github.com/vuejs/vuepress/tree/master/packages/@vuepress/shared-utils/src/slugify.ts)
203203

204204
Function for transforming [header](../miscellaneous/glossary.md#headers) texts into slugs. Changing this affects the ids/links generated for header anchors, [table of contents](../guide/markdown.md#table-of-contents) and [sidebar](../theme/default-theme-config.md#sidebar) links.
205205

packages/docs/docs/zh/config/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ VuePress provides a convenient way to add extra styles. you can create an `.vuep
193193
### markdown.slugify
194194

195195
- Type: `Function`
196-
- Default: [source](https://github.com/vuejs/vuepress/tree/master/packages/@vuepress/shared-utils/lib/slugify.js)
196+
- Default: [source](https://github.com/vuejs/vuepress/tree/master/packages/@vuepress/shared-utils/src/slugify.ts)
197197

198198
一个将标题文本转换为 slug 的函数。修改它会影响 [标题](../miscellaneous/glossary.md#headers)[目录](../guide/markdown.md#目录)、以及[侧边栏](../theme/default-theme-config.md#侧边栏)链接的 id 和 链接。
199199

0 commit comments

Comments
 (0)