11<!DOCTYPE html>
22< html lang ="en ">
3+
34< head >
45 < meta charset ="UTF-8 ">
56 < title > LeetCode、剑指Offer、程序员面试金典题解</ title >
67 < 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 ">
810 < 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 ">
1013 < link rel ="stylesheet " href ="//cdn.jsdelivr.net/npm/docsify/lib/themes/vue.css ">
1114 < link rel ="stylesheet " href ="//cdn.jsdelivr.net/npm/docsify-dark-mode@0.6.1/dist/style.css " />
1215 < link rel ="icon " type ="image/png " sizes ="32x32 " href ="images/favicon-32x32.png ">
3336 name : 'leetcode' ,
3437 logo : '/images/doocs-leetcode.png' ,
3538 search : [
36- '/' , '/solution/' , '/lcof/' , '/lcci/' , '/basic/'
39+ '/' , '/solution/' , '/lcof/' , '/lcci/' , '/basic/'
3740 ] ,
3841 loadSidebar : 'summary.md' ,
3942 auto2top : true ,
6669 function ( hook , vm ) {
6770 hook . beforeEach ( function ( html ) {
6871 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
7676
7777 const github = `[GitHub](${ url } )`
7878 const gitee = `[Gitee](${ url . replace ( "github" , "gitee" ) } )`
110110 < script src ="//cdn.jsdelivr.net/npm/docsify-tabs@1 "> </ script >
111111 < script src ="//cdn.jsdelivr.net/npm/docsify-pagination/dist/docsify-pagination.min.js "> </ script >
112112</ body >
113- </ html >
113+
114+ </ html >
0 commit comments