docs: add requestHeaders and ext

This commit is contained in:
qingwei.li 2018-02-11 20:15:04 +08:00 committed by cinwell.li
parent 4bdcee2cb3
commit cb900a68e5
3 changed files with 77 additions and 1 deletions

View File

@ -388,4 +388,28 @@ window.$docsify = {
};
```
##
## requestHeaders
* type: `Object`
Set the request resource headers.
```js
window.$docsify = {
requestHeaders: {
'x-token': 'xxx'
}
};
```
## ext
* type: `String`
Request file extension.
```js
window.$docsify = {
ext: '.md'
};
```

View File

@ -375,3 +375,29 @@ window.$docsify = {
noCompileLinks: ['/foo', '/bar/.*']
};
```
## requestHeaders
* type: `Object`
Set the request resource headers.
```js
window.$docsify = {
requestHeaders: {
'x-token': 'xxx'
}
};
```
## ext
* type: `String`
Request file extension.
```js
window.$docsify = {
ext: '.md'
};
```

View File

@ -387,3 +387,29 @@ window.$docsify = {
noCompileLinks: ['/foo', '/bar/.*']
};
```
## requestHeaders
* type: `Object`
设置请求资源的请求头。
```js
window.$docsify = {
requestHeaders: {
'x-token': 'xxx'
}
};
```
## ext
* type: `String`
资源的文件扩展名。
```js
window.$docsify = {
ext: '.md'
};
```