docs: add requestHeaders and ext
This commit is contained in:
parent
4bdcee2cb3
commit
cb900a68e5
3 changed files with 77 additions and 1 deletions
|
|
@ -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'
|
||||
};
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue