parent
d6d01e8581
commit
83c002300c
|
|
@ -107,6 +107,19 @@ export default {
|
||||||
+ path
|
+ 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)
|
const base = outboundRE.test(docsRepo)
|
||||||
? docsRepo
|
? docsRepo
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue