Skip to content

test: validate generated HTML API migration lanes - #704

Closed
shczhen wants to merge 21 commits into
codex/html-migration-dartdocfrom
codex/html-migration-validation-report
Closed

test: validate generated HTML API migration lanes#704
shczhen wants to merge 21 commits into
codex/html-migration-dartdocfrom
codex/html-migration-validation-report

Conversation

@shczhen

@shczhen shczhen commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

Summary

Closes #697.

Verification

  • bun test scripts/html-to-md-migration.test.ts scripts/validate-html-api-migration.test.ts (13 passed)
  • node --check scripts/validate-html-api-migration.mjs
  • bunx biome check scripts/validate-html-api-migration.mjs scripts/validate-html-api-migration.test.ts
  • bun run html:migration:validate -- --source-root /path/to/shengwang-doc-source/html-docs
  • full validation completed against the real legacy source matrix
  • temporary generated content passed bun run types:check
  • bun run build was not run

Notes

This PR is stacked on #702 so the validation runner exercises all lane implementations without merging them into one review PR.

Set HTML_MIGRATION_SOURCE_ROOT instead of passing --source-root when preferred.

@shczhen
shczhen force-pushed the codex/html-migration-dartdoc branch from 3fede71 to 55c0bd4 Compare July 10, 2026 09:56
@github-actions

github-actions Bot commented Jul 10, 2026

Copy link
Copy Markdown

Vercel Preview

Preview URL: https://docs-portal-2hr3il9wr-agora-devx.vercel.app

@shczhen
shczhen force-pushed the codex/html-migration-validation-report branch from b5bf557 to 2f3847a Compare July 10, 2026 10:02
@shczhen

shczhen commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator Author

同步 Issue #746 的迁移脚本根因修复与回归测试:DITA 页面 description 不再跨 topic 边界读取首个 member shortdesc。提交 699c50fff;migration 20/20、types:check 通过。仍待 doc team 测试。

@shczhen

shczhen commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator Author

#746 的跨平台回归门禁已同步到本 PR(788d5f832):

  • 真实 DITA 输出校验会拒绝“页面 description 等于首个 API member 描述”。
  • 新增已提交 RTC DITA 内容静态门禁,防止脚本正确但生成产物未同步。
  • 本 PR 不包含 feat: migrate CN HTML API references #712 的 343 个内容文件更新。
  • 验证:迁移与校验测试 24/24、types:check、diff check 全部通过。

PR 保持未合并,待 doc team 测试。

@shczhen

shczhen commented Jul 14, 2026

Copy link
Copy Markdown
Collaborator Author

已在原 PR 为 #730 增加阻断式重复显式锚点验证;与生成侧共用 Markdown code protection scanner,不扫描 fenced/inline/跨行 code 示例。专项 6/6、types:check、Standards/Spec 审查通过。PR 保持未合并,等待 doc team 测试。

@Foesa-yyx

Copy link
Copy Markdown
Collaborator

Validation matrix audit verified cleanly from docs-portal CN-NEWDOC baseline: validation tests passed (7 files / 35 tests), bun run types:check passed, and git diff --check passed. This lane does not generate product content. Closing per audit request.

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