From cb900a68e5930cceb0df64eea2b2d1969852985c Mon Sep 17 00:00:00 2001 From: "qingwei.li" Date: Sun, 11 Feb 2018 20:15:04 +0800 Subject: [PATCH] docs: add requestHeaders and ext --- docs/configuration.md | 26 +++++++++++++++++++++++++- docs/de-de/configuration.md | 26 ++++++++++++++++++++++++++ docs/zh-cn/configuration.md | 26 ++++++++++++++++++++++++++ 3 files changed, 77 insertions(+), 1 deletion(-) diff --git a/docs/configuration.md b/docs/configuration.md index 4d26d0d6..7c0f0e7a 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -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' +}; +``` diff --git a/docs/de-de/configuration.md b/docs/de-de/configuration.md index 33e39674..076c015d 100644 --- a/docs/de-de/configuration.md +++ b/docs/de-de/configuration.md @@ -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' +}; +``` diff --git a/docs/zh-cn/configuration.md b/docs/zh-cn/configuration.md index 6c807f57..ef80b9f7 100644 --- a/docs/zh-cn/configuration.md +++ b/docs/zh-cn/configuration.md @@ -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' +}; +```