docs: add alias
This commit is contained in:
parent
24412cdaf0
commit
19b66904fb
3 changed files with 29 additions and 0 deletions
|
|
@ -1,3 +1,8 @@
|
|||
## 2.3.0
|
||||
|
||||
> 2017-02-11
|
||||
- feat(src): add alias feature
|
||||
|
||||
## 2.2.1
|
||||
|
||||
> 2017-02-11
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -467,6 +467,18 @@ window.$docsify = {
|
|||
}
|
||||
```
|
||||
|
||||
### alias
|
||||
|
||||
设置别名方便自定义路由或者引入其他文件。
|
||||
|
||||
```js
|
||||
window.$docsify = {
|
||||
alias: {
|
||||
'/changelog': 'https://raw.githubusercontent.com/QingWei-Li/docsify/master/CHANGELOG'
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## Plugins
|
||||
|
||||
### 全文检索 - search
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue