docs: update workflows and index page
This commit is contained in:
parent
a16b3236f0
commit
a9eb7171bb
6
.github/workflows/branch-merge.yml
vendored
6
.github/workflows/branch-merge.yml
vendored
@ -2,7 +2,7 @@ name: Merge Branch
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ imgbot ]
|
||||
branches: [imgbot]
|
||||
|
||||
jobs:
|
||||
merge-branch:
|
||||
@ -13,5 +13,5 @@ jobs:
|
||||
with:
|
||||
github_token: ${{ github.token }}
|
||||
source_ref: ${{ github.ref }}
|
||||
target_branch: 'main'
|
||||
commit_message_template: '[Automated] Merged {source_ref} into {target_branch}'
|
||||
target_branch: "main"
|
||||
commit_message_template: "[Automated] Merged {source_ref} into {target_branch}"
|
||||
|
24
.github/workflows/prettier.yml
vendored
24
.github/workflows/prettier.yml
vendored
@ -4,22 +4,22 @@ on:
|
||||
pull_request:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- main
|
||||
|
||||
jobs:
|
||||
prettier:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
ref: ${{ github.head_ref }}
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
ref: ${{ github.head_ref }}
|
||||
|
||||
- name: Prettify code
|
||||
uses: creyD/prettier_action@v3.0
|
||||
with:
|
||||
prettier_options: --write **/*.{html,js,md}
|
||||
commit_message: 'docs: prettify code'
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Prettify code
|
||||
uses: creyD/prettier_action@v3.3
|
||||
with:
|
||||
prettier_options: --write **/*.{md}
|
||||
commit_message: "style: prettify code"
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
28
.github/workflows/sync.yml
vendored
28
.github/workflows/sync.yml
vendored
@ -2,31 +2,25 @@ name: Sync
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository == 'doocs/source-code-hunter'
|
||||
steps:
|
||||
- name: Sync to Gitee
|
||||
uses: wearerequired/git-mirror-action@master
|
||||
env:
|
||||
# 注意在 Settings->Secrets 配置 GITEE_RSA_PRIVATE_KEY
|
||||
- name: Sync to Gitee
|
||||
uses: wearerequired/git-mirror-action@master
|
||||
env:
|
||||
SSH_PRIVATE_KEY: ${{ secrets.GITEE_RSA_PRIVATE_KEY }}
|
||||
with:
|
||||
# 注意替换为你的 GitHub 源仓库地址
|
||||
source-repo: "git@github.com:doocs/source-code-hunter.git"
|
||||
# 注意替换为你的 Gitee 目标仓库地址
|
||||
destination-repo: "git@gitee.com:Doocs/source-code-hunter.git"
|
||||
with:
|
||||
source-repo: git@github.com:doocs/source-code-hunter.git
|
||||
destination-repo: git@gitee.com:Doocs/source-code-hunter.git
|
||||
|
||||
- name: Build Gitee Pages
|
||||
uses: yanglbme/gitee-pages-action@master
|
||||
with:
|
||||
# 注意替换为你的 Gitee 用户名
|
||||
- name: Build Gitee Pages
|
||||
uses: yanglbme/gitee-pages-action@main
|
||||
with:
|
||||
gitee-username: yanglbme
|
||||
# 注意在 Settings->Secrets 配置 GITEE_PASSWORD
|
||||
gitee-password: ${{ secrets.GITEE_PASSWORD }}
|
||||
# 注意替换为你的 Gitee 仓库
|
||||
gitee-repo: doocs/source-code-hunter
|
||||
branch: main
|
||||
branch: main
|
||||
|
191
index.html
191
index.html
@ -1,109 +1,88 @@
|
||||
<!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="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="//cdn.jsdelivr.net/npm/docsify/lib/themes/vue.css"
|
||||
/>
|
||||
<link
|
||||
rel="stylesheet"
|
||||
href="//cdn.jsdelivr.net/npm/docsify-dark-mode@0.6.1/dist/style.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"
|
||||
/>
|
||||
</head>
|
||||
<body>
|
||||
<nav>
|
||||
<ul>
|
||||
<li>
|
||||
分类
|
||||
<ul>
|
||||
<li><a href="#/?id=spring-系列">Spring系列</a></li>
|
||||
<li><a href="#/?id=mybatis">Mybatis</a></li>
|
||||
<li><a href="#/?id=netty">Netty</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=学习心得">学习心得</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
页面
|
||||
<ul>
|
||||
<li><a href="#/README">首页</a></li>
|
||||
<li>
|
||||
<a href="https://github.com/doocs" target="_blank">Doocs</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://github.com/AmyliaY" target="_blank">Author</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<div id="app">本系列知识由 Doocs 开源社区总结发布</div>
|
||||
<script>
|
||||
window.$docsify = {
|
||||
name: "source-code-hunter",
|
||||
maxLevel: 3,
|
||||
auto2top: true,
|
||||
search: ["/"],
|
||||
darkMode: {
|
||||
light: {
|
||||
toggleBtnBg: "#42b983",
|
||||
},
|
||||
},
|
||||
plugins: [
|
||||
function (hook) {
|
||||
var footer = [
|
||||
"<hr/>",
|
||||
"<footer>",
|
||||
'<span>Copyright © 2018-2020 <a href="https://github.com/doocs" target="_blank">Doocs</a>. All rights reserved.',
|
||||
"</footer>",
|
||||
].join("");
|
||||
|
||||
hook.afterEach(function (html) {
|
||||
return html + footer;
|
||||
});
|
||||
},
|
||||
],
|
||||
};
|
||||
</script>
|
||||
<script src="//cdn.jsdelivr.net/npm/docsify/lib/docsify.min.js"></script>
|
||||
<script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-c.min.js"></script>
|
||||
<script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-bash.min.js"></script>
|
||||
<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"></script>
|
||||
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/search.js"></script>
|
||||
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/emoji.js"></script>
|
||||
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/zoom-image.js"></script>
|
||||
<script src="//cdn.jsdelivr.net/npm/docsify-dark-mode@0.6.1/dist/index.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
<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="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="//cdn.jsdelivr.net/npm/docsify/lib/themes/vue.css" />
|
||||
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify-dark-mode@0.6.1/dist/style.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" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<nav>
|
||||
<ul>
|
||||
<li>
|
||||
分类
|
||||
<ul>
|
||||
<li><a href="#/?id=spring-系列">Spring系列</a></li>
|
||||
<li><a href="#/?id=mybatis">Mybatis</a></li>
|
||||
<li><a href="#/?id=netty">Netty</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=学习心得">学习心得</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
页面
|
||||
<ul>
|
||||
<li><a href="#/README">首页</a></li>
|
||||
<li>
|
||||
<a href="https://github.com/doocs" target="_blank">Doocs</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://github.com/AmyliaY" target="_blank">Author</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
<div id="app">本系列知识由 Doocs 开源社区总结发布</div>
|
||||
<script>
|
||||
window.$docsify = {
|
||||
name: "source-code-hunter",
|
||||
maxLevel: 3,
|
||||
auto2top: true,
|
||||
search: ["/"],
|
||||
darkMode: {
|
||||
light: {
|
||||
toggleBtnBg: "#42b983",
|
||||
},
|
||||
},
|
||||
plugins: [
|
||||
function (hook) {
|
||||
var footer = [
|
||||
"<hr/>",
|
||||
"<footer>",
|
||||
'<span>Copyright © 2018-2021 <a href="https://github.com/doocs" target="_blank">Doocs</a>. All rights reserved.',
|
||||
"</footer>",
|
||||
].join("");
|
||||
|
||||
hook.afterEach(function (html) {
|
||||
return html + footer;
|
||||
});
|
||||
},
|
||||
],
|
||||
};
|
||||
</script>
|
||||
<script src="//cdn.jsdelivr.net/npm/docsify/lib/docsify.min.js"></script>
|
||||
<script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-c.min.js"></script>
|
||||
<script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-bash.min.js"></script>
|
||||
<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"></script>
|
||||
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/search.js"></script>
|
||||
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/emoji.js"></script>
|
||||
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/zoom-image.js"></script>
|
||||
<script src="//cdn.jsdelivr.net/npm/docsify-dark-mode@0.6.1/dist/index.js"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
Loading…
x
Reference in New Issue
Block a user