fix(docs): 更新 README 中 Star 增长图表为 star-history.dera.page - #141
Closed
Dessalines39394 wants to merge 1 commit into
Closed
fix(docs): 更新 README 中 Star 增长图表为 star-history.dera.page#141Dessalines39394 wants to merge 1 commit into
Dessalines39394 wants to merge 1 commit into
Conversation
修复 README 中 Star 增长图表链接失效的问题。 原图表因 GitHub stargazer API 限制而无法正常显示,现改用 star-history.dera.page(基于无 API token 的备用数据源),使 Star 增长图表恢复可用。 将 README.md 与 README-en.md 中的 star-history.com / api.star-history.com 域名统一替换为 star-history.dera.page,图表接口保持 /svg 不变。
Member
|
感谢提交,不过这个 PR 我们不会合并。 我实测了一下,README 里现在用的官方接口是正常的,能返回完整图表: 也就是说 PR 描述里「图表因 API 限制失效」的前提不成立。 另外这个改动会把 README 上的图片和链接都指向一个第三方域名,等于把首页上一块位置的控制权交出去 —— 访客每次打开都会向它发请求,而对方随时可以替换返回内容。在没有实际故障需要修的前提下,这个代价我们不接受。 同一个域名的相同 PR 目前正被多个新注册账号批量投递到几十个仓库,一并说明下关闭原因。如果后续官方接口真的挂了,我们会自己评估替代方案。 |
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.
问题描述
README 中的 Star 增长图表目前无法正常显示,原因在于 GitHub stargazer API 的限制导致图表请求失效。
解决方案
将图表切换至无 API Token 需求、同一域名同时处理 API 与前端请求的替代服务(star-history.dera.page):
star-history.com/api.star-history.com统一替换为star-history.dera.page/svg图表接口保持不变,仅更新域名改动范围
README.md- 更新 Star 增长图表的链接与域名README-en.md- 更新 Star History 图表的链接与域名测试
已在本地验证替换后的链接格式正确。