From 0ef6aa8ab320fc19468a99c369c36b09d2daa872 Mon Sep 17 00:00:00 2001 From: Koy Date: Thu, 8 Oct 2020 07:00:08 +0800 Subject: [PATCH] docs: add crossOriginLinks configurations details. (#1386) --- docs/configuration.md | 13 +++++++++++++ docs/helpers.md | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/docs/configuration.md b/docs/configuration.md index 1b2d04878..7a65553a3 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -493,6 +493,19 @@ window.$docsify = { }; ``` +## crossOriginLinks +- type: `Array` + +When `routerMode: 'history'`, you may face the cross-origin issues, See [#1379](https://github.com/docsifyjs/docsify/issues/1379). +In Markdown content, there is a simple way to solve it, see extends Markdown syntax `Cross-Origin link` in [helpers](helpers.md). +```js +window.$docsify = { + crossOriginLinks:[ + "https://example.com/cross-origin-link", + ], +}; +``` + ## noCompileLinks - type: `Array` diff --git a/docs/helpers.md b/docs/helpers.md index 4e8fba770..46ff81d32 100644 --- a/docs/helpers.md +++ b/docs/helpers.md @@ -4,7 +4,7 @@ docsify extends Markdown syntax to make your documents more readable. > Note: For the special code syntax cases, you'd better put them within a code backticks to avoid any conflicting from configurations or emojis. -## important content +## Important content Important content like: