feat: show contributors in each page

pull/150/head
yanglbme 3 years ago
parent 21428c2b48
commit 1a19d99a9a

@ -1,147 +1,156 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<title></title> <title></title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <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="description" content="读尽天下源码,心中自然无码——源码猎人" />
<meta name="viewport" <meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" /> content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" />
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/vue.css" /> <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/vue.css" />
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify-darklight-theme@latest/dist/style.min.css"> <link rel="stylesheet" href="//cdn.jsdelivr.net/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="32x32" href="images/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="images/favicon-16x16.png" /> <link rel="icon" type="image/png" sizes="16x16" href="images/favicon-16x16.png" />
<style> <style>
.markdown-section code { .markdown-section code {
font-weight: 400; font-weight: 400;
} }
</style> </style>
</head> </head>
<body> <body>
<nav> <nav>
<ul> <ul>
<li> <li>
<ul> <ul>
<li><a href="#/?id=spring-系列">Spring</a></li> <li><a href="#/?id=spring-系列">Spring</a></li>
<li><a href="#/?id=mybatis">Mybatis</a></li> <li><a href="#/?id=mybatis">Mybatis</a></li>
<li><a href="#/?id=netty">Netty</a></li> <li><a href="#/?id=netty">Netty</a></li>
<li><a href="#/?id=tomcat">Tomcat</a></li> <li><a href="#/?id=tomcat">Tomcat</a></li>
<li><a href="#/?id=番外篇jdk-18">JDK 1.8</a></li> <li><a href="#/?id=番外篇jdk-18">JDK 1.8</a></li>
<li><a href="#/?id=学习心得"></a></li> <li><a href="#/?id=学习心得"></a></li>
</ul> </ul>
</li> </li>
<li> <li>
<ul> <ul>
<li><a href="#/README"></a></li> <li><a href="#/README"></a></li>
<li> <li>
<a href="https://github.com/doocs" target="_blank">Doocs</a> <a href="https://github.com/doocs" target="_blank">Doocs</a>
</li> </li>
<li> <li>
<a href="https://github.com/AmyliaY" target="_blank">Author</a> <a href="https://github.com/AmyliaY" target="_blank">Author</a>
</li> </li>
</ul> </ul>
</li> </li>
</ul> </ul>
</nav> </nav>
<div id="app"> Doocs </div> <div id="app"> Doocs </div>
<script> <script>
window.$docsify = { window.$docsify = {
name: "source-code-hunter", name: "source-code-hunter",
maxLevel: 3, maxLevel: 3,
auto2top: true, auto2top: true,
search: ["/"], search: ["/"],
darklightTheme: { darklightTheme: {
defaultTheme: 'light', defaultTheme: 'light',
siteFont: 'Source Sans Pro,Helvetica Neue,Arial,sans-serif', siteFont: 'Source Sans Pro,Helvetica Neue,Arial,sans-serif',
codeFontFamily: 'Roboto Mono, Monaco, courier, monospace', codeFontFamily: 'Roboto Mono, Monaco, courier, monospace',
bodyFontSize: '15px', bodyFontSize: '15px',
dark: { dark: {
background: '#191919', background: '#191919',
highlightColor: '#e96900', highlightColor: '#e96900',
codeBackgroundColor: '#202020', codeBackgroundColor: '#202020',
codeTextColor: '#b4b4b4', codeTextColor: '#b4b4b4',
}, },
light: { light: {
highlightColor: '#e96900', highlightColor: '#e96900',
} }
}, },
plugins: [ contributors: {
function (hook, vm) { repo: 'doocs/source-code-hunter',
hook.beforeEach(function (content) { ignores: ['/README.md'],
const en = vm.route.file.indexOf("README_EN") > -1; image: {
if (/githubusercontent\.com/.test(vm.route.file)) { margin: '0.2em',
url = vm.route.file isRound: true
.replace("raw.githubusercontent.com", "github.com") }
.replace(/\/main/, "/blob/main"); },
} else { plugins: [
url = function (hook, vm) {
"https://github.com/doocs/source-code-hunter/blob/main/" + hook.beforeEach(function (content) {
vm.route.file; const en = vm.route.file.indexOf("README_EN") > -1;
} if (/githubusercontent\.com/.test(vm.route.file)) {
url = vm.route.file
const github = `[GitHub](${url})`; .replace("raw.githubusercontent.com", "github.com")
const gitee = `[Gitee](${url.replace("github", "gitee")})`; .replace(/\/main/, "/blob/main");
} else {
const editHtml = en url =
? `:memo: Edit on ${github} / ${gitee}\n` "https://github.com/doocs/source-code-hunter/blob/main/" +
: `:memo: ${github} / ${gitee} \n`; vm.route.file;
}
if (vm.route.path == "/") {
return editHtml + content; const github = `[GitHub](${url})`;
} const gitee = `[Gitee](${url.replace("github", "gitee")})`;
const subscription = `
## const editHtml = en
? `:memo: Edit on ${github} / ${gitee}\n`
[Doocs](https://github.com/doocs) 技术社区旗下唯一公众号「**Doocs开源社区**」​,欢迎扫码关注,**专注分享技术领域相关知识及业内最新资讯**。当然也可以加我个人微信备注GitHub拉你进技术交流群。 : `:memo: ${github} / ${gitee} \n`;
**Doocs ** **PDF** [ Java ](https://github.com/doocs/advanced-java) 项目离线 PDF 文档283 页精华),学习更加方便! if (vm.route.path == "/") {
return editHtml + content;
<table> }
<tr> const subscription = `
<td align="center" style="width: 200px;"> ##
<a href="https://github.com/doocs">
<img src="./images/qrcode-for-doocs.jpg" style="width: 400px;"><br> [Doocs](https://github.com/doocs) 技术社区旗下唯一公众号「**Doocs开源社区**」​,欢迎扫码关注,**专注分享技术领域相关知识及业内最新资讯**。当然也可以加我个人微信备注GitHub拉你进技术交流群。
<sub></sub>
</a><br> **Doocs ** **PDF** [ Java ](https://github.com/doocs/advanced-java) 项目离线 PDF 文档283 页精华),学习更加方便!
</td>
<td align="center" style="width: 200px;"> <table>
<a href="https://github.com/yanglbme"> <tr>
<img src="./images/qrcode-for-yanglbme.jpg" style="width: 400px;"><br> <td align="center" style="width: 200px;">
<sub></sub> <a href="https://github.com/doocs">
</a><br> <img src="./images/qrcode-for-doocs.jpg" style="width: 400px;"><br>
</td> <sub></sub>
</tr> </a><br>
</table> </td>
`; <td align="center" style="width: 200px;">
return editHtml + content + `\n` + subscription; <a href="https://github.com/yanglbme">
}); <img src="./images/qrcode-for-yanglbme.jpg" style="width: 400px;"><br>
<sub></sub>
hook.afterEach(function (html) { </a><br>
const currentYear = new Date().getFullYear() </td>
const footer = `<footer><span>Copyright © 2018-${currentYear} <a href="https://github.com/doocs" target="_blank">Doocs</a>. All Rights Reserved.</footer>` </tr>
return html + footer; </table>
}); `;
}, return editHtml + content + `\n` + subscription;
], });
};
</script> hook.afterEach(function (html) {
<script src="//cdn.jsdelivr.net/npm/docsify/lib/docsify.min.js"></script> const currentYear = new Date().getFullYear()
<script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-c.min.js"></script> const footer = `<footer><span>Copyright © 2018-${currentYear} <a href="https://github.com/doocs" target="_blank">Doocs</a>. All Rights Reserved.</footer>`
<script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-bash.min.js"></script> return html + footer;
<script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-cpp.min.js"></script> });
<script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-json.min.js"></script> },
<script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-java.min.js"></script> ],
<script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-python.min.js"></script> };
<script src="//cdn.jsdelivr.net/npm/docsify-copy-code@2.1.1/dist/docsify-copy-code.min.js"></script> </script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/search.min.js"></script> <script src="//cdn.jsdelivr.net/npm/docsify/lib/docsify.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/emoji.min.js"></script> <script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-c.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/zoom-image.min.js"></script> <script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-bash.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify-darklight-theme@latest/dist/index.min.js"></script> <script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-cpp.min.js"></script>
</body> <script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-json.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-java.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-python.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify-copy-code@2.1.1/dist/docsify-copy-code.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/search.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/emoji.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/zoom-image.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify-darklight-theme@latest/dist/index.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify-contributors@latest/dist/index.min.js"></script>
</body>
</html> </html>
Loading…
Cancel
Save