Repository navigation
下线「在线演示」homepage 字段 + 重写 README 面向外部用户 - #16
Merged
Merged
Conversation
homepage 从 schema、数据、视图、入口、投稿校验与链接巡检整类删除,卡片主入口统一为「查看仓库」;CONTRIBUTING、测试夹具与 CI 演练同步为新契约。README 重写为 6 节 47 行,清除 SPEC/§ 引用与内部工程细节。 Checkpoint: rnlexT3KLLg8uUPZhO9Qe
🚀 Deploying Preview to Cloudflare 🚀Preview URL: https://tds-conv-01a1bbc5-7f3c-7c00-9fd7-598a1b6eb0e7-workerhub.pama.workers.dev (commit b2a15b7)This URL reflects your latest Preview deploymentPreview Deployments by commit
|
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.
Summary
homepage字段从 schema 到数据、视图、卡片与详情页入口、投稿校验、外链巡检整类删除;strictObject使任何重新写入该字段的数据文件直接校验失败(守卫用例已加),卡片主入口统一为「查看仓库」。SPEC、§x.x引用与内部工程细节。scripts/按定版约束维持原状:目录、文件名、命令与执行逻辑均未动,仅两处头注释的字段清单随契约同步。Changes
数据(
src/data/projects/)enotify/someday/cloud-mail/edgeever/edgechat/uptimeflare删除homepage字段(站长个人实例与上游演示站地址)。cloud-mail.yaml长介绍删「演示站 skymail.ink,」,保留「部署步骤见 docs.skymail.ink」;edgechat.yaml删末句演示站说明。删后分别剩 3 句 / 2 句,仍满足 schema 的 2–4 句要求。契约与视图
project-schema.ts移除homepage定义;写入该字段的数据文件会报Unrecognized key: "homepage"并点名字段。project-types.ts/project-view.ts删除视图字段与映射;project-entry.ts的primaryEntry恒返回「查看仓库」,secondaryEntries只保留部署文档与仓库,EntryLink的demokind 一并删除(确认全仓无其他使用者)。deploy.method呈现部署动作(Deploy Button / 导入 / Fork / 部署指南 / 查看仓库),本次只删除「在线演示」这个补充入口,未改部署按钮体系。投稿校验与巡检
submission-checks.ts:LinkField与collectLinks去掉homepage;失败分级改为自研项目外链硬拦、第三方仅警告;ONE-449 的 HTTP 403 降级口径保持不变。link-health.ts及其 CLI:巡检字段列表去掉homepage。状态文件按 URL 记账、不含字段名,无需迁移。文档
CONTRIBUTING.md:字段表删homepage行、数据模板删对应行,外链规则表与命令注释去掉「演示站」表述;第 1 节「纯演示页不收录」按要求保留。/submit/页构建时同源渲染该文件,页面代码未改。README.md:整篇重写为六节 47 行;技术栈、常用命令全表、数据管线、环境变量、降级演练、页面与组件表、投稿校验表、目录结构、双线部署、上线核对表、范围与进度块全部删除。测试与演练
homepage时校验失败并点名该字段。drill-official-broken-home.yaml改为drill-official-broken-docs.yaml,改用不可达的docs_url触发硬拦。.github/workflows/ci.yml演练 4 的步骤名与提示文案改为「自研项目外链失败硬拦」,命令与断言口径不变。Testing
homepage68 处 / 22 文件 → 4 处 / 1 文件(仅新增守卫用例本身);「在线演示」9 处 → 0;「演示站」22 处 → 0。README.md:47 行(上限 80);SPEC、§均 0 命中。pnpm validate:data:11 个项目通过;pnpm validate:submission:repo / 外链 / 截图三项通过。pnpm test:129 项,128 通过、0 失败、1 跳过(原有的联网用例,按设计跳过)。pnpm lint:astro check0 error / 0 warning,prettier --check全部通过。HUB_SKIP_FETCH=1 HUB_SKIP_OG=1 pnpm build:24 个页面生成成功;产物中「在线演示」0 命中,enotify.oneboy.app/someday.oneboy.app0 命中,项目列表页 11 张卡片主按钮均为「查看仓库」,/submit/页无homepage。homepage→ 退出码 1,日志点为「字段 homepage:Unrecognized key」。pnpm check:links与pnpm health:links通过(21 个唯一 URL 全部可达)。homepage即上述守卫用例的测试代码,属规格要求的刻意保留。