File tree 2 files changed +18
-4
lines changed
2 files changed +18
-4
lines changed Original file line number Diff line number Diff line change 34
34
formatUpdated : '{MM}/{DD} {HH}:{mm}' ,
35
35
routerMode : 'history' ,
36
36
plugins : [
37
- function ( hook ) {
37
+ function ( hook , vm ) {
38
38
hook . beforeEach ( function ( html ) {
39
- return html += '\n> Last modified {docsify-updated}'
39
+ var url = 'https://github.com/QingWei-Li/docsify/blob/master' + vm . router . getFile ( )
40
+ var editHtml = '[📝 EDIT DOCUMENT](' + url + ')\n'
41
+
42
+ return editHtml
43
+ + html
44
+ + '\n----\n'
45
+ + 'Last modified {docsify-updated} '
46
+ + editHtml
40
47
} )
41
48
}
42
49
]
Original file line number Diff line number Diff line change 51
51
} ,
52
52
formatUpdated : '{MM}/{DD} {HH}:{mm}' ,
53
53
plugins : [
54
- function ( hook ) {
54
+ function ( hook , vm ) {
55
55
hook . beforeEach ( function ( html ) {
56
- return html += '\n> Last modified {docsify-updated}'
56
+ var url = 'https://github.com/QingWei-Li/docsify/blob/master' + vm . router . getFile ( )
57
+ var editHtml = '[📝 EDIT DOCUMENT](' + url + ')\n'
58
+
59
+ return editHtml
60
+ + html
61
+ + '\n----\n'
62
+ + 'Last modified {docsify-updated} '
63
+ + editHtml
57
64
} )
58
65
}
59
66
]
You can’t perform that action at this time.
0 commit comments