Skip to content

Commit

Permalink
fix: update edit button demo
Browse files Browse the repository at this point in the history
  • Loading branch information
QingWei-Li committed May 30, 2017
1 parent 036fdac commit ec887c1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/de-de/write-a-plugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/write-a-plugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/zh-cn/write-a-plugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ec887c1

Please sign in to comment.