-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4c880de
commit 2a79669
Showing
12 changed files
with
401 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# EditorConfig (is awesome): http://EditorConfig.org | ||
|
||
# * top-most EditorConfig file | ||
root = true | ||
|
||
# default style settings | ||
[*] | ||
charset = utf-8 | ||
end_of_line = crlf | ||
indent_size = 4 | ||
indent_style = space | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.{yml,yaml}] | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
custom: ['yuque.com/gendloop/aboutme/support'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
name: Gitbook_Deploy | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'assets/**' | ||
- 'contents/**' | ||
- 'INTRO.md' | ||
- 'SUMMARY.md' | ||
- 'GLOSSARY.md' | ||
- 'book.json' | ||
- 'package.json' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: "22.9.0" | ||
- name: Cache NPM dependencies | ||
id: cache-npm | ||
uses: actions/cache@v4 | ||
with: | ||
path: node_modules | ||
key: ${{ runner.OS }}-npm-cache | ||
restore-keys: | | ||
${{ runner.OS }}-npm-cache | ||
- name: Cache Gitbook | ||
id: cache-gitbook | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/.gitbook | ||
key: ${{ runner.OS }}-gitbook-cache | ||
restore-keys: | | ||
${{ runner.OS }}-gitbook-cache | ||
- name: Install dependencies | ||
if: steps.cache-npm.outputs.cache-hit != 'true' | ||
run: npm install | ||
- name: Fix file error | ||
if: steps.cache-npm.outputs.cache-hit != 'true' | ||
run: sed -i '62,64 s/^/\/\/ /' ./node_modules/npm/node_modules/graceful-fs/polyfills.js | ||
- name: Build | ||
run: npm run build | ||
- name: Upload pages artifact | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: ./_book | ||
deploy: | ||
needs: build | ||
permissions: | ||
pages: write | ||
id-token: write | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# # Required | ||
# version: | ||
# description: 'New version. e.g. v0.0.0' | ||
# required: true | ||
# default: 'v0.0.0' | ||
# token: | ||
# description: 'Personal token' | ||
# required: true | ||
# default: ${{ github.token }} | ||
# # Optional | ||
# branch: | ||
# description: 'branch' | ||
# required: false | ||
# default: main | ||
|
||
name: Release_Version | ||
|
||
permissions: | ||
contents: write | ||
actions: write | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v[0-9]+.[0-9]+.[0-9]+' | ||
|
||
jobs: | ||
release_version: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: release-version | ||
uses: gendloop/release-version@v1.0.3 | ||
with: | ||
version: ${{ github.ref_name }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
no_commit: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"MD013": false, | ||
"MD024": { | ||
"siblings_only": true | ||
}, | ||
"MD033": false, | ||
"MD041": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,181 @@ | ||
{ | ||
"title": "REPO", | ||
"author": "gendloop", | ||
"description": "DESC", | ||
"gitbook": ">=3.2.3", | ||
"language": "zh-hans", | ||
"root": ".", | ||
"structure": { | ||
"readme": "INTRO.md" | ||
}, | ||
"links": { | ||
"sidebar": { | ||
"YuQue": "https://yuque.com/gendloop", | ||
"GitHub": "https://github.com/gendloop" | ||
} | ||
}, | ||
"pdf": { | ||
"toc": true, | ||
"pageNumbers": true, | ||
"fontSize": 11 | ||
}, | ||
"plugins": [ | ||
"-lunr", | ||
"-highlight", | ||
"-search", | ||
"search-plus@0.0.11", | ||
"-sharing", | ||
"sharing-plus@0.0.2", | ||
"splitter@0.0.8", | ||
"mermaid-gb3@2.1.0", | ||
"expandable-chapters-small@0.1.7", | ||
"anchor-navigation-ex@0.1.8", | ||
"simple-page-toc@0.1.1", | ||
"github@2.0.0", | ||
"github-buttons@2.1.0", | ||
"edit-link@2.0.2", | ||
"disqus@0.1.0", | ||
"prism@2.4.0", | ||
"prism-themes@0.0.2", | ||
"advanced-emoji@0.2.2", | ||
"anchors@0.7.1", | ||
"include-codeblock@3.2.3", | ||
"ace@0.3.2", | ||
"emphasize@1.1.0", | ||
"katex@1.1.4", | ||
"tbfed-pagefooter@0.0.1", | ||
"donate@1.0.2", | ||
"sitemap-general@0.1.1", | ||
"favicon@0.0.2", | ||
"todo@0.1.3", | ||
"3-ba@0.9.0", | ||
"terminal@0.3.2", | ||
"alerts@0.2.0", | ||
"include-csv@0.1.0", | ||
"puml@1.0.1", | ||
"musicxml@1.0.2", | ||
"klipse@1.2.0", | ||
"versions-select@0.1.1", | ||
"rss@3.0.2", | ||
"graph@0.1.0", | ||
"chart@0.2.0", | ||
"code@0.1.0", | ||
"theme-comscore@0.0.3", | ||
"sidebar-style@1.0.2" | ||
], | ||
"pluginsConfig": { | ||
"sidebar-style": { | ||
"title": "REPO", | ||
"author": "gendloop" | ||
}, | ||
"sharing": { | ||
"douban": false, | ||
"facebook": false, | ||
"google": false, | ||
"hatenaBookmark": false, | ||
"instapaper": false, | ||
"line": false, | ||
"linkedin": false, | ||
"messenger": false, | ||
"pocket": false, | ||
"qq": false, | ||
"qzone": false, | ||
"stumbleupon": false, | ||
"twitter": false, | ||
"viber": false, | ||
"vk": false, | ||
"weibo": false, | ||
"whatsapp": false, | ||
"all": [ | ||
"facebook", "google", "twitter", | ||
"weibo", "instapaper", "linkedin", | ||
"pocket", "stumbleupon", "qq", "qzone" | ||
] | ||
}, | ||
"anchor-navigation-ex": { | ||
"isRewritePageTitle": true, | ||
"tocLevel1Icon": "fa fa-hand-o-right", | ||
"tocLevel2Icon": "fa fa-hand-o-right", | ||
"tocLevel3Icon": "fa fa-hand-o-right" | ||
}, | ||
"simple-page-toc": { | ||
"maxDepth": 3, | ||
"skipFirstH1": true | ||
}, | ||
"github": { | ||
"url": "https://github.com/gendloop/REPO" | ||
}, | ||
"github-buttons": { | ||
"repo": "gendloop/REPO", | ||
"types": [ | ||
], | ||
"size": "small" | ||
}, | ||
"edit-link": { | ||
"base": "https://github.com/gendloop/REPO/edit/main", | ||
"label": "Edit" | ||
}, | ||
"disqus": { | ||
"shortName": "gendloop" | ||
}, | ||
"prism": { | ||
"css": [ | ||
"prism-themes/themes/prism-vs.min.css" | ||
] | ||
}, | ||
"include-codeblock": { | ||
"template": "ace", | ||
"unindent": true, | ||
"edit": true | ||
}, | ||
"tbfed-pagefooter": { | ||
"copyright": "Copyright © gendloop 2024", | ||
"modify_label": "该文件修订时间:", | ||
"modify_format": "YYYY-MM-DD HH:mm:ss" | ||
}, | ||
"donate": { | ||
"wechat": "../assets/images/wechat.png", | ||
"alipay": "../assets/images/alipay.png", | ||
"title": "鼓励一下", | ||
"button": "赞赏", | ||
"alipayText": "支付宝打赏", | ||
"wechatText": "微信打赏" | ||
}, | ||
"sitemap-general": { | ||
"prefix": "https://gendloop.github.io/REPO/" | ||
}, | ||
"favicon": { | ||
"shortcut": "assets/images/favicon.ico", | ||
"bookmark": "assets/images/favicon.ico", | ||
"appleTouch": "assets/images/favicon.ico", | ||
"appleTouchMore": { | ||
"120x120": "assets/images/favicon.ico", | ||
"180x180": "assets/images/favicon.ico" | ||
} | ||
}, | ||
"3-ba": { | ||
"token": "ab48cc3bf9dab9fbecc9fb216b38b778" | ||
}, | ||
"terminal": { | ||
"copyButtons": false, | ||
"fade": false, | ||
"style": "flat" | ||
}, | ||
"rss": { | ||
"title": "REPO", | ||
"description": "DESC", | ||
"author": "gendloop", | ||
"feed_url": "https://gendloop.github.io/REPO/rss", | ||
"site_url": "https://gendloop.github.io/REPO", | ||
"managingEditor": "gendloop@163.com", | ||
"webMaster": "gendloop@163.com", | ||
"categories": [ | ||
"gitbook", | ||
"REPO" | ||
] | ||
}, | ||
"chart": { | ||
"type": "c3" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{ | ||
"scripts": { | ||
"build": "gitbook build -v 3.2.3", | ||
"serve": "gitbook serve -v 3.2.3", | ||
"pdf": "gitbook pdf -v 3.2.3", | ||
"epub": "gitbook epub -v 3.2.3", | ||
"mobi": "gitbook mobi -v 3.2.3" | ||
}, | ||
"dependencies": { | ||
"gitbook-cli": "^2.3.2", | ||
"gitbook-plugin-3-ba": "^0.9.0", | ||
"gitbook-plugin-ace": "^0.3.2", | ||
"gitbook-plugin-advanced-emoji": "^0.2.2", | ||
"gitbook-plugin-alerts": "^0.2.0", | ||
"gitbook-plugin-anchor-navigation-ex": "^0.1.8", | ||
"gitbook-plugin-anchors": "^0.7.1", | ||
"gitbook-plugin-chart": "^0.2.0", | ||
"gitbook-plugin-code": "^0.1.0", | ||
"gitbook-plugin-disqus": "^0.1.0", | ||
"gitbook-plugin-donate": "^1.0.2", | ||
"gitbook-plugin-edit-link": "^2.0.2", | ||
"gitbook-plugin-emphasize": "^1.1.0", | ||
"gitbook-plugin-expandable-chapters-small": "^0.1.7", | ||
"gitbook-plugin-favicon": "^0.0.2", | ||
"gitbook-plugin-github": "^2.0.0", | ||
"gitbook-plugin-github-buttons": "^2.1.0", | ||
"gitbook-plugin-graph": "^0.1.0", | ||
"gitbook-plugin-include-codeblock": "^3.2.3", | ||
"gitbook-plugin-include-csv": "^0.1.0", | ||
"gitbook-plugin-katex": "^1.1.4", | ||
"gitbook-plugin-klipse": "^1.2.0", | ||
"gitbook-plugin-mermaid-gb3": "^2.1.0", | ||
"gitbook-plugin-musicxml": "^1.0.2", | ||
"gitbook-plugin-prism": "^2.4.0", | ||
"gitbook-plugin-prism-themes": "^0.0.2", | ||
"gitbook-plugin-puml": "^1.0.1", | ||
"gitbook-plugin-rss": "^3.0.2", | ||
"gitbook-plugin-search-plus": "^0.0.11", | ||
"gitbook-plugin-sharing-plus": "^0.0.2", | ||
"gitbook-plugin-sidebar-style": "^1.0.2", | ||
"gitbook-plugin-simple-page-toc": "^0.1.1", | ||
"gitbook-plugin-sitemap-general": "^0.1.1", | ||
"gitbook-plugin-splitter": "^0.0.8", | ||
"gitbook-plugin-tbfed-pagefooter": "^0.0.1", | ||
"gitbook-plugin-terminal": "^0.3.2", | ||
"gitbook-plugin-theme-comscore": "^0.0.3", | ||
"gitbook-plugin-todo": "^0.1.3", | ||
"gitbook-plugin-versions-select": "^0.1.1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
:: Git_Tag.bat | ||
@echo off | ||
cd .. | ||
git tag -l | ||
set /P tag=Input your tag to delete: | ||
git tag -d %tag% | ||
git push origin :%tag% | ||
choice /C YN /N /T 3 /D Y >nul |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
:: Git_PushDirectly.bat | ||
@echo off | ||
cd .. | ||
git pull | ||
git status | ||
git add . | ||
git status | ||
set /P msg=Input your commit: | ||
git commit -m "%msg%" | ||
git push | ||
cd scripts | ||
choice /C YN /N /T 3 /D Y >nul |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
:: Git_PushDirectly.bat | ||
@echo off | ||
cd .. | ||
git pull | ||
git status | ||
git add . | ||
git status | ||
git commit -m "chore: update" | ||
git push | ||
cd scripts | ||
choice /C YN /N /T 3 /D Y >nul |
Oops, something went wrong.