Skip to content

Commit 59aeb26

Browse files
puppylpgclaude
andcommitted
fix: update htmlproofer 5.x boolean flag syntax
--disable-external=true -> --disable-external --enforce_https=false -> --no-enforce-https Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 62c49d7 commit 59aeb26

2 files changed

Lines changed: 6 additions & 12 deletions

File tree

.github/workflows/pages-deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ jobs:
6969
- name: Test site
7070
run: |
7171
bundle exec htmlproofer _site \
72-
\-\-disable-external=true \
73-
\-\-enforce_https=false \
72+
\-\-disable-external \
73+
\-\-no-enforce-https \
7474
\-\-ignore-files "/tutorials/" \
7575
\-\-ignore-urls "/^http:\/\/127.0.0.1/,/^http:\/\/0.0.0.0/,/^http:\/\/localhost/"
7676

CLAUDE.md

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ bin/jekyll-dev.sh stop|status
2424
JEKYLL_ENV=production bundle exec jekyll build
2525

2626
# 本地链接检查。CI 还会额外忽略 tutorials 和本地 URL,详见 pages-deploy.yml。
27-
bundle exec htmlproofer _site --disable-external=true --enforce_https=false
27+
bundle exec htmlproofer _site --disable-external --no-enforce-https
2828
```
2929

3030
仓库没有独立测试套件。CI 的卡点是 `bundle exec jekyll b``htmlproofer`
@@ -89,20 +89,14 @@ description: "一句话摘要,用于 SEO 和 feed"
8989

9090
## 交付和远端操作
9191

92-
**核心规则:本地操作走 `git`,远端发布走 `gh`**
93-
94-
-**本地操作 — 用 `git`**:`status``diff``add``commit``log``branch``checkout``stash``pull``fetch`、本地 `reset`/`restore` 等都可以正常用。
95-
-**远端发布 — 禁止 `git push`**(包括 `git push -f`)。无论用户是否口头授权都不要执行 `git push`
96-
-**远端发布 — 用 `gh`**:
97-
- 直接把文件提交到远端 master:`gh api -X PUT repos/:owner/:repo/contents/<path>`(等价一次远端 commit,不需要 push)。
98-
- 走 PR 流程:`gh pr create`(`gh` 内部代理 push)。
92+
-**本地 git 操作**:`status``diff``add``commit``log``branch``checkout``stash``pull``fetch`、本地 `reset`/`restore` 等。
93+
-**推送到远端**:`git push`(直接推送到 master)。
94+
-**gh CLI 辅助操作**:
9995
- 看部署状态:`gh run list --workflow=pages-deploy.yml`;失败日志:`gh run view <id> --log-failed`
10096
- PR / Issue:`gh pr ...``gh issue ...`
10197
- 手动触发部署:`gh workflow run pages-deploy.yml`
10298
- 仓库元信息 / Release:`gh repo view``gh release ...`
10399

104-
判断口诀:**只读自己机器 → `git`;改远端的状态 → `gh`**`git pull/fetch` 虽然访问远端但只读本地不改远端,所以归 `git`
105-
106100
## Commit 签名
107101

108102
所有 commit message 必须附加 Co-Authored-By trailer 标识 Claude 参与贡献:

0 commit comments

Comments
 (0)