File tree 4 files changed +34
-7
lines changed
4 files changed +34
-7
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,8 @@ CSS 的压缩文件位于 `/lib/themes/` 目录下,JS 的压缩文件是原有
52
52
53
53
## 其他 CDN
54
54
55
- - http ://www.bootcdn.cn/docsify (支持国内)
55
+ - https ://www.bootcdn.cn/docsify/ (支持国内)
56
56
- https://cdn.jsdelivr.net/npm/docsify/ (国内外都支持)
57
57
- https://cdnjs.com/libraries/docsify
58
+ - https://unpkg.com/browse/docsify/
58
59
Original file line number Diff line number Diff line change @@ -59,6 +59,14 @@ docsify 扩展了一些 Markdown 语法,可以让文档更易读。
59
59
[link](/demo ':disabled')
60
60
```
61
61
62
+ ## 跨域链接
63
+
64
+ 只有当你同时设置了 ` routerMode: 'history' ` 和 ` externalLinkTarget: '_self' ` 时,你需要为这些跨域链接添加这个配置。
65
+
66
+ ``` md
67
+ [example.com](https://example.com/ ':crossorgin')
68
+ ```
69
+
62
70
## Github 任务列表
63
71
64
72
``` md
@@ -100,6 +108,7 @@ docsify 扩展了一些 Markdown 语法,可以让文档更易读。
100
108
``` md
101
109

102
110
```
111
+
103
112
### 设置图片的 ID
104
113
105
114
``` md
Original file line number Diff line number Diff line change @@ -101,24 +101,24 @@ docs/zh-cn/guide.md => http://domain.com/zh-cn/guide
101
101
102
102
## 忽略副标题
103
103
104
- 当设置了 ` subMaxLevel ` 时,默认情况下每个标题都会自动添加到目录中。如果你想忽略特定的标题,可以给它添加 ` {docsify-ignore} ` 。
104
+ 当设置了 ` subMaxLevel ` 时,默认情况下每个标题都会自动添加到目录中。如果你想忽略特定的标题,可以给它添加 ` <!-- {docsify-ignore} --> ` 。
105
105
106
106
``` markdown
107
107
# Getting Started
108
108
109
- ## Header {docsify-ignore}
109
+ ## Header <!-- {docsify-ignore} -->
110
110
111
111
该标题不会出现在侧边栏的目录中。
112
112
```
113
113
114
- 要忽略特定页面上的所有标题,你可以在页面的第一个标题上使用 ` {docsify-ignore-all} ` 。
114
+ 要忽略特定页面上的所有标题,你可以在页面的第一个标题上使用 ` <!-- {docsify-ignore-all} --> ` 。
115
115
116
116
``` markdown
117
- # 入门 {docsify-ignore-all}
117
+ # Getting Started <!-- {docsify-ignore-all} -->
118
118
119
- ## 标题
119
+ ## Header
120
120
121
121
该标题不会出现在侧边栏的目录中。
122
122
```
123
123
124
- 在使用时, ` {docsify-ignore} ` 和 ` {docsify-ignore-all} ` 都不会在页面上呈现。
124
+ 在使用时, ` <!-- {docsify-ignore} --> ` 和 ` <!-- {docsify-ignore-all} --> ` 都不会在页面上呈现。
Original file line number Diff line number Diff line change 38
38
39
39
// 搜索标题的最大层级, 1 - 6
40
40
depth: 2 ,
41
+
42
+ hideOtherSidebarContent: false , // 是否隐藏其他侧边栏内容
43
+
44
+ // 避免搜索索引冲突
45
+ // 同一域下的多个网站之间
46
+ namespace: ' website-1' ,
47
+
48
+ // 使用不同的索引作为路径前缀(namespaces)
49
+ // 注意:仅适用于 paths: 'auto' 模式
50
+ //
51
+ // 初始化索引时,我们从侧边栏查找第一个路径
52
+ // 如果它与列表中的前缀匹配,我们将切换到相应的索引
53
+ pathNamespaces: [' /zh-cn' , ' /ru-ru' , ' /ru-ru/v1' ],
54
+
55
+ // 您可以提供一个正则表达式来匹配前缀。在这种情况下,
56
+ // 匹配到的字符串将被用来识别索引
57
+ pathNamespaces: / ^ (\/ (zh-cn| ru-ru))? (\/ (v1| v2))? /
41
58
}
42
59
}
43
60
</script >
You can’t perform that action at this time.
0 commit comments