Open
Description
Feature request
What problem does this feature solve?
Our team uses VuePress for our internal documentation site. Our repo needs to be hosted on Azure Repos, not GitHub or Bitbucket. The current default theme doesn't have the Azure Repos url pattern. I'd like to add it to the default theme.
What does the proposed API look like?
How should this be implemented in your opinion?
const azurerepos = /dev\.azure\.com|\w+\.visualstudio\.com/
if (azurerepos.test(repo)) {
const base = outboundRE.test(docsRepo) ? docsRepo : repo
return (
base.replace(endingSlashRE, '')
+ `?path=`
+ (docsDir ? docsDir.replace(endingSlashRE, '') + '/' : '')
+ path
+ `&version=GBmaster`
)
}
Are you willing to work on this yourself?
Yes
#1960