Skip to content

Commit

Permalink
docs: add crossOriginLinks configurations details. (#1386)
Browse files Browse the repository at this point in the history
  • Loading branch information
Koooooo-7 committed Oct 7, 2020
1 parent 4742660 commit 0ef6aa8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
2 changes: 1 addition & 1 deletion docs/helpers.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down

1 comment on commit 0ef6aa8

@vercel
Copy link

@vercel vercel bot commented on 0ef6aa8 Oct 7, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.