|
|
|
@ -1,18 +1,38 @@
|
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html lang="en">
|
|
|
|
|
|
|
|
|
|
<head>
|
|
|
|
|
<meta charset="UTF-8" />
|
|
|
|
|
<title>读尽天下源码,心中自然无码</title>
|
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
|
|
|
|
<meta name="keywords" content="doc,docs,doocs,documentation,github,gitee,source-code-hunter,AmyliaY" />
|
|
|
|
|
<meta
|
|
|
|
|
name="keywords"
|
|
|
|
|
content="doc,docs,doocs,documentation,github,gitee,source-code-hunter,AmyliaY"
|
|
|
|
|
/>
|
|
|
|
|
<meta name="description" content="读尽天下源码,心中自然无码——源码猎人" />
|
|
|
|
|
<meta name="viewport"
|
|
|
|
|
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" />
|
|
|
|
|
<link rel="stylesheet" href="https://cdn-doocs.oss-cn-shenzhen.aliyuncs.com/npm/docsify/lib/themes/vue.css" />
|
|
|
|
|
<link rel="stylesheet" href="https://cdn-doocs.oss-cn-shenzhen.aliyuncs.com/npm/docsify-darklight-theme@latest/dist/style.min.css">
|
|
|
|
|
<link rel="icon" type="image/png" sizes="32x32" href="images/favicon-32x32.png" />
|
|
|
|
|
<link rel="icon" type="image/png" sizes="16x16" href="images/favicon-16x16.png" />
|
|
|
|
|
<meta
|
|
|
|
|
name="viewport"
|
|
|
|
|
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"
|
|
|
|
|
/>
|
|
|
|
|
<link
|
|
|
|
|
rel="stylesheet"
|
|
|
|
|
href="https://cdn-doocs.oss-cn-shenzhen.aliyuncs.com/npm/docsify/lib/themes/vue.css"
|
|
|
|
|
/>
|
|
|
|
|
<link
|
|
|
|
|
rel="stylesheet"
|
|
|
|
|
href="https://cdn-doocs.oss-cn-shenzhen.aliyuncs.com/npm/docsify-darklight-theme@latest/dist/style.min.css"
|
|
|
|
|
/>
|
|
|
|
|
<link
|
|
|
|
|
rel="icon"
|
|
|
|
|
type="image/png"
|
|
|
|
|
sizes="32x32"
|
|
|
|
|
href="images/favicon-32x32.png"
|
|
|
|
|
/>
|
|
|
|
|
<link
|
|
|
|
|
rel="icon"
|
|
|
|
|
type="image/png"
|
|
|
|
|
sizes="16x16"
|
|
|
|
|
href="images/favicon-16x16.png"
|
|
|
|
|
/>
|
|
|
|
|
<style>
|
|
|
|
|
.markdown-section code {
|
|
|
|
|
font-weight: 400;
|
|
|
|
@ -51,10 +71,10 @@
|
|
|
|
|
<div id="app">本系列知识由 Doocs 开源社区总结发布</div>
|
|
|
|
|
<script>
|
|
|
|
|
window.$docsify = {
|
|
|
|
|
name: "source-code-hunter",
|
|
|
|
|
name: 'source-code-hunter',
|
|
|
|
|
maxLevel: 3,
|
|
|
|
|
auto2top: true,
|
|
|
|
|
search: ["/"],
|
|
|
|
|
search: ['/'],
|
|
|
|
|
darklightTheme: {
|
|
|
|
|
defaultTheme: 'light',
|
|
|
|
|
siteFont: 'Source Sans Pro,Helvetica Neue,Arial,sans-serif',
|
|
|
|
@ -68,38 +88,38 @@
|
|
|
|
|
},
|
|
|
|
|
light: {
|
|
|
|
|
highlightColor: '#e96900',
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
contributors: {
|
|
|
|
|
repo: 'doocs/source-code-hunter',
|
|
|
|
|
ignores: ['/README.md'],
|
|
|
|
|
image: {
|
|
|
|
|
margin: '0.2em',
|
|
|
|
|
isRound: true
|
|
|
|
|
}
|
|
|
|
|
isRound: true,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
plugins: [
|
|
|
|
|
function (hook, vm) {
|
|
|
|
|
hook.beforeEach(function (content) {
|
|
|
|
|
const en = vm.route.file.indexOf("README_EN") > -1;
|
|
|
|
|
const en = vm.route.file.indexOf('README_EN') > -1;
|
|
|
|
|
if (/githubusercontent\.com/.test(vm.route.file)) {
|
|
|
|
|
url = vm.route.file
|
|
|
|
|
.replace("raw.githubusercontent.com", "github.com")
|
|
|
|
|
.replace(/\/main/, "/blob/main");
|
|
|
|
|
.replace('raw.githubusercontent.com', 'github.com')
|
|
|
|
|
.replace(/\/main/, '/blob/main');
|
|
|
|
|
} else {
|
|
|
|
|
url =
|
|
|
|
|
"https://github.com/doocs/source-code-hunter/blob/main/" +
|
|
|
|
|
'https://github.com/doocs/source-code-hunter/blob/main/' +
|
|
|
|
|
vm.route.file;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const github = `[GitHub](${url})`;
|
|
|
|
|
const gitee = `[Gitee](${url.replace("github", "gitee")})`;
|
|
|
|
|
const gitee = `[Gitee](${url.replace('github', 'gitee')})`;
|
|
|
|
|
|
|
|
|
|
const editHtml = en
|
|
|
|
|
? `:memo: Edit on ${github} / ${gitee}\n`
|
|
|
|
|
: `:memo: 在 ${github} / ${gitee} 编辑\n`;
|
|
|
|
|
|
|
|
|
|
if (vm.route.path == "/") {
|
|
|
|
|
if (vm.route.path == '/') {
|
|
|
|
|
return editHtml + content;
|
|
|
|
|
}
|
|
|
|
|
const subscription = `
|
|
|
|
@ -130,8 +150,8 @@
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
hook.afterEach(function (html) {
|
|
|
|
|
const currentYear = new Date().getFullYear()
|
|
|
|
|
const footer = `<footer><span>Copyright © 2018-${currentYear} <a href="https://github.com/doocs" target="_blank">Doocs</a>. All Rights Reserved.</footer>`
|
|
|
|
|
const currentYear = new Date().getFullYear();
|
|
|
|
|
const footer = `<footer><span>Copyright © 2018-${currentYear} <a href="https://github.com/doocs" target="_blank">Doocs</a>. All Rights Reserved.</footer>`;
|
|
|
|
|
return html + footer;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
@ -159,5 +179,4 @@ testingcf.jsdelivr.net
|
|
|
|
|
fastly.jsdelivr.net
|
|
|
|
|
gcore.jsdelivr.net
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
|
|
</html>
|