From 63b61b0c1a790b0d46bb0c87bd74813bc87d2f94 Mon Sep 17 00:00:00 2001 From: Koy Date: Tue, 6 Oct 2020 15:10:02 +0800 Subject: [PATCH] [update docs] add `crossOriginLinks` configurations details. --- 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: