Skip to content

Commit 0ef6aa8

Browse files
authored
docs: add crossOriginLinks configurations details. (#1386)
1 parent 4742660 commit 0ef6aa8

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

Diff for: docs/configuration.md

+13
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,19 @@ window.$docsify = {
493493
};
494494
```
495495

496+
## crossOriginLinks
497+
- type: `Array`
498+
499+
When `routerMode: 'history'`, you may face the cross-origin issues, See [#1379](https://github.com/docsifyjs/docsify/issues/1379).
500+
In Markdown content, there is a simple way to solve it, see extends Markdown syntax `Cross-Origin link` in [helpers](helpers.md).
501+
```js
502+
window.$docsify = {
503+
crossOriginLinks:[
504+
"https://example.com/cross-origin-link",
505+
],
506+
};
507+
```
508+
496509
## noCompileLinks
497510

498511
- type: `Array`

Diff for: docs/helpers.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ docsify extends Markdown syntax to make your documents more readable.
44

55
> Note: For the special code syntax cases, you'd better put them within a code backticks to avoid any conflicting from configurations or emojis.
66
7-
## important content
7+
## Important content
88

99
Important content like:
1010

0 commit comments

Comments
 (0)