docs: add alias

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

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