-
Notifications
You must be signed in to change notification settings - Fork 924
Closed
Description
Clear and concise description of the problem
In some cases, people may want to deploy multiple VuePress sites (or sites generated by other tools) in one directly.
For example:
- /: a vuepress site
- /api/: a site generated by typedoc
In this case, any links that is under /api/
should be marked external, however, the linksPlugin uses isLinkExternal
from @vuepress/shared
directly here:
if (isLinkExternal(hrefLink, base)) { |
Suggested solution
Provide a isExternal
option:
isExternal: (link: string, env: MarkdownEnv) => boolean
We can also use other formats, but it must expose base
filePathRelative
variables so that users can "resolve" final path to make a further judgement if necessary.
Alternative
No response
Additional context
No response
Metadata
Metadata
Assignees
Labels
No labels