1
1
<!DOCTYPE html>
2
2
< html lang ="en ">
3
+
3
4
< head >
4
5
< meta charset ="UTF-8 ">
5
6
< title > LeetCode、剑指Offer、程序员面试金典题解</ title >
6
7
< meta http-equiv ="X-UA-Compatible " content ="IE=edge,chrome=1 " />
7
- < meta name ="keywords " content ="doc,docs,doocs,documentation,github,gitee,coding,pages,leetcode,coding-interview,cracking-the-coding-interview,yanglbme ">
8
+ < meta name ="keywords "
9
+ content ="doc,docs,doocs,documentation,github,gitee,coding,pages,leetcode,coding-interview,cracking-the-coding-interview,yanglbme ">
8
10
< meta name ="description " content ="LeetCode、剑指Offer、程序员面试金典题解 ">
9
- < meta name ="viewport " content ="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0 ">
11
+ < meta name ="viewport "
12
+ content ="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0 ">
10
13
< link rel ="stylesheet " href ="//cdn.jsdelivr.net/npm/docsify/lib/themes/vue.css ">
11
14
< link rel ="
stylesheet "
href ="
//cdn.jsdelivr.net/npm/[email protected] /dist/style.css "
/>
12
15
< link rel ="icon " type ="image/png " sizes ="32x32 " href ="images/favicon-32x32.png ">
33
36
name : 'leetcode' ,
34
37
logo : '/images/doocs-leetcode.png' ,
35
38
search : [
36
- '/' , '/solution/' , '/lcof/' , '/lcci/' , '/basic/'
39
+ '/' , '/solution/' , '/lcof/' , '/lcci/' , '/basic/'
37
40
] ,
38
41
loadSidebar : 'summary.md' ,
39
42
auto2top : true ,
66
69
function ( hook , vm ) {
67
70
hook . beforeEach ( function ( html ) {
68
71
const en = vm . route . file . indexOf ( 'README_EN' ) > - 1
69
- if ( / g i t h u b u s e r c o n t e n t \. c o m / . test ( vm . route . file ) ) {
70
- url = vm . route . file
71
- . replace ( 'raw.githubusercontent.com' , 'github.com' )
72
- . replace ( / \/ m a i n / , '/blob/main' )
73
- } else {
74
- url = 'https://github.com/doocs/leetcode/blob/main/' + vm . route . file
75
- }
72
+ const userContent = / g i t h u b u s e r c o n t e n t \. c o m / . test ( vm . route . file )
73
+ const url = userContent ? vm . route . file
74
+ . replace ( 'raw.githubusercontent.com' , 'github.com' )
75
+ . replace ( / \/ m a i n / , '/blob/main' ) : 'https://github.com/doocs/leetcode/blob/main/' + vm . route . file
76
76
77
77
const github = `[GitHub](${ url } )`
78
78
const gitee = `[Gitee](${ url . replace ( "github" , "gitee" ) } )`
110
110
< script src ="//cdn.jsdelivr.net/npm/docsify-tabs@1 "> </ script >
111
111
< script src ="//cdn.jsdelivr.net/npm/docsify-pagination/dist/docsify-pagination.min.js "> </ script >
112
112
</ body >
113
- </ html >
113
+
114
+ </ html >
0 commit comments