Skip to content

Commit 07a2a91

Browse files
committed
docs(configuration): nameLink
1 parent 8ad835c commit 07a2a91

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

docs/configuration.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,13 @@ The name of the link.
206206

207207
```js
208208
window.$docsify = {
209-
nameLink: '/'
209+
nameLink: '/',
210+
211+
// For each route
212+
nameLink: {
213+
'/zh-cn/': '/zh-cn/',
214+
'/': '/'
215+
}
210216
}
211217
```
212218

docs/zh-cn/configuration.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,13 @@ window.$docsify = {
206206

207207
```js
208208
window.$docsify = {
209-
nameLink: '/'
209+
nameLink: '/',
210+
211+
// 按照路由切换
212+
nameLink: {
213+
'/zh-cn/': '/zh-cn/',
214+
'/': '/'
215+
}
210216
}
211217
```
212218

0 commit comments

Comments
 (0)