Skip to content

fix(docs): publish OpenClaw and Hermes integration figures - #586

Merged
jinliyl merged 3 commits into
agentscope-ai:mainfrom
RerankerGuo:fix/docs-openclaw-hermes-figures
Oct 6, 2026
Merged

jinliyl merged 3 commits into
agentscope-ai:mainfrom
RerankerGuo:fix/docs-openclaw-hermes-figures

Conversation

@RerankerGuo

Copy link
Copy Markdown
Contributor

What

线上文档站(reme.agentscope.io)的三个集成页面所有截图都是坏的:

  • /en/integrations/openclaw
  • /zh/integrations/openclaw
  • /en/integrations/hermes

这些页面由 generate-content.mjs 从 integrations/openclaw/README*.md 和 integrations/hermes_agent/README.md 生成,README 里引用的是仓库内的 figures/*.png(openclaw 7 张、hermes 5 张)。但生成器只对 dsh 和 Studio 的 README 做了 (./figures/ → (/figures/dsh/(/studio/)的重写,也只拷贝了这两个目录到 public/figures/。于是这三个页面的图片地址解析成 /<language>/integrations/figures/*.png,构建产物里没有这些文件——线上全部 404。

verify-build.mjs 只校验 <a href> 内部链接(第 124-135 行),从不检查 <img src>,所以文档构建一直是绿的,问题只在线上暴露。

Fix

完全复刻 dsh 的既有模式:

  • integrations/openclaw/README.md / README_ZH.md:(./figures/ → (/figures/openclaw/
  • integrations/hermes_agent/README.md:(figures/ → (/figures/hermes/(该 README 的图片链接没有 ./ 前缀),并补上缺失的语言互链 (README_ZH.md) → (/zh/integrations/hermes)
  • 构建时把 integrations/openclaw/figures 和 integrations/hermes_agent/figures 拷贝进 public/figures/openclaw 与 public/figures/hermes
  • 在 github-pages/tests/generated-content.test.mjs 增加与 Studio 截图测试同构的用例,同时断言链接重写和图片落盘

Validation

  • 先在未修复的生成器上复现:新测试 not ok(1 failed),修复后 14 passed,红→绿成立。
  • npm test(github-pages):14/14 通过。
  • npm run build(github-pages,本机 Node 18.20.8 + vitepress 1.6.4):构建成功,verify-build.mjs 36 项全部通过。
  • 检查 dist/:figures/openclaw/、figures/hermes/ 与既有 figures/dsh/、figures/studio/ 并列存在;dist/en/integrations/openclaw.html 的 src="/figures/openclaw/status-overview.png",dist/en/integrations/hermes.html 的 src="/figures/hermes/hermes-provider-settings.png"。
  • 未改 verify-build.mjs:该清单按既有惯例只收录 ecosystem/*,dsh/studio 的 figures 也未列入,新用例已覆盖生成期校验。

@jinliyl

jinliyl commented Oct 1, 2026

Copy link
Copy Markdown
Member

Thanks for fixing the broken screenshots! I reviewed commit 0a7c391 and confirmed that all 14 documentation tests pass, the build succeeds, and every screenshot reference on the three affected pages resolves to a file in the build output.

One small follow-up before merging: could you also add integrations/openclaw/figures/** and integrations/hermes_agent/figures/** to the path filters in both .github/workflows/ci-docs.yml and .github/workflows/deploy-docs.yml, and include them in the existing generated-input tracking test? These directories are now documentation build inputs, but changes limited to those screenshots would not trigger documentation CI or deployment, leaving the published images outdated.

The image path rewrites and asset copying otherwise look good. Thank you!

RerankerGuo added a commit to RerankerGuo/ReMe that referenced this pull request Oct 5, 2026
The figures this PR adds under integrations/hermes_agent/figures/ and
integrations/openclaw/figures/ were not in either docs workflow's path
filter, so a follow-up commit that only touches a PNG would skip the docs
build and the broken-reference tests. Add both globs to the pull_request
filter in ci-docs.yml and the push filter in deploy-docs.yml, matching how
integrations/dsh/figures/** and reme_studio/figures/** are already listed.

Requested in review on agentscope-ai#586.
@RerankerGuo

Copy link
Copy Markdown
Contributor Author

Done in f45a7374 — both figure globs added to both docs workflows:

  • .github/workflows/ci-docs.yml (pull_request filter)
  • .github/workflows/deploy-docs.yml (push filter)
-integrations/hermes_agent/README.md
+integrations/hermes_agent/README.md
+integrations/hermes_agent/figures/**
...
-integrations/openclaw/README*.md
+integrations/openclaw/README*.md
+integrations/openclaw/figures/**

placed next to the existing integrations/dsh/figures/** and reme_studio/figures/** entries, which the new directories now match in kind (a docs-only change that only touches a PNG no longer skips the build or the reference tests).

Both files still parse as workflow YAML and the filters verify as above. Note the push needed SSH: the gh token on this machine carries repo but not workflow, so an HTTPS push of a .github/workflows/** change is refused by GitHub — flagging it in case you see the same in other contributors' forks.

Nothing else in the branch changed; the figures themselves are untouched from 0a7c391e.

The generated /en/integrations/openclaw, /zh/integrations/openclaw and
/en/integrations/hermes pages are built from the plugin READMEs, which
reference local figures/. Only the dsh and Studio READMEs had their
./figures/ links rewritten to site paths and their figure directories
copied into the build, so every screenshot on those three pages resolved
to /<language>/integrations/figures/*.png and 404'd. verify-build.mjs
only checks <a> links, never <img> sources, so the build stayed green.

Mirror the dsh pattern: rewrite the figure links to /figures/openclaw/
and /figures/hermes/, copy both figure directories into public/figures/,
add the missing language-cross link for the Hermes page, and cover all of
it in the generated-content tests.
The figures this PR adds under integrations/hermes_agent/figures/ and
integrations/openclaw/figures/ were not in either docs workflow's path
filter, so a follow-up commit that only touches a PNG would skip the docs
build and the broken-reference tests. Add both globs to the pull_request
filter in ci-docs.yml and the push filter in deploy-docs.yml, matching how
integrations/dsh/figures/** and reme_studio/figures/** are already listed.

Requested in review on agentscope-ai#586.
@RerankerGuo
RerankerGuo force-pushed the fix/docs-openclaw-hermes-figures branch from f45a737 to 6a69680 Compare October 5, 2026 11:00
@jinliyl

jinliyl commented Oct 6, 2026

Copy link
Copy Markdown
Member

Reviewed and tightened the regression coverage:

  • Added both new figure directories to the existing documentation CI/deployment input-tracking test.
  • Replaced the hard-coded screenshot filename lists with checks of every Markdown image reference on all three affected pages. Each reference must use its integration's site-safe figure path and resolve to a generated public asset. This covers future screenshots while reducing the test by 14 lines overall.

Validation on Node 22.22.2: all 14 documentation tests pass; the complete documentation build succeeds, including 38 build-artifact checks; pre-commit passes for the changed test file. The production changes follow the existing DSH/Studio publishing pattern, and I found no blocking correctness issues. I will merge once the latest required checks and repository review requirements are satisfied.

@jinliyl jinliyl left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the figure path rewrites, asset publishing, and workflow triggers. All local documentation tests, the complete build, and focused pre-commit checks pass. Regression coverage now validates every screenshot reference and both new workflow inputs. No blocking issues found.

@jinliyl
jinliyl merged commit 084c02e into agentscope-ai:main Oct 6, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants