11<!DOCTYPE html>
22< html lang ="en ">
3- < head >
4- < meta charset ="UTF-8 " />
5- < title > Notes</ title >
6- < meta http-equiv ="X-UA-Compatible " content ="IE=edge,chrome=1 " />
7- < meta name ="description " content ="coding-interview " />
8- < meta
9- name ="viewport "
10- content ="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0 "
11- />
12- < link
13- rel ="stylesheet "
14- href ="//cdn.jsdelivr.net/npm/docsify/lib/themes/vue.css "
15- />
16- < link
17- rel ="stylesheet "
18- href ="//cdn.jsdelivr.net/npm/docsify-dark-mode@0.6.1/dist/style.css "
19- />
20- < link
21- rel ="icon "
22- type ="image/png "
23- sizes ="32x32 "
24- href ="images/favicon-32x32.png?v=5.1.4 "
25- />
26- < link
27- rel ="icon "
28- type ="image/png "
29- sizes ="16x16 "
30- href ="images/favicon-16x16.png?v=5.1.4 "
31- />
32- </ head >
33- < body >
34- < div id ="app "> Welcome to Coding-Interview</ div >
35- < script >
36- window . $docsify = {
37- name : "coding-interview" ,
38- maxLevel : 3 ,
39- auto2top : true ,
40- coverpage : true ,
41- loadNavbar : true ,
42- mergeNavbar : true ,
43- search : [
44- "/" ,
45- "/docs/coding-interview" ,
46- "/docs/the-beauty-of-programming" ,
47- ] ,
48- darkMode : {
49- light : {
50- toggleBtnBg : "#42b983" ,
51- } ,
3+
4+ < head >
5+ < meta charset ="UTF-8 " />
6+ < title > Notes</ title >
7+ < meta http-equiv ="X-UA-Compatible " content ="IE=edge,chrome=1 " />
8+ < meta name ="description " content ="coding-interview " />
9+ < meta name ="viewport "
10+ content ="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0 " />
11+ < link rel ="stylesheet " href ="//cdn.jsdelivr.net/npm/docsify/lib/themes/vue.css " />
12+ < link rel ="stylesheet " href ="//cdn.jsdelivr.net/npm/docsify-dark-mode@0.6.1/dist/style.css " />
13+ < link rel ="icon " type ="image/png " sizes ="32x32 " href ="images/favicon-32x32.png?v=5.1.4 " />
14+ < link rel ="icon " type ="image/png " sizes ="16x16 " href ="images/favicon-16x16.png?v=5.1.4 " />
15+ </ head >
16+
17+ < body >
18+ < div id ="app "> Welcome to Coding-Interview</ div >
19+ < script >
20+ window . $docsify = {
21+ name : "coding-interview" ,
22+ maxLevel : 3 ,
23+ auto2top : true ,
24+ coverpage : true ,
25+ loadNavbar : true ,
26+ mergeNavbar : true ,
27+ search : [
28+ "/" ,
29+ "/docs/coding-interview" ,
30+ "/docs/the-beauty-of-programming" ,
31+ ] ,
32+ darkMode : {
33+ light : {
34+ toggleBtnBg : "#42b983" ,
5235 } ,
53- plugins : [
54- function ( hook , vm ) {
55- hook . beforeEach ( function ( content ) {
56- const en = vm . route . file . indexOf ( "README_EN" ) > - 1 ;
57- 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 ) ) {
58- url = vm . route . file
59- . replace ( "raw.githubusercontent.com" , "github.com" )
60- . replace ( / \/ m a i n / , "/blob/main" ) ;
61- } else {
62- url =
63- "https://github.com/doocs/coding-interview/blob/main/" +
64- vm . route . file ;
65- }
36+ } ,
37+ plugins : [
38+ function ( hook , vm ) {
39+ hook . beforeEach ( function ( content ) {
40+ const en = vm . route . file . indexOf ( "README_EN" ) > - 1 ;
41+ 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 ) ) {
42+ url = vm . route . file
43+ . replace ( "raw.githubusercontent.com" , "github.com" )
44+ . replace ( / \/ m a i n / , "/blob/main" ) ;
45+ } else {
46+ url =
47+ "https://github.com/doocs/coding-interview/blob/main/" +
48+ vm . route . file ;
49+ }
6650
67- const github = `[GitHub](${ url } )` ;
68- const gitee = `[Gitee](${ url . replace ( "github" , "gitee" ) } )` ;
51+ const github = `[GitHub](${ url } )` ;
52+ const gitee = `[Gitee](${ url . replace ( "github" , "gitee" ) } )` ;
6953
70- const editHtml = en
71- ? `:memo: Edit on ${ github } / ${ gitee } \n`
72- : `:memo: 在 ${ github } / ${ gitee } 编辑\n` ;
54+ const editHtml = en
55+ ? `:memo: Edit on ${ github } / ${ gitee } \n`
56+ : `:memo: 在 ${ github } / ${ gitee } 编辑\n` ;
7357
74- if ( vm . route . path == "/" ) {
75- return editHtml + content ;
76- }
77- const subscription = `
58+ if ( vm . route . path == "/" ) {
59+ return editHtml + content ;
60+ }
61+ const subscription = `
7862## 公众号
7963
8064[Doocs](https://github.com/doocs) 技术社区旗下唯一公众号「**Doocs开源社区**」,欢迎扫码关注,**专注分享技术领域相关知识及业内最新资讯**。当然,也可以加我个人微信(备注:GitHub),拉你进技术交流群。
9680 </tr>
9781</table>
9882 ` ;
99- return editHtml + content + `\n` + subscription ;
100- } ) ;
83+ return editHtml + content + `\n` + subscription ;
84+ } ) ;
85+
86+ hook . afterEach ( function ( html ) {
87+ const footer = [
88+ "<footer>" ,
89+ '<span>Copyright © 2018-2021 <a href="https://github.com/doocs" target="_blank">Doocs</a>. All rights reserved.' ,
90+ "</footer>" ,
91+ ] . join ( "" ) ;
92+ return html + footer ;
93+ } ) ;
94+ } ,
95+ ] ,
96+ } ;
97+ </ script >
98+ < script src ="//cdn.jsdelivr.net/npm/docsify/lib/docsify.min.js "> </ script >
99+ < script src ="//cdn.jsdelivr.net/npm/prismjs/components/prism-c.min.js "> </ script >
100+ < script src ="//cdn.jsdelivr.net/npm/prismjs/components/prism-bash.min.js "> </ script >
101+ < script src ="//cdn.jsdelivr.net/npm/prismjs/components/prism-cpp.min.js "> </ script >
102+ < script src ="//cdn.jsdelivr.net/npm/prismjs/components/prism-java.min.js "> </ script >
103+ < script src ="//cdn.jsdelivr.net/npm/prismjs/components/prism-python.min.js "> </ script >
104+ < script src ="//cdn.jsdelivr.net/npm/docsify-copy-code "> </ script >
105+ < script src ="//cdn.jsdelivr.net/npm/docsify/lib/plugins/search.js "> </ script >
106+ < script src ="//cdn.jsdelivr.net/npm/docsify/lib/plugins/emoji.js "> </ script >
107+ < script src ="//cdn.jsdelivr.net/npm/docsify/lib/plugins/zoom-image.js "> </ script >
108+ < script src ="//cdn.jsdelivr.net/npm/docsify-dark-mode@0.6.1/dist/index.js "> </ script >
109+ </ body >
101110
102- hook . afterEach ( function ( html ) {
103- const footer = [
104- "<footer>" ,
105- '<span>Copyright © 2018-2020 <a href="https://github.com/doocs" target="_blank">Doocs</a>. All rights reserved.' ,
106- "</footer>" ,
107- ] . join ( "" ) ;
108- return html + footer ;
109- } ) ;
110- } ,
111- ] ,
112- } ;
113- </ script >
114- < script src ="//cdn.jsdelivr.net/npm/docsify/lib/docsify.min.js "> </ script >
115- < script src ="//cdn.jsdelivr.net/npm/prismjs/components/prism-c.min.js "> </ script >
116- < script src ="//cdn.jsdelivr.net/npm/prismjs/components/prism-bash.min.js "> </ script >
117- < script src ="//cdn.jsdelivr.net/npm/prismjs/components/prism-cpp.min.js "> </ script >
118- < script src ="//cdn.jsdelivr.net/npm/prismjs/components/prism-java.min.js "> </ script >
119- < script src ="//cdn.jsdelivr.net/npm/prismjs/components/prism-python.min.js "> </ script >
120- < script src ="//cdn.jsdelivr.net/npm/docsify-copy-code "> </ script >
121- < script src ="//cdn.jsdelivr.net/npm/docsify/lib/plugins/search.js "> </ script >
122- < script src ="//cdn.jsdelivr.net/npm/docsify/lib/plugins/emoji.js "> </ script >
123- < script src ="//cdn.jsdelivr.net/npm/docsify/lib/plugins/zoom-image.js "> </ script >
124- < script src ="//cdn.jsdelivr.net/npm/docsify-dark-mode@0.6.1/dist/index.js "> </ script >
125- </ body >
126- </ html >
111+ </ html >
0 commit comments