generated from libaxuan/LearnHubs
-
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
0 parents
commit ed216a7
Showing
189 changed files
with
29,131 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,2 @@ | ||
# Auto detect text files and perform LF normalization | ||
* text=auto |
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,61 @@ | ||
name: docs build | ||
|
||
on: | ||
push: | ||
branches: | ||
# 确保这是你正在使用的分支名称 | ||
- main | ||
|
||
jobs: | ||
LearnHubs-build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout 🛎️ | ||
uses: actions/checkout@v4 | ||
with: | ||
# 获取所有标记和分支的所有历史记录(updatetime 必须,否则每次都会变化) | ||
fetch-depth: 0 | ||
# 如果你文档需要 Git 子模块,取消注释下一行 | ||
# submodules: true | ||
|
||
- name: Install pnpm | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
run_install: true | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18 | ||
cache: pnpm | ||
|
||
# 将读书笔记复制到静态页路径,然后构建页面 | ||
- name: Build Docs | ||
env: | ||
NODE_OPTIONS: --max_old_space_size=8192 | ||
run: |- | ||
pnpm cpx "docs/reading/**" docs/.vuepress/public/reading | ||
pnpm run docs:build | ||
> docs/.vuepress/dist/.nojekyll | ||
- name: Deploy GitHub Pages | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
# 这是文档部署到的分支名称 | ||
branch: lh-pages | ||
folder: docs/.vuepress/dist | ||
# 将页面更新到 Vercel | ||
- name: Copy file to Vercel | ||
if: always() | ||
uses: andstor/copycat-action@v3 | ||
with: | ||
personal_token: ${{ secrets.PERSONAL_TOKEN }} | ||
src_path: /. | ||
dst_path: / | ||
# 你的用户名 | ||
dst_owner: libaxuan | ||
# 与 Vercel 链接的仓库名,也就是 Vercel 部署时新建的仓库 | ||
dst_repo_name: LearnHubs-vercel | ||
dst_branch: main | ||
src_branch: lh-pages | ||
clean: true |
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,15 @@ | ||
# Node modules | ||
**/node_modules/** | ||
|
||
# Cache | ||
**/.vuepress/.cache/** | ||
# Temp | ||
**/.vuepress/.temp/** | ||
# Output | ||
**/.vuepress/dist/** | ||
|
||
# 自定义草稿箱 | ||
docs/_temp/ | ||
|
||
# GoodSync | ||
_gsdata_/ |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,24 @@ | ||
{ | ||
"default": true, | ||
"MD003": { | ||
"style": "atx" | ||
}, | ||
"MD004": { | ||
"style": "dash" | ||
}, | ||
"MD013": false, | ||
"MD024": { | ||
"allow_different_nesting": true | ||
}, | ||
"MD033": { | ||
"allowed_elements": ["br", "template", "script", "style", "BiliBili"] | ||
}, | ||
"MD035": { | ||
"style": "---" | ||
}, | ||
"MD036": false, | ||
"MD040": false, | ||
"MD045": false, | ||
"MD046": false, | ||
"MD049": 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 @@ | ||
docs/reading/** |
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,2 @@ | ||
auto-install-peers=true | ||
strict-peer-dependencies=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,16 @@ | ||
# Vuepress Cache | ||
**/.vuepress/.cache/** | ||
# Vuepress Temp | ||
**/.vuepress/.temp/** | ||
# Vuepress Output | ||
**/.vuepress/dist/** | ||
**/.vuepress/templateBuild.html | ||
|
||
# live2d | ||
docs/.vuepress/public/live2d-widget/** | ||
|
||
# Node modules | ||
node_modules/ | ||
|
||
# pnpm lock file | ||
pnpm-lock.yaml |
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 @@ | ||
> Why do I have a folder named ".vercel" in my project? | ||
The ".vercel" folder is created when you link a directory to a Vercel project. | ||
|
||
> What does the "project.json" file contain? | ||
The "project.json" file contains: | ||
- The ID of the Vercel project that you linked ("projectId") | ||
- The ID of the user or team your Vercel project is owned by ("orgId") | ||
|
||
> Should I commit the ".vercel" folder? | ||
No, you should not share the ".vercel" folder with anyone. | ||
Upon creation, it will be automatically added to your ".gitignore" file. |
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 @@ | ||
{"orgId":"ranNkfMcGsOCEN6rlr5hLh70","projectId":"prj_40UNYZwDdnvbBY7BZhpWuvRsmu5R"} |
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,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2023 libaxuan | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
Oops, something went wrong.