✨ feat(wiki): add authors field#38
Merged
nick-cjyx9 merged 1 commit intoopen-ani:mainfrom Feb 10, 2026
Merged
Conversation
Member
|
我觉得就现在的方案很 ok,等到我们有了非 GitHub 的贡献者再拓展吧 |
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.
在文档(
wiki)在标题下展示页面作者(贡献者)信息,frontmatter 新增authors字段。UI 灵感来自 GitHub 提交记录中的 co-author 展示形式。原因是目前仅有 iOS 自签页面有一个致谢,感觉不是很统一。同时,8571da9 也提及了「你可以选择是否在正式发布页面上署名」。
不过我还在想会不会有更好的方案,如果目前感觉还 OK,也可以先合并。
预览效果如下:
当前设计的不足是:当作者数量较多需要换行处理时,会显得有些臃肿(当然,很可能并不会太多)。一个可能的改进方向是:超过一定数量后,对后续作者进行折叠显示。但似乎感觉不太公平。同时,只考虑了 GitHub 上的贡献者(这个倒是可以简单扩展一下)。
其他可选思路: