Open chryw opened 4 years ago
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.
https://github.com/vuejs/vuepress/blob/master/packages/%40vuepress/theme-default/components/PageEdit.vue#L82
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` ) }
Yes
FYI @clocky
Would be nice to see this one implemented.
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?
https://github.com/vuejs/vuepress/blob/master/packages/%40vuepress/theme-default/components/PageEdit.vue#L82
Are you willing to work on this yourself?
Yes
1960