mirror of
https://github.com/doocs/advanced-java.git
synced 2025-03-26 12:05:44 +08:00
style: code format (#290)
This commit is contained in:
parent
24deb280fc
commit
806ce10eb0
74
index.html
74
index.html
@ -1,53 +1,29 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>互联网 Java 工程师进阶知识完全扫盲 - Doocs 技术社区</title>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
||||
<meta
|
||||
name="keywords"
|
||||
content="doc,docs,doocs,documentation,github,gitee,advanced-java,yanglbme"
|
||||
/>
|
||||
<meta
|
||||
name="description"
|
||||
content="互联网 Java 工程师进阶知识完全扫盲,项目维护者:杨立滨"
|
||||
/>
|
||||
<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="keywords" content="doc,docs,doocs,documentation,github,gitee,advanced-java,yanglbme" />
|
||||
<meta name="description" content="互联网 Java 工程师进阶知识完全扫盲,项目维护者:杨立滨" />
|
||||
<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;
|
||||
}
|
||||
|
||||
article > p > img {
|
||||
article>p>img {
|
||||
background-color: #f4f4f4;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<body>
|
||||
<nav>
|
||||
<ul>
|
||||
<li>
|
||||
@ -129,31 +105,27 @@
|
||||
plugins: [
|
||||
function (hook, vm) {
|
||||
hook.beforeEach(function (content) {
|
||||
const en = vm.route.file.indexOf('README_EN') > -1;
|
||||
if (/githubusercontent\.com/.test(vm.route.file)) {
|
||||
url = vm.route.file
|
||||
const { file, path } = vm.route;
|
||||
const en = file.indexOf('README_EN') > -1;
|
||||
if (/githubusercontent\.com/.test(file)) {
|
||||
url = file
|
||||
.replace(
|
||||
'raw.githubusercontent.com',
|
||||
'github.com',
|
||||
)
|
||||
.replace(/\/main/, '/blob/main');
|
||||
} else {
|
||||
url =
|
||||
'https://github.com/doocs/advanced-java/blob/main/' +
|
||||
vm.route.file;
|
||||
url = `https://github.com/doocs/advanced-java/blob/main/${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 (path === '/') {
|
||||
return editHtml + content;
|
||||
}
|
||||
const subscription = `---
|
||||
@ -178,8 +150,7 @@
|
||||
</a><br>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
`;
|
||||
</table>`;
|
||||
return editHtml + content + `\n` + subscription;
|
||||
});
|
||||
|
||||
@ -201,13 +172,14 @@
|
||||
<script src="https://cdn-doocs.oss-cn-shenzhen.aliyuncs.com/npm/docsify-darklight-theme@latest/dist/index.min.js"></script>
|
||||
<script src="https://cdn-doocs.oss-cn-shenzhen.aliyuncs.com/npm/docsify-contributors@latest/dist/index.min.js"></script>
|
||||
<script src="https://cdn-doocs.oss-cn-shenzhen.aliyuncs.com/npm/docsify-lastmodified/index.min.js"></script>
|
||||
</body>
|
||||
</body>
|
||||
|
||||
<!--
|
||||
<!--
|
||||
cdn.jsdelivr.net
|
||||
test1.jsdelivr.net
|
||||
testingcf.jsdelivr.net
|
||||
fastly.jsdelivr.net
|
||||
gcore.jsdelivr.net
|
||||
-->
|
||||
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user