Skip to content

Commit ec887c1

Browse files
committed
fix: update edit button demo
1 parent 036fdac commit ec887c1

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

β€Ždocs/de-de/write-a-plugin.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ window.$docsify = {
7979
plugins: [
8080
function(hook, vm) {
8181
hook.beforeEach(function (html) {
82-
var url = 'https://github.com/QingWei-Li/docsify/blob/master' + vm.router.getFile()
82+
var url = 'https://github.com/QingWei-Li/docsify/blob/master/docs' + vm.router.getFile()
8383
var editHtml = '[πŸ“ EDIT DOCUMENT](' + url + ')\n'
8484

8585
return editHtml

β€Ždocs/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
plugins: [
5454
function(hook, vm) {
5555
hook.beforeEach(function (html) {
56-
var url = 'https://github.com/QingWei-Li/docsify/blob/master' + vm.router.getFile()
56+
var url = 'https://github.com/QingWei-Li/docsify/blob/master/docs' + vm.router.getFile()
5757
var editHtml = '[πŸ“ EDIT DOCUMENT](' + url + ')\n'
5858

5959
return editHtml

β€Ždocs/write-a-plugin.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ window.$docsify = {
7878
plugins: [
7979
function(hook, vm) {
8080
hook.beforeEach(function (html) {
81-
var url = 'https://github.com/QingWei-Li/docsify/blob/master' + vm.router.getFile()
81+
var url = 'https://github.com/QingWei-Li/docsify/blob/master/docs' + vm.router.getFile()
8282
var editHtml = '[πŸ“ EDIT DOCUMENT](' + url + ')\n'
8383

8484
return editHtml

β€Ždocs/zh-cn/write-a-plugin.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ window.$docsify = {
7979
plugins: [
8080
function(hook, vm) {
8181
hook.beforeEach(function (html) {
82-
var url = 'https://github.com/QingWei-Li/docsify/blob/master' + vm.router.getFile()
82+
var url = 'https://github.com/QingWei-Li/docsify/blob/master/docs' + vm.router.getFile()
8383
var editHtml = '[πŸ“ EDIT DOCUMENT](' + url + ')\n'
8484

8585
return editHtml

0 commit comments

Comments
Β (0)