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:
We can also use other formats, but it must expose basefilePathRelative variables so that users can "resolve" final path to make a further judgement if necessary.
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:
In this case, any links that is under
/api/
should be marked external, however, the linksPlugin usesisLinkExternal
from@vuepress/shared
directly here:https://github.com/vuepress/core/blob/eaa97e6f5057861c79ce275432d0de61c962c1c5/packages/markdown/src/plugins/linksPlugin/linksPlugin.ts#L76
Suggested solution
Provide a
isExternal
option: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