mirror of
https://github.com/docsifyjs/docsify.git
synced 2025-12-08 19:55:52 +00:00
docs: add alias
This commit is contained in:
parent
24412cdaf0
commit
19b66904fb
@ -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…
x
Reference in New Issue
Block a user