mirror of
https://github.com/zhigang1992/docsify.git
synced 2026-05-11 19:42:28 +08:00
docs: add alias
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user