fix github edit link

This commit is contained in:
Hans Pagel
2020-09-21 17:17:28 +02:00
parent ece9d0a554
commit c6c03f72b4

View File

@@ -107,15 +107,10 @@ export default {
return this.$route.matched[0].path return this.$route.matched[0].path
}, },
editLink () { editLink () {
let path = this.currentPath const currentPath = this.currentPath
const filePath = currentPath === '' ? '/introduction' : currentPath
if (path === '') { return `https://github.com/ueberdosis/tiptap-next/blob/main/docs/src/docPages${filePath}.md`
path = 'docs/src/pages/Index.vue'
} else {
path = `docs/src/docPages${path}.md`
}
return `https://github.com/ueberdosis/tiptap-next/blob/main/${path}`
}, },
}, },