Commit 036fdac 1 parent a64cee1 commit 036fdac Copy full SHA for 036fdac
File tree 3 files changed +72
-0
lines changed
3 files changed +72
-0
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,8 @@ window.$docsify = {
47
47
48
48
## Beispiel
49
49
50
+ ### footer
51
+
50
52
Füge jeder Seite eine footer Komponente hinzu:
51
53
52
54
``` js
@@ -68,3 +70,25 @@ window.$docsify = {
68
70
]
69
71
}
70
72
```
73
+
74
+
75
+ ### Edit Button
76
+
77
+ ``` js
78
+ window .$docsify = {
79
+ plugins: [
80
+ function (hook , vm ) {
81
+ hook .beforeEach (function (html ) {
82
+ var url = ' https://github.com/QingWei-Li/docsify/blob/master' + vm .router .getFile ()
83
+ var editHtml = ' [📝 EDIT DOCUMENT](' + url + ' )\n '
84
+
85
+ return editHtml
86
+ + html
87
+ + ' \n ----\n '
88
+ + ' Last modified {docsify-updated} '
89
+ + editHtml
90
+ })
91
+ }
92
+ ]
93
+ }
94
+ ```
Original file line number Diff line number Diff line change @@ -47,6 +47,8 @@ window.$docsify = {
47
47
48
48
## Example
49
49
50
+ #### footer
51
+
50
52
Add footer component in each pages.
51
53
52
54
``` js
@@ -68,3 +70,24 @@ window.$docsify = {
68
70
]
69
71
}
70
72
```
73
+
74
+ ### Edit Button
75
+
76
+ ``` js
77
+ window .$docsify = {
78
+ plugins: [
79
+ function (hook , vm ) {
80
+ hook .beforeEach (function (html ) {
81
+ var url = ' https://github.com/QingWei-Li/docsify/blob/master' + vm .router .getFile ()
82
+ var editHtml = ' [📝 EDIT DOCUMENT](' + url + ' )\n '
83
+
84
+ return editHtml
85
+ + html
86
+ + ' \n ----\n '
87
+ + ' Last modified {docsify-updated} '
88
+ + editHtml
89
+ })
90
+ }
91
+ ]
92
+ }
93
+ ```
Original file line number Diff line number Diff line change @@ -46,6 +46,9 @@ window.$docsify = {
46
46
47
47
## 例子
48
48
49
+
50
+ ### footer
51
+
49
52
给每个页面的末尾加上 ` footer `
50
53
51
54
``` js
@@ -66,4 +69,26 @@ window.$docsify = {
66
69
}
67
70
]
68
71
}
72
+ ```
73
+
74
+
75
+ ### Edit Button
76
+
77
+ ``` js
78
+ window .$docsify = {
79
+ plugins: [
80
+ function (hook , vm ) {
81
+ hook .beforeEach (function (html ) {
82
+ var url = ' https://github.com/QingWei-Li/docsify/blob/master' + vm .router .getFile ()
83
+ var editHtml = ' [📝 EDIT DOCUMENT](' + url + ' )\n '
84
+
85
+ return editHtml
86
+ + html
87
+ + ' \n ----\n '
88
+ + ' Last modified {docsify-updated} '
89
+ + editHtml
90
+ })
91
+ }
92
+ ]
93
+ }
69
94
```
You can’t perform that action at this time.
0 commit comments