File tree 2 files changed +10
-2
lines changed
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 32
32
'.*?/awesome' : 'https://raw.githubusercontent.com/docsifyjs/awesome-docsify/master/README.md' ,
33
33
'.*?/changelog' : 'https://raw.githubusercontent.com/docsifyjs/docsify/master/CHANGELOG.md' ,
34
34
'/.*/_navbar.md' : '/_navbar.md' ,
35
- '/zh-cn/(.*)' : 'https://cdn.jsdelivr.net/gh/docsifyjs/docs-zh/$1' ,
35
+ '/zh-cn/(.*)' : 'https://cdn.jsdelivr.net/gh/docsifyjs/docs-zh@master /$1' ,
36
36
'/de-de/(.*)' : 'https://raw.githubusercontent.com/docsifyjs/docs-de/master/$1' ,
37
37
'/ru/(.*)' : 'https://raw.githubusercontent.com/docsifyjs/docs-ru/master/$1' ,
38
38
'/es/(.*)' : 'https://raw.githubusercontent.com/docsifyjs/docs-es/master/$1'
77
77
url = vm . route . file
78
78
. replace ( 'raw.githubusercontent.com' , 'github.com' )
79
79
. replace ( / \/ m a s t e r / , '/blob/master' )
80
+ } else if ( / j s d e l i v r \. n e t / . test ( vm . route . file ) ) {
81
+ url = vm . route . file
82
+ . replace ( 'cdn.jsdelivr.net/gh' , 'github.com' )
83
+ . replace ( '@master' , '/blob/master' )
80
84
} else {
81
85
url = 'https://github.com/docsifyjs/docsify/blob/master/docs/' + vm . route . file
82
86
}
Original file line number Diff line number Diff line change 24
24
'.*?/awesome' : 'https://raw.githubusercontent.com/docsifyjs/awesome-docsify/master/README.md' ,
25
25
'.*?/changelog' : 'https://raw.githubusercontent.com/docsifyjs/docsify/master/CHANGELOG.md' ,
26
26
'/.*/_navbar.md' : '/_navbar.md' ,
27
- '/zh-cn/(.*)' : 'https://cdn.jsdelivr.net/gh/docsifyjs/docs-zh/$1' ,
27
+ '/zh-cn/(.*)' : 'https://cdn.jsdelivr.net/gh/docsifyjs/docs-zh@master /$1' ,
28
28
'/de-de/(.*)' : 'https://raw.githubusercontent.com/docsifyjs/docs-de/master/$1' ,
29
29
'/ru/(.*)' : 'https://raw.githubusercontent.com/docsifyjs/docs-ru/master/$1' ,
30
30
'/es/(.*)' : 'https://raw.githubusercontent.com/docsifyjs/docs-es/master/$1'
60
60
url = vm . route . file
61
61
. replace ( 'raw.githubusercontent.com' , 'github.com' )
62
62
. replace ( / \/ m a s t e r / , '/blob/master' )
63
+ } else if ( / j s d e l i v r \. n e t / . test ( vm . route . file ) ) {
64
+ url = vm . route . file
65
+ . replace ( 'cdn.jsdelivr.net/gh' , 'github.com' )
66
+ . replace ( '@master' , '/blob/master' )
63
67
} else {
64
68
url = 'https://github.com/docsifyjs/docsify/blob/master/docs/' + vm . route . file
65
69
}
You can’t perform that action at this time.
0 commit comments