Permalink
Browse files

fix(docs.vue): Fix link to edit setup doc (#641)

* fix(docs.vue): Fix link to edit setup

Fixes  #639

"Edit this page" link broken for /docs/setup

* fix(docs.vue): Handle edit this page for paths ending in /

* fix(docs.vue): Special case for /docs/contributing
  • Loading branch information...
tmorehouse authored and pi0 committed Jul 5, 2017
1 parent 0998df8 commit 836db334861846006a7d0cbf1498dc0e14d5be42
Showing with 6 additions and 0 deletions.
  1. +6 −0 docs/nuxt/layouts/docs.vue
@@ -44,6 +44,12 @@ export default {
let path = this.$route.path;
if (path === '/') {
path = '';
} else if (path === '/docs/setup') {
return base + '/docs/SETUP.md';
} else if (path === '/docs/contributing') {
return base + '/CONTRIBUTING.md';
} else if (/\/$/.test(path)) {
return base + path;
}
return base + path + '/README.md';
},

0 comments on commit 836db33

Please sign in to comment.