docs: add alias

This commit is contained in:
qingwei.li 2017-02-11 10:21:38 +08:00
parent 24412cdaf0
commit 19b66904fb
3 changed files with 29 additions and 0 deletions

View File

@ -1,3 +1,8 @@
## 2.3.0
> 2017-02-11
- feat(src): add alias feature
## 2.2.1
> 2017-02-11

View File

@ -460,6 +460,18 @@ window.$docsify = {
}
```
### alias
Create aliases to certain other pages more easily.
```js
window.$docsify = {
alias: {
'/changelog': 'https://raw.githubusercontent.com/QingWei-Li/docsify/master/CHANGELOG'
}
}
```
## Plugins
### Full Text Search

View File

@ -467,6 +467,18 @@ window.$docsify = {
}
```
### alias
设置别名方便自定义路由或者引入其他文件。
```js
window.$docsify = {
alias: {
'/changelog': 'https://raw.githubusercontent.com/QingWei-Li/docsify/master/CHANGELOG'
}
}
```
## Plugins
### 全文检索 - search