Skip to content

Commit

Permalink
Merge pull request #624 from bwcx-jzy/patch-2
Browse files Browse the repository at this point in the history
feat:page edit 支持 gitee.com
  • Loading branch information
xugaoyi authored Jul 31, 2022
2 parents d6d01e8 + 83c0023 commit ed4be73
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions vdoing/components/PageEdit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,19 @@ export default {
+ path
)
}
// https://gitee.com/-/ide/project/xxx/xxx/edit/master/-/xxxx
const gitee = /gitee.com/
if (gitee.test(docsRepo)) {
const base = docsRepo
return (
base.replace(gitee, 'gitee.com/-/ide/project')
+ `/edit`
+ `/${docsBranch}/-/`
+ (docsDir ? docsDir.replace(endingSlashRE, '') + '/' : '')
+ path
)
}
const base = outboundRE.test(docsRepo)
? docsRepo
Expand Down

1 comment on commit ed4be73

@vercel
Copy link

@vercel vercel bot commented on ed4be73 Jul 31, 2022

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.