File tree 3 files changed +10
-8
lines changed
3 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 62
62
'/' : 'Search'
63
63
}
64
64
} ,
65
- formatUpdated : '{MM}/{DD} {HH}:{mm}' ,
66
65
plugins : [
67
66
function ( hook , vm ) {
68
67
hook . beforeEach ( function ( html ) {
Original file line number Diff line number Diff line change 9
9
< link rel ="stylesheet " href ="/themes/vue.css " title ="vue ">
10
10
< link rel ="stylesheet " href ="/themes/dark.css " title ="dark " disabled >
11
11
< link rel ="stylesheet " href ="/themes/buble.css " title ="buble " disabled >
12
+ < link rel ="stylesheet " href ="/themes/pure.css " title ="pure " disabled >
12
13
< style >
13
14
nav .app-nav li ul {
14
15
min-width : 100px ;
52
53
'/' : 'Search'
53
54
}
54
55
} ,
55
- formatUpdated : '{MM}/{DD} {HH}:{mm}' ,
56
56
plugins : [
57
57
function ( hook , vm ) {
58
58
hook . beforeEach ( function ( html ) {
68
68
url = 'https://github.com/docsifyjs/docsify/blob/master/docs/' + vm . route . file
69
69
}
70
70
var editHtml = '[:memo: Edit Document](' + url + ')\n'
71
-
72
71
return editHtml
73
72
+ html
74
73
+ '\n\n----\n\n'
82
81
< script src ="/lib/plugins/search.js "> </ script >
83
82
< script src ="/lib/plugins/emoji.js "> </ script >
84
83
< script src ="/lib/plugins/front-matter.js "> </ script >
85
- < script src ="//unpkg.com/prismjs/components/prism-bash.min.js "> </ script >
86
- < script src ="//unpkg.com/prismjs/components/prism-markdown.min.js "> </ script >
87
- < script src ="//unpkg.com/prismjs/components/prism-nginx.min.js "> </ script >
84
+ < script src ="//cdn.jsdelivr.net/npm/prismjs/components/prism-bash.min.js "> </ script >
85
+ < script src ="//cdn.jsdelivr.net/npm/prismjs/components/prism-markdown.min.js "> </ script >
86
+ < script src ="//cdn.jsdelivr.net/npm/prismjs/components/prism-nginx.min.js "> </ script >
87
+ < script src ="//cdn.jsdelivr.net/npm/prismjs/components/prism-php.min.js "> </ script >
88
88
</ body >
89
89
90
90
</ html >
Original file line number Diff line number Diff line change @@ -79,9 +79,12 @@ function highlight(path) {
79
79
const isInView =
80
80
active . offsetTop >= wrap . scrollTop && cur <= wrap . scrollTop + height ;
81
81
const notThan = cur - curOffset < height ;
82
- const top = isInView ? wrap . scrollTop : notThan ? curOffset : cur - height ;
83
82
84
- sidebar . scrollTop = top ;
83
+ sidebar . scrollTop = isInView
84
+ ? wrap . scrollTop
85
+ : notThan
86
+ ? curOffset
87
+ : cur - height ;
85
88
}
86
89
}
87
90
You can’t perform that action at this time.
0 commit comments