docs: update workflows and index page
This commit is contained in:
parent
a16b3236f0
commit
a9eb7171bb
4
.github/workflows/branch-merge.yml
vendored
4
.github/workflows/branch-merge.yml
vendored
@ -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}"
|
||||||
|
6
.github/workflows/prettier.yml
vendored
6
.github/workflows/prettier.yml
vendored
@ -17,9 +17,9 @@ jobs:
|
|||||||
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 }}
|
12
.github/workflows/sync.yml
vendored
12
.github/workflows/sync.yml
vendored
@ -12,21 +12,15 @@ jobs:
|
|||||||
- 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
|
45
index.html
45
index.html
@ -1,42 +1,20 @@
|
|||||||
<!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
|
<meta name="keywords" content="doc,docs,doocs,documentation,github,gitee,source-code-hunter,AmyliaY" />
|
||||||
name="keywords"
|
<meta name="description" content="读尽天下源码,心中自然无码,《源码猎人》项目维护者:云之君" />
|
||||||
content="doc,docs,doocs,documentation,github,gitee,source-code-hunter,AmyliaY"
|
<meta name="viewport"
|
||||||
/>
|
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" />
|
||||||
<meta
|
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/vue.css" />
|
||||||
name="description"
|
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify-dark-mode@0.6.1/dist/style.css" />
|
||||||
content="读尽天下源码,心中自然无码,《源码猎人》项目维护者:云之君"
|
<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="//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>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<nav>
|
<nav>
|
||||||
<ul>
|
<ul>
|
||||||
@ -82,7 +60,7 @@
|
|||||||
var footer = [
|
var footer = [
|
||||||
"<hr/>",
|
"<hr/>",
|
||||||
"<footer>",
|
"<footer>",
|
||||||
'<span>Copyright © 2018-2020 <a href="https://github.com/doocs" target="_blank">Doocs</a>. All rights reserved.',
|
'<span>Copyright © 2018-2021 <a href="https://github.com/doocs" target="_blank">Doocs</a>. All rights reserved.',
|
||||||
"</footer>",
|
"</footer>",
|
||||||
].join("");
|
].join("");
|
||||||
|
|
||||||
@ -106,4 +84,5 @@
|
|||||||
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/zoom-image.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>
|
<script src="//cdn.jsdelivr.net/npm/docsify-dark-mode@0.6.1/dist/index.js"></script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
Loading…
x
Reference in New Issue
Block a user