Skip to content

Commit 19b6690

Browse files
committed
docs: add alias
1 parent 24412cd commit 19b6690

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 2.3.0
2+
3+
> 2017-02-11
4+
- feat(src): add alias feature
5+
16
## 2.2.1
27

38
> 2017-02-11

docs/README.md

+12
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,18 @@ window.$docsify = {
460460
}
461461
```
462462

463+
### alias
464+
465+
Create aliases to certain other pages more easily.
466+
467+
```js
468+
window.$docsify = {
469+
alias: {
470+
'/changelog': 'https://raw.githubusercontent.com/QingWei-Li/docsify/master/CHANGELOG'
471+
}
472+
}
473+
```
474+
463475
## Plugins
464476

465477
### Full Text Search

docs/zh-cn.md

+12
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,18 @@ window.$docsify = {
467467
}
468468
```
469469

470+
### alias
471+
472+
设置别名方便自定义路由或者引入其他文件。
473+
474+
```js
475+
window.$docsify = {
476+
alias: {
477+
'/changelog': 'https://raw.githubusercontent.com/QingWei-Li/docsify/master/CHANGELOG'
478+
}
479+
}
480+
```
481+
470482
## Plugins
471483

472484
### 全文检索 - search

0 commit comments

Comments
 (0)