docs: update workflows and index page

pull/95/head
yanglbme 5 years ago
parent a16b3236f0
commit a9eb7171bb

@ -2,7 +2,7 @@ name: Merge Branch
on: on:
push: push:
branches: [ imgbot ] branches: [imgbot]
jobs: jobs:
merge-branch: merge-branch:
@ -13,5 +13,5 @@ jobs:
with: with:
github_token: ${{ github.token }} github_token: ${{ github.token }}
source_ref: ${{ github.ref }} source_ref: ${{ github.ref }}
target_branch: 'main' target_branch: "main"
commit_message_template: '[Automated] Merged {source_ref} into {target_branch}' commit_message_template: "[Automated] Merged {source_ref} into {target_branch}"

@ -4,22 +4,22 @@ on:
pull_request: pull_request:
push: push:
branches: branches:
- main - main
jobs: jobs:
prettier: prettier:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
ref: ${{ github.head_ref }} ref: ${{ github.head_ref }}
- name: Prettify code - name: Prettify code
uses: creyD/prettier_action@v3.0 uses: creyD/prettier_action@v3.3
with: with:
prettier_options: --write **/*.{html,js,md} prettier_options: --write **/*.{md}
commit_message: 'docs: prettify code' commit_message: "style: prettify code"
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

@ -2,31 +2,25 @@ name: Sync
on: on:
push: push:
branches: [ main ] branches: [main]
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.repository == 'doocs/source-code-hunter' if: github.repository == 'doocs/source-code-hunter'
steps: steps:
- name: Sync to Gitee - name: Sync to Gitee
uses: wearerequired/git-mirror-action@master uses: wearerequired/git-mirror-action@master
env: env:
# 注意在 Settings->Secrets 配置 GITEE_RSA_PRIVATE_KEY
SSH_PRIVATE_KEY: ${{ secrets.GITEE_RSA_PRIVATE_KEY }} SSH_PRIVATE_KEY: ${{ secrets.GITEE_RSA_PRIVATE_KEY }}
with: with:
# 注意替换为你的 GitHub 源仓库地址 source-repo: git@github.com:doocs/source-code-hunter.git
source-repo: "git@github.com:doocs/source-code-hunter.git" destination-repo: git@gitee.com:Doocs/source-code-hunter.git
# 注意替换为你的 Gitee 目标仓库地址
destination-repo: "git@gitee.com:Doocs/source-code-hunter.git"
- name: Build Gitee Pages - name: Build Gitee Pages
uses: yanglbme/gitee-pages-action@master uses: yanglbme/gitee-pages-action@main
with: with:
# 注意替换为你的 Gitee 用户名
gitee-username: yanglbme gitee-username: yanglbme
# 注意在 Settings->Secrets 配置 GITEE_PASSWORD
gitee-password: ${{ secrets.GITEE_PASSWORD }} gitee-password: ${{ secrets.GITEE_PASSWORD }}
# 注意替换为你的 Gitee 仓库
gitee-repo: doocs/source-code-hunter gitee-repo: doocs/source-code-hunter
branch: main branch: main

@ -1,109 +1,88 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head>
<meta charset="UTF-8" /> <head>
<title></title> <meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <title></title>
<meta <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
name="keywords" <meta name="keywords" content="doc,docs,doocs,documentation,github,gitee,source-code-hunter,AmyliaY" />
content="doc,docs,doocs,documentation,github,gitee,source-code-hunter,AmyliaY" <meta name="description" content="读尽天下源码,心中自然无码,《源码猎人》项目维护者:云之君" />
/> <meta name="viewport"
<meta content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" />
name="description" <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/vue.css" />
content="读尽天下源码,心中自然无码,《源码猎人》项目维护者:云之君" <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" />
<meta <link rel="icon" type="image/png" sizes="16x16" href="images/favicon-16x16.png" />
name="viewport" </head>
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"
/> <body>
<link <nav>
rel="stylesheet" <ul>
href="//cdn.jsdelivr.net/npm/docsify/lib/themes/vue.css" <li>
/>
<link <ul>
rel="stylesheet" <li><a href="#/?id=spring-系列">Spring</a></li>
href="//cdn.jsdelivr.net/npm/docsify-dark-mode@0.6.1/dist/style.css" <li><a href="#/?id=mybatis">Mybatis</a></li>
/> <li><a href="#/?id=netty">Netty</a></li>
<link <li><a href="#/?id=tomcat">Tomcat</a></li>
rel="icon" <li><a href="#/?id=番外篇jdk-18">JDK 1.8</a></li>
type="image/png" <li><a href="#/?id=学习心得"></a></li>
sizes="32x32" </ul>
href="images/favicon-32x32.png" </li>
/> <li>
<link
rel="icon" <ul>
type="image/png" <li><a href="#/README"></a></li>
sizes="16x16" <li>
href="images/favicon-16x16.png" <a href="https://github.com/doocs" target="_blank">Doocs</a>
/> </li>
</head> <li>
<body> <a href="https://github.com/AmyliaY" target="_blank">Author</a>
<nav> </li>
<ul> </ul>
<li> </li>
</ul>
<ul> </nav>
<li><a href="#/?id=spring-系列">Spring</a></li> <div id="app"> Doocs </div>
<li><a href="#/?id=mybatis">Mybatis</a></li> <script>
<li><a href="#/?id=netty">Netty</a></li> window.$docsify = {
<li><a href="#/?id=tomcat">Tomcat</a></li> name: "source-code-hunter",
<li><a href="#/?id=番外篇jdk-18">JDK 1.8</a></li> maxLevel: 3,
<li><a href="#/?id=学习心得"></a></li> auto2top: true,
</ul> search: ["/"],
</li> darkMode: {
<li> light: {
toggleBtnBg: "#42b983",
<ul> },
<li><a href="#/README"></a></li> },
<li> plugins: [
<a href="https://github.com/doocs" target="_blank">Doocs</a> function (hook) {
</li> var footer = [
<li> "<hr/>",
<a href="https://github.com/AmyliaY" target="_blank">Author</a> "<footer>",
</li> '<span>Copyright © 2018-2021 <a href="https://github.com/doocs" target="_blank">Doocs</a>. All rights reserved.',
</ul> "</footer>",
</li> ].join("");
</ul>
</nav> hook.afterEach(function (html) {
<div id="app"> Doocs </div> return html + footer;
<script> });
window.$docsify = {
name: "source-code-hunter",
maxLevel: 3,
auto2top: true,
search: ["/"],
darkMode: {
light: {
toggleBtnBg: "#42b983",
},
}, },
plugins: [ ],
function (hook) { };
var footer = [ </script>
"<hr/>", <script src="//cdn.jsdelivr.net/npm/docsify/lib/docsify.min.js"></script>
"<footer>", <script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-c.min.js"></script>
'<span>Copyright © 2018-2020 <a href="https://github.com/doocs" target="_blank">Doocs</a>. All rights reserved.', <script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-bash.min.js"></script>
"</footer>", <script src="//cdn.jsdelivr.net/npm/prismjs/components/prism-cpp.min.js"></script>
].join(""); <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>
hook.afterEach(function (html) { </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>

@ -1,3 +0,0 @@
git add .
git commit -m "auto update"
git push -u -f origin master
Loading…
Cancel
Save