Skip to content

feat: 添加公众号关注入口与 GitHub Discussions 评论 - #40

Merged
MoMeak9 merged 2 commits into
mainfrom
feat/wechat-follow-ml
Oct 9, 2026
Merged

MoMeak9 merged 2 commits into
mainfrom
feat/wechat-follow-ml

Conversation

@MoMeak9

@MoMeak9 MoMeak9 commented Oct 9, 2026

Copy link
Copy Markdown
Owner

中文博客缺少公众号关注入口,文章也没有评论区。本次加入「泯泷ML」二维码关注卡,并使用 Giscus 将公开文章的评论保存到本仓库的 GitHub Discussions。

公众号入口出现在中文首页、文章末尾、联系页、社交栏、页脚和手机菜单;二维码使用上传原图,提供保存图片与复制名称功能,适配手机及深色模式,英文界面不显示公众号入口。

文章评论按稳定的 Markdown 源路径映射,中英文版本和不同部署前缀共享讨论;按需加载,同步明暗主题,支持加载失败重试及 GitHub 讨论入口。评论 UI 位于文章搜索正文之外。已通过 GitHub 与 Giscus 官方接口核验仓库、App 安装和 Announcements 分类配置,站点不存放 GitHub Token。

验证:

  • pnpm check:0 errors、0 warnings,保留既有 4 hints。
  • pnpm test:55 项测试通过。
  • /MyBlogDoc/ 前缀下构建和 pnpm test:build:14 项测试通过,新增原始二维码发布、中英文评论标识和搜索正文隔离验证。
  • Chromium 验证:二维码显示/下载字节一致、复制名称、320px 浅色与深色布局、英文排除。
  • 使用经现有 TLS 校验的 Giscus 官方原始响应渲染评论框和 GitHub 登录入口,验证真实配置及主题同步;交互隔离测试覆盖加载失败与重试、首次无讨论状态、伪造消息拒绝和双语映射。

验证限制:云环境的 Chromium 不信任平台代理证书,持久导入代理 CA 的请求被自动审批拒绝。测试通过原始响应转交验证界面,保留上游 TLS 校验,未修改浏览器证书库,也未提交测试留言或验证登录后发帖。

配置和维护说明见 docs/comments.md 与 README。

@vercel

vercel Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
myblogdoc Ready Ready Preview Oct 9, 2026 8:00am UTC

@MoMeak9
MoMeak9 marked this pull request as ready for review October 9, 2026 15:45
@MoMeak9
MoMeak9 merged commit 5792ce4 into main Oct 9, 2026
4 checks passed

This branch was successfully deployed

1 active deployment
Preview — 3ab3d3f6 Deployed Oct 9, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant