docs(write-a-plugin): update demo

This commit is contained in:
qingwei.li
2017-05-31 08:39:01 +08:00
parent 1938fd5146
commit 20d60c401f
4 changed files with 9 additions and 3 deletions
+6
View File
@@ -1,5 +1,11 @@
# Changelog
## 4.1.8(since 4.1.1) / 2017-05-31
* fix(pure-css):add coverpage style, fixed #165
* feat: add edit button demo, close #162
* fix some ssr bugs
## 4.1.0 / 2017-05-30 🎂 to me
+1 -1
View File
@@ -79,7 +79,7 @@ window.$docsify = {
plugins: [
function(hook, vm) {
hook.beforeEach(function (html) {
var url = 'https://github.com/QingWei-Li/docsify/blob/master/docs' + vm.router.getFile()
var url = 'https://github.com/QingWei-Li/docsify/blob/master/docs' + vm.route.file
var editHtml = '[📝 EDIT DOCUMENT](' + url + ')\n'
return editHtml
+1 -1
View File
@@ -78,7 +78,7 @@ window.$docsify = {
plugins: [
function(hook, vm) {
hook.beforeEach(function (html) {
var url = 'https://github.com/QingWei-Li/docsify/blob/master/docs' + vm.router.getFile()
var url = 'https://github.com/QingWei-Li/docsify/blob/master/docs' + vm.route.file
var editHtml = '[📝 EDIT DOCUMENT](' + url + ')\n'
return editHtml
+1 -1
View File
@@ -79,7 +79,7 @@ window.$docsify = {
plugins: [
function(hook, vm) {
hook.beforeEach(function (html) {
var url = 'https://github.com/QingWei-Li/docsify/blob/master/docs' + vm.router.getFile()
var url = 'https://github.com/QingWei-Li/docsify/blob/master/docs' + vm.route.file
var editHtml = '[📝 EDIT DOCUMENT](' + url + ')\n'
return editHtml