Ggithub-actions[bot]Update star history chart [skip ci]
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
fix: make repository scripts package importable | 1 个月前 | |
docs: add Brazilian Portuguese (pt-BR) translation (#1049) * docs: add Brazilian Portuguese (pt-BR) translation Add book-ptbr/ with complete translation of all 12 chapters (introduction, chapters 1-10, afterword) from the original Chinese with English reference. - 131 translation units, each structurally validated (fenced code, inline code, math, links, images, footnotes, pandoc attributes, heading levels) - Glossary of ~100 technical terms for consistent PT-BR terminology - build_pdf.sh adapted for .ptbr.md files with Portuguese language option - mkdocs.yml: add ptbr language with prefix/suffix/readmeSuffix - build_epub.sh: add ptbr edition with Portuguese metadata - .github/workflows/build-latest.yml: add book-ptbr to triggers, build matrix, and release upload steps - extras/site-nav-i18n.json: add ptbr navigation translations - README.md: add Portuguese (Brasil) to language switcher - README.ptbr.md: new Portuguese landing page with full TOC Translation by Leonardo F. Nascimento (LABHD-UFBA) with AI assistance (GPT-5.6 Sol), structural fidelity validation, and technical glossary. * fix(ptbr): complete edition assets and publication integration - add the full 133-image set and localized PDF helpers - add translated reference answers with structural validation - add the Portuguese site homepage and include book-ptbr in site assembly - localize cover, preamble, cross-references, and question callouts - align EPUB language metadata and remove unsupported experiment indexes - update root documentation and release links for the 15th edition * docs(ptbr): translate figure text in book-ptbr/images to Portuguese Translates the descriptive text inside the ~130 SVG diagrams from English to Brazilian Portuguese, following the same pattern already used by the other translated editions (book-es, book-ja, etc.): only the <text> content changes, layout/structure/coordinates untouched. Code identifiers, product/model names, and technical acronyms are kept in their original form. * docs(ptbr): credit the figure-translation contribution Adds Líbna Raffaely's credit for translating the SVG figure text, alongside Leonardo F. Nascimento's existing translation credit, in README.ptbr.md, index.ptbr.md, and the root README.md language list. Also updates index.ptbr.md's now-outdated note that figures kept their English labels. --------- Co-authored-by: Leonardo F. Nascimento <10790532+leofn@users.noreply.github.com> Co-authored-by: LibnaRaffaely <147429674+LibnaRaffaely@users.noreply.github.com> | 8 天前 | |
fix(i18n): use shortest BCP 47 locale tags and add redirect stubs - Simplify region subtags: en-US -> en, ta-IN -> ta, vi-VN -> vi (zh-CN/zh-TW keep region subtags to disambiguate the two Chinese variants) - Add redirect stubs at the old locations (root README.<lang>.md, docs/LEARNING*.md) so existing external links don't 404 - Remove stray blank line in docs/zh-TW/README.md | 1 个月前 | |
Merge pull request #669 Reviewed and verified. | 1 个月前 | |
polish(site): 抽屉章节标题跟随语言 + 分享卡片 og:image - lang-switcher:移动端抽屉展开章节子树时,Material 会把章节名 重复为 <label class="md-nav__title">,此前只翻译 .md-nav__link, 翻译版上这里仍是中文;现在按 NAV_I18N 一并翻译 - seo_meta:注入 og:image / twitter:image(summary_large_image), 指向新增的静态分享卡片 assets/og-card.png(1200×630,fenix 扁平 风格,由 scripts/gen_og_card.py 生成,品牌文案变更时重新生成) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0174uBrJJZXh84tA4QgUGkaz | 1 个月前 | |
fix(star-history): 改用 GraphQL 增量拉取,修复超过 4 万星标后的 CI 失败 (#964) * fix(star-history): 改用 GraphQL 增量拉取,修复超过 4 万星标后的 CI 失败 REST 的 /repos/{repo}/stargazers 拒绝翻过第 40000 条(HTTP 422),仓库星标 超过 4 万后每日任务必然失败。改用没有该上限的 GraphQL API。 但直接替换会更慢:实测 GraphQL 单页 2.55s,而 REST 约 0.5s,顺序遍历全量 需要约 17 分钟。真正的问题在于每天都把 4 万条 stargazer 重新拉一遍,而历史 部分根本不会变。因此把星标数按小时计数存入 scripts/star-history-data.json 一并提交,每次运行只从上次存下的 GraphQL 游标继续拉取新增星标: 每日运行 5m10s(且已失败) -> 约 3~15s 全量重建 -- -> 2m17s 一个小时桶在成图上约 2.4px,比曲线本身还窄,因此图形没有变化(已与上一次 提交的图对比确认)。 全量重建只在首次运行或取消星标导致计数漂移时发生。GitHub 的 stargazer 游标 是 base64 的 cursor:v2: 加 msgpack [starredAt, user_id] 键集位置,可以构造出 来直接跳到某个时间点,从而把整段历史切成互不重叠的时间区间并发拉取,一次 请求用字段别名带 10 页,2m17s 而非 17 分钟。这属于未公开行为,所以没有让任何 东西依赖它:使用前先探测,结果再与 stargazerCount 对账,任一环节不符就退回 逐页顺序拉取。每日路径完全不用它——它从 GitHub 上次返回的真实游标续拉。 取消星标造成的漂移会自愈:小幅漂移并入起始日期之前的基数,大幅漂移触发重建。 验证:把状态回退 1441 个星标后增量补齐,所有小时桶与全量重建逐一相符;强制 探测失败可正确退回顺序拉取。build_series 签名变化已同步更新原有测试,并补充 了区间边界、游标有效性、区间拼接与续拉点选取的 7 个用例。 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KcSRY7puhECP2uSdtrXsFV * Update star history chart [skip ci] --------- Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 20 天前 | |
fix(web): preserve per-page revision dates (#585) | 1 个月前 | |
fix(mkdocs): handle None or empty markdown input in pandoc strip hook (#781) * fix(mkdocs): handle None or empty markdown input in pandoc strip hook * docs(ch10): restore graph engineering footnote and renumber tables * docs(ch10): fix table references and experiment numbering * cleanup: strip unrelated docs noise from mkdocs pandoc fix PR | 1 个月前 | |
polish(site): 抽屉章节标题跟随语言 + 分享卡片 og:image - lang-switcher:移动端抽屉展开章节子树时,Material 会把章节名 重复为 <label class="md-nav__title">,此前只翻译 .md-nav__link, 翻译版上这里仍是中文;现在按 NAV_I18N 一并翻译 - seo_meta:注入 og:image / twitter:image(summary_large_image), 指向新增的静态分享卡片 assets/og-card.png(1200×630,fenix 扁平 风格,由 scripts/gen_og_card.py 生成,品牌文案变更时重新生成) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0174uBrJJZXh84tA4QgUGkaz | 1 个月前 | |
fix(site): 修复章节页「编辑此页」「查看源代码」按钮 404 (#1024) build_site.sh 会把 book/chapterN.md 提升为 book/chapterN/index.md, 以便 navigation.indexes 让侧边栏章节标题可点击。MkDocs 由这个暂存路径 推导 page.edit_url,Material 的两个按钮又都源自它,于是指向仓库中并不 存在的 book/chapterN/index.md,两个按钮双双 404(issue #1019)。 新增 site_edit_urls.py 钩子,复用 source_path_for_page 的映射改写 File.edit_uri(MkDocs 文档明确允许覆盖)。修好 edit_url 即同时修好 两个按钮,因为「查看源代码」是 edit_url 的 edit→raw 替换。仓库中没有 对应源文件的页面置为 None,直接不渲染按钮,而不是给出打不开的链接。 影响中文版全部 10 章;book-en 等平铺的译本页面不受影响。 Closes #1019 Claude-Session: https://claude.ai/code/session_011ihudnjwyEnAaEC3yzQkmw Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com> | 15 天前 | |
fix(i18n): preserve colons in quoted mkdocs nav labels (#648) * fix(i18n): preserve colons in quoted mkdocs nav labels canonical_nav_labels truncated quoted nav labels containing colons at the colon character. This caused catalog validation to fail when checking translated nav entries against mkdocs.yml. Now canonical_nav_labels handles quoted strings explicitly to preserve label titles with colons. * refine(i18n): support escaped quotes and multiple colons in nav labels * refine(i18n): preserve colons in quoted mkdocs nav labels while keeping site_i18n structure | 1 个月前 | |
fix(site): 修复章节页「编辑此页」「查看源代码」按钮 404 (#1024) build_site.sh 会把 book/chapterN.md 提升为 book/chapterN/index.md, 以便 navigation.indexes 让侧边栏章节标题可点击。MkDocs 由这个暂存路径 推导 page.edit_url,Material 的两个按钮又都源自它,于是指向仓库中并不 存在的 book/chapterN/index.md,两个按钮双双 404(issue #1019)。 新增 site_edit_urls.py 钩子,复用 source_path_for_page 的映射改写 File.edit_uri(MkDocs 文档明确允许覆盖)。修好 edit_url 即同时修好 两个按钮,因为「查看源代码」是 edit_url 的 edit→raw 替换。仓库中没有 对应源文件的页面置为 None,直接不渲染按钮,而不是给出打不开的链接。 影响中文版全部 10 章;book-en 等平铺的译本页面不受影响。 Closes #1019 Claude-Session: https://claude.ai/code/session_011ihudnjwyEnAaEC3yzQkmw Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com> | 15 天前 | |
feat(he): publish and integrate the Hebrew edition (#924) * fix(he): publish PDF and EPUB builds * docs(he): integrate Hebrew edition across the project | 23 天前 | |
Update star history chart [skip ci] | 2 天前 |