Repository navigation
docs(citation): add GitHub native citation support - #405
Conversation
# 📝 Documentation ## Add repository citation metadata - Add only the root CITATION.cff using the supplied CFF 1.2.0 metadata. - Preserve Relax Contributors entity authors and the preferred software citation. - Validate YAML, the official schema, the arXiv title, and all pre-commit hooks on Python 3.10.
|
Thanks for contributing to Relax, @ShigureNyako! 感谢你为 Relax 做出贡献! Contribution guide / 贡献指南Describe the problem, your changes, and how you validated them. Keep each PR focused and run 请说明问题、改动和验证方式,保持 PR 聚焦,并在提交前运行 CI commands / CI 指令
Put one command on the first line of a new PR comment. Rerun/cancel require PR authorship or repository write access. 在新 PR 评论的首行写一条指令。PR 作者或有仓库写权限的贡献者可以重跑、取消 CI。 |
Nyanpasu 审查看板审查状态: ✅ 已通过 审查版本: a39d038 目标分支: main 审查完成,未发现问题。变更仅为根目录新增 15 行 CITATION.cff(CFF 1.2.0):官方 schema 与 cffconvert 2.0.0 验证均独立复验通过;arXiv:2604.11554 标题与两处引用逐字一致(v1 发布于 2026-04-13);内容与 README.md / README_zh.md 既有 BibTeX 引用完全一致;GitHub 官方文档确认默认分支根目录的 CITATION.cff(含 preferred-citation 渲染)即启用原生 'Cite this repository' 入口。仓库代码与 CI 均不读取该文件,无运行时影响;必需 CI 检查仍在进行,与本静态文件无耦合。
没有未解决的审查问题。 提交范围 · 接收 1 · 建议移出 0 · 待确认 0接收 1 个文件 · 建议移出 0 个文件 · 待确认 0 个文件。移出与待确认部分暂停深审,不代表审查通过。
精简审查与验证依据
生产代码的必要性与替代方案
Powered by Nyanpasu with glm-5.3[1m] xhigh, please check the suggestions carefully.
|
rai-studio-bot
left a comment
There was a problem hiding this comment.
审查结论:通过 ✅
本 PR 仅在仓库根目录新增 15 行 CITATION.cff(CFF 1.2.0),未改动其他文件。审查独立复核:YAML 单文档、无重复键;官方 CFF 1.2.0 schema(jsonschema 4.26.0)与 cffconvert 2.0.0 --validate 均通过;arXiv:2604.11554 的实际标题与文件中两处标题逐字一致(v1 发布于 2026-04-13);内容与 README.md:308 / README_zh.md:308 既有 BibTeX 引用一致;GitHub 官方文档确认默认分支根目录的 CITATION.cff(含 preferred-citation 渲染)即启用 "Cite this repository" 入口。仓库代码与 CI 均不读取该文件,无运行时影响。未发现问题。
审查看板:#405 (comment)
…er-profiler Brings in upstream/main 99a0b6a..653c43c (redai-studio#302, redai-studio#392-redai-studio#396, redai-studio#398, redai-studio#401, redai-studio#403, redai-studio#405). The only conflict is the guide sidebar in docs/.vitepress/config.mts: redai-studio#398 reformatted it with oxfmt (trailing commas, long entries split), and this branch adds the "Straggler Analysis" / "Straggler 分析" entries next to the same lines. Resolved by taking upstream's formatting and keeping the two straggler entries in their previous position.
What
仅在仓库根目录新增
CITATION.cff,提供 GitHub 原生 “Cite this repository” 功能所需的引用元数据。文件包含软件引用与preferred-citation;不修改 README、依赖、配置或运行时代码。Why
让研究者可以直接从 GitHub 获取 Relax 的引用信息,而不必手工整理。根目录此前没有
CITATION.cff,且已检查所有开放 PR 的变更文件,未发现重复的引用文件改动。How
type均为software,作者均为Relax Contributors,首选引用年份为2026。authors中使用实体作者,实体的必需字段是name;因此保留name: 'Relax Contributors',不改写成人名,也不替换为论文作者列表。Testing
pre-commit run --all-filespassespytest tests/)验证结果:
jsonschemaDraft 7 验证整个文件及两处实体作者,全部通过。uv tool run --python 3.11 --from cffconvert==2.0.0 cffconvert --validate -i CITATION.cff:通过。docformatter==1.3.1的安装兼容性问题阻塞;改用项目 CI 所用的 Python 3.10,运行uv run --no-project --python 3.10 --with pre-commit==4.3.0 pre-commit run --all-files --show-diff-on-failure,全部 16 个 hooks 通过。未跳过 hooks,未修改项目依赖或配置。git diff --cached --check:通过;自审确认变更仅为新增CITATION.cff,共 15 行。pytest tests/或新增代码测试:此次仅新增静态引用元数据,不涉及 Python 运行逻辑。GPU / 分布式集成测试也未运行,本地为 macOS arm64,未提供所需的多节点 GPU 环境。Type of Change
Screenshots / Logs
CFF 验证器输出: