Repository navigation
Conversation
Contributor
|
有冲突 |
Preserve upstream generated community document handling while refreshing provenance once per build. Adapt the regression fixture to include the code of conduct source.
Contributor
Author
|
@153sfd 冲突已修复并推送,感谢提醒。 |
This branch has not been deployed
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.
变更内容
页面最近提交信息使用全局
_last_commit_cache,但没有在下一轮构建时失效。MkDocs serve 复用 hook 模块时,即使文件已有新提交,页面仍可能显示旧作者、日期和提交;未提交页面的None结果也会一直被缓存。on_pre_build开始时清空缓存,保留同轮构建内的查询复用。None的页面提交后恢复显示。已将上游
master的bfc8a01fb9c9e82f6aa69ea79db63d4627731b2d通过普通合并提交同步到本分支,保留上游的GENERATED_DOC_FILES映射、社区文档复制、编辑链接及出处映射和行为准则测试。相对该上游基线,本 PR 仍只修改hooks.py和tests/test_hooks.py。生命周期依据:MkDocs hooks 文档。
关联 Issue:无。本次修复页面作者信息的缓存问题,与贡献指南复制告警的既有修复独立。
变更范围
自查清单
实际验证
2026-11-18 重新验证,基线为上游
master的bfc8a01fb9c9e82f6aa69ea79db63d4627731b2d,修复提交为49f798caf3d27deb6ff68cf87cb8ec1978ce1b24。hooks.py:3 项中 1 项通过、2 项失败,分别复现旧提交信息未刷新、首次提交后仍显示为空的问题。python -X utf8 -B -m unittest discover -s tests -p test_hooks.py -k cache -v:3 项通过。python -X utf8 -B -m unittest discover -s tests -v:本分支 72 项通过;同一环境的上游基线 69 项通过,均无跳过或失败。OpenHUTB、article、100。没有新增告警,严格构建未通过。git diff --check upstream/master通过;无冲突标记;预留的五个文档相对上游没有差异。上述命令使用现有虚拟环境 Python;仅为本次进程将 Windows
TEMP/TMP指向工作区临时目录,未修改仓库配置或系统权限。测试通过真实 Git 提交和同进程多轮钩子调用验证缓存生命周期,未实际启动完整浏览器预览会话。