Skip to content

Commit 8cd20fa

Browse files
committed
init
0 parents  commit 8cd20fa

File tree

71 files changed

+3284
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+3284
-0
lines changed

.gitattributes

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
*.md linguist-vendored=false
2+
*.md linguist-generated=false
3+
*.md linguist-documentation=false
4+
*.md linguist-detectable=true
5+
6+
*.vue linguist-vendored=false
7+
*.vue linguist-generated=false
8+
*.vue linguist-documentation=false
9+
*.vue linguist-detectable=true

.github/workflows/deploy.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Deploy VitePress site
2+
3+
on:
4+
push:
5+
branches: [deploy_github_pages]
6+
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
14+
concurrency:
15+
group: pages
16+
cancel-in-progress: false
17+
18+
jobs:
19+
build:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
with:
25+
fetch-depth: 0
26+
# - uses: pnpm/action-setup@v3 # 如果使用 pnpm,请取消此区域注释
27+
# with:
28+
# version: 9
29+
# - uses: oven-sh/setup-bun@v1 # 如果使用 Bun,请取消注释
30+
- name: Setup Node
31+
uses: actions/setup-node@v4
32+
with:
33+
node-version: 20
34+
cache: yarn
35+
- name: Setup Pages
36+
uses: actions/configure-pages@v4
37+
- name: Install dependencies
38+
run: yarn install
39+
- name: Build with VitePress
40+
run: yarn docs:build
41+
- name: Upload artifact
42+
uses: actions/upload-pages-artifact@v3
43+
with:
44+
path: docs/.vitepress/dist
45+
46+
deploy:
47+
environment:
48+
name: github-pages
49+
url: ${{ steps.deployment.outputs.page_url }}
50+
needs: build
51+
runs-on: ubuntu-latest
52+
name: Deploy
53+
steps:
54+
- name: Deploy to GitHub Pages
55+
id: deployment
56+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
.DS_Store
2+
node_modules
3+
4+
# Vitepress
5+
.vitepress/dist
6+
.vitepress/cache
7+
docs/.vitepress/dist
8+
docs/.vitepress/cache
9+
10+
# Editor directories and files
11+
.idea
12+
*.suo
13+
*.ntvs*
14+
*.njsproj
15+
*.sln
16+
*.sw?
17+
18+
# Local env files
19+
.env.local
20+
.env.*.local
21+
22+
# Log files
23+
npm-debug.log*
24+
yarn-debug.log*
25+
yarn-error.log*
26+
pnpm-debug.log*
27+
28+
# Cache
29+
.cache/

.husky/pre-commit

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
COLOR_PURPLE='\033[0;35m'
2+
COLOR_GREEN='\033[0;32m'
3+
COLOR_NOCOLOR='\033[0m'
4+
5+
6+
echo "${COLOR_PURPLE}[Husky pre-commit]${COLOR_NOCOLOR}"
7+
8+
# Prettier
9+
yarn docs:format

.prettierignore

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Ignore artifacts:
2+
build
3+
coverage
4+
5+
# Ignore all HTML files:
6+
**/*.html
7+
8+
# Ignore version control systems's files:
9+
**/.git
10+
**/.svn
11+
**/.hg
12+
13+
# Ignore node modules:
14+
**/node_modules
15+
16+
# Ignore cache files:
17+
.cache/
18+
.eslintcache
19+
.prettiercache
20+
.stylelintcache
21+
22+
# Others
23+
tsconfig.json
24+
tsconfig.app.json
25+
tsconfig.node.json
26+
27+
# Ignore rollup build stats directory
28+
.build_stats/

.prettierrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"tabWidth": 2
3+
}

.vscode/extensions.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"recommendations": [
3+
"Stephen-Hamilton-C.black-plus-material",
4+
"PKief.material-icon-theme"
5+
]
6+
}

.vscode/settings.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"material-icon-theme.folders.associations": {
3+
"database": "",
4+
5+
"__base__": "base",
6+
"__performance__": "benchmark"
7+
}
8+
}

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Personal Programming Notes
2+
3+
## Assets
4+
5+
### Online Tools
6+
7+
| | Link URL |
8+
| --------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
9+
| Image Editor | [photoroom](https://app.photoroom.com/create) |
10+
| Skill Logo Icon | [iconify](https://icon-sets.iconify.design/skill-icons/) |
11+
| Art Images | [pinterest](https://cl.pinterest.com/search/pins/?q=%E8%8B%B1%E9%9B%84%E8%81%94%E7%9B%9F&rs=autocomplete_bubble&b_id=BMdL1_x9a2WUAAAAAAAAAABRt7f0rR_ImPuJikA2ofhZkvfO9vAsKiWbSmTCebG_SEEeq72yK0jcIuaHvTfKwXeUuYGZ_3qB0zdN-TUrlTB15RyFVGR4jfFf59fgIbh5ng&source_id=Pti340jM&top_pin_id=12736811441668908) |
12+
13+
### Static Assets
14+
15+
- Skill Logo Icon Image: `300 * 300`
16+
- Skill Logo Background Image: `2000 * 1000`
17+
18+
## Deploy
19+
20+
### GitHub Pages
21+
22+
1. navigate to github repo's **Settings > Pages**
23+
2. select option of **Build and deployment > Source** to **GitHub Actions**
24+
3. navigate to github repo's **Settings > Environments**
25+
4. click **github-pages** then add branch `deploy_github_pages` ( which want to be deployed ) to **Deployment branches and tags**
26+
5. make sure to set the `base` of configurations to github repo name
27+
6. commit then push to remote `main` branch
28+
7. merge `main` branch to `deploy_github_pages` branch
29+
8. then push the `deploy_github_pages` branch to remote
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
import { type DefaultTheme } from "vitepress";
2+
3+
import { JS_ROOT } from "../default-theme-sidebar/web-frontend/_javascript";
4+
import { PYTHON_ROOT } from "../default-theme-sidebar/web-backend/_python";
5+
import { DJANGO_ROOT } from "../default-theme-sidebar/web-backend/_django";
6+
import { REACT_JS_ROOT } from "../default-theme-sidebar/web-frontend/_react";
7+
import { VUE_JS_ROOT } from "../default-theme-sidebar/web-frontend/_vue";
8+
import { GIT_ROOT } from "../default-theme-sidebar/dev-tools/_git";
9+
10+
export const DEFAULT_THEME_NAVBAR: Array<DefaultTheme.NavItem> = [
11+
{
12+
text: "常用技术",
13+
items: [
14+
{
15+
text: "语言",
16+
items: [
17+
{ text: "JavaScript", link: `${JS_ROOT}/` },
18+
{ text: "Python", link: `${PYTHON_ROOT}/` },
19+
],
20+
},
21+
{
22+
text: "框架",
23+
items: [
24+
{ text: "React.js", link: `${REACT_JS_ROOT}/` },
25+
{ text: "Vue.js", link: `${VUE_JS_ROOT}/` },
26+
{ text: "Django", link: `${DJANGO_ROOT}/` },
27+
],
28+
},
29+
],
30+
},
31+
{
32+
text: "常用工具",
33+
items: [
34+
{ text: "Git", link: `${GIT_ROOT}/` },
35+
// { text: "Docker", link: `${DOCKER_ROOT}/` },
36+
],
37+
},
38+
];

0 commit comments

Comments
 (0)