From ec887c1b5fdf977738efb6398e8d13d80a18c92e Mon Sep 17 00:00:00 2001 From: "qingwei.li" Date: Tue, 30 May 2017 20:17:17 +0800 Subject: [PATCH] fix: update edit button demo --- docs/de-de/write-a-plugin.md | 2 +- docs/index.html | 2 +- docs/write-a-plugin.md | 2 +- docs/zh-cn/write-a-plugin.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/de-de/write-a-plugin.md b/docs/de-de/write-a-plugin.md index 9450c86..916edde 100644 --- a/docs/de-de/write-a-plugin.md +++ b/docs/de-de/write-a-plugin.md @@ -79,7 +79,7 @@ window.$docsify = { plugins: [ function(hook, vm) { hook.beforeEach(function (html) { - var url = 'https://github.com/QingWei-Li/docsify/blob/master' + vm.router.getFile() + var url = 'https://github.com/QingWei-Li/docsify/blob/master/docs' + vm.router.getFile() var editHtml = '[📝 EDIT DOCUMENT](' + url + ')\n' return editHtml diff --git a/docs/index.html b/docs/index.html index 0ed1f63..0817b68 100644 --- a/docs/index.html +++ b/docs/index.html @@ -53,7 +53,7 @@ plugins: [ function(hook, vm) { hook.beforeEach(function (html) { - var url = 'https://github.com/QingWei-Li/docsify/blob/master' + vm.router.getFile() + var url = 'https://github.com/QingWei-Li/docsify/blob/master/docs' + vm.router.getFile() var editHtml = '[📝 EDIT DOCUMENT](' + url + ')\n' return editHtml diff --git a/docs/write-a-plugin.md b/docs/write-a-plugin.md index df5fec0..93c5f6d 100644 --- a/docs/write-a-plugin.md +++ b/docs/write-a-plugin.md @@ -78,7 +78,7 @@ window.$docsify = { plugins: [ function(hook, vm) { hook.beforeEach(function (html) { - var url = 'https://github.com/QingWei-Li/docsify/blob/master' + vm.router.getFile() + var url = 'https://github.com/QingWei-Li/docsify/blob/master/docs' + vm.router.getFile() var editHtml = '[📝 EDIT DOCUMENT](' + url + ')\n' return editHtml diff --git a/docs/zh-cn/write-a-plugin.md b/docs/zh-cn/write-a-plugin.md index 1608e29..5fd3119 100644 --- a/docs/zh-cn/write-a-plugin.md +++ b/docs/zh-cn/write-a-plugin.md @@ -79,7 +79,7 @@ window.$docsify = { plugins: [ function(hook, vm) { hook.beforeEach(function (html) { - var url = 'https://github.com/QingWei-Li/docsify/blob/master' + vm.router.getFile() + var url = 'https://github.com/QingWei-Li/docsify/blob/master/docs' + vm.router.getFile() var editHtml = '[📝 EDIT DOCUMENT](' + url + ')\n' return editHtml