Skip to content

Commit 988da56

Browse files
refactor: reorganize dirs - _scripts for build, tools for user-facing pages
- Move build scripts (run.sh, test.sh, etc.) to _scripts/ (auto-excluded by Jekyll) - Move bazi-fortune to tools/bazi-fortune/ (accessible at /tools/bazi-fortune/) - Remove old scripts/ and bazi-fortune/ dirs - Update all path references in workflow, tasks.json, _config.yml, tools.yml
1 parent fe8c618 commit 988da56

13 files changed

Lines changed: 5 additions & 7 deletions

File tree

.github/workflows/pages-deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ jobs:
5454
AWS_DEFAULT_REGION: auto
5555
run: |
5656
pip install awscli --quiet
57-
bash tools/generate-gallery-r2.sh
57+
bash _scripts/generate-gallery-r2.sh
5858
5959
- name: Check friend links
6060
run: |
6161
pip install pyyaml --quiet
62-
bash tools/check-friends.sh
62+
bash _scripts/check-friends.sh
6363
6464
- name: Build site
6565
run: bundle exec jekyll b -d "_site${{ steps.pages.outputs.base_path }}"

.vscode/tasks.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{
55
"label": "Run Jekyll Server",
66
"type": "shell",
7-
"command": "./tools/run.sh",
7+
"command": "./_scripts/run.sh",
88
"group": {
99
"kind": "build",
1010
"isDefault": true
@@ -15,7 +15,7 @@
1515
{
1616
"label": "Build Jekyll Site",
1717
"type": "shell",
18-
"command": "./tools/test.sh",
18+
"command": "./_scripts/test.sh",
1919
"group": {
2020
"kind": "build"
2121
},

_config.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,6 @@ r2_gallery:
127127
exclude:
128128
- "*.gem"
129129
- "*.gemspec"
130-
- tools
131-
- scripts
132130
- README.md
133131
- LICENSE
134132
- _javascript

_data/tools.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
- name: "称骨算命"
22
description: "传统称骨算命小工具"
3-
url: "/bazi-fortune/"
3+
url: "/tools/bazi-fortune/"
44
icon: "fas fa-balance-scale"
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)