docs(examples): 修复 hello-world README 指向已删除示例的两条死链 - #3495
Merged
Conversation
../crm/ 与 ../todo/ 两个目录已在 12b287d(2026-05-02)随 Todo/CRM 示例移除, README 的 "Learn more" 仍指向它们,入门读者第一跳即 404。 按 examples/README.md 的 rule of thumb 进阶路径替换为现存的两个示例: - byo-backend-console:接入已有产品 / 自有后端 - console-starter:从零起一个 ObjectStack console 描述取自各自 README 与 package.json,未臆造;../schema-catalog/ 原样保留。 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GTRjn8xBqp75dk7kFupVRt
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
yinlianghui
marked this pull request as ready for review
August 6, 2026 13:51
This was referenced Aug 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #3486
背景
examples/hello-world/README.md的 "Learn more" 三条里有两条是死链:../crm/与../todo/指向的目录已在 12b287d(2026-05-02,refactor: remove example Todo application and related files)随 CRM/Todo 示例一并删除。hello-world 是入门示例,读者读完的第一跳就是这一节 —— 三条里两条 404。第三条../schema-catalog/仍有效。改动
只改
examples/hello-world/README.md一个文件,只改 "Learn more" 三行:../crm/、../todo/两条;examples/README.md的 "Rule of thumb" 进阶路径补上现存的两个可运行示例(顺序即该路径顺序:hello-world 之后 → 接入已有产品 → 从零起 console);../schema-catalog/原样保留。描述不臆造,逐条取自仓库内既有材料:
../byo-backend-console/~100 lines、自定义DataSource+ router、mock REST 而非 ObjectStack)与examples/README.md表格行("embed ObjectUI into your own app and connect it to your own REST/GraphQL backend")../console-starter/package.json的description("Opinionated, fork-ready console template built on @object-ui/app-shell with the full plugin set wired up.")与examples/README.md表格行验证
按 PR #3485 的做法,对改后文件做离线相对链接解析(把每个相对 href 落到文件系统上):
改前(
git show origin/main:examples/hello-world/README.md):改后:
方向是事先定好的:死链修复应当"改前红、改后绿",实际即如此。
其余检查:
grep -naP '[\x00-\x08\x0b\x0c\x0e-\x1f]'→ 无命中,file报Unicode text, UTF-8 text;pnpm check:control-bytes→OK (scanned 3674 tracked text file(s); skipped 85 binary);pnpm docs:check-links→Docs links are valid.(说明:该 gate 只走content/docs且只校验/docs开头的路由,examples/**/README.md的相对链接根本不在其扫描面内 —— 这正是这两条死链能存活三个月的原因,已另行记录,不在本 PR 处理)docs-only,无 changeset。
ROADMAP.md/CHANGELOG.md的历史记录未动;content/docs的同类死链归 #3490,本 PR 不碰。Generated by Claude Code