Repository navigation
docs(readme): 改为插件总览卡片,维护说明移到 CONTRIBUTING - #15
Merged
Merged
Conversation
- README 按索引生成插件卡片(图标、作者、版本、API、分类、平台、stars、标签) - 新增 scripts/render-readme.mjs 及测试,validate 检查 README 与索引一致 - track-releases 追踪到新版本时同时更新 README - 索引原理、官方/社区对比、文档表、仓库结构、本地校验移到 CONTRIBUTING.md - 新增无图标插件使用的默认图标 assets/plugin-default.svg
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 改为插件总览
scripts/render-readme.mjs:根据lithe-plugin-index.json生成 README 中plugins:start/plugins:end标记之间的内容。requires能力)、分类、支持平台、GitHub stars 徽章和标签。tags。zh-Hans,超过 110 字会截断;没有icon的插件使用新增的assets/plugin-default.svg。原 README 内容移到 CONTRIBUTING.md
node scripts/render-readme.mjs。CI 与自动化
validate.yml:新增render-readme.mjs --check,README 与索引不一致时失败。track-releases.yml:追踪到新版本后重新生成 README,并一起提交到 bot PR。store.test.mjs:新增 3 个测试,覆盖 HTML 转义和默认图标、分类/平台/截断辅助函数、缺少标记时报错。关联
验证
node --test scripts/store.test.mjs:47 个测试全部通过node scripts/render-readme.mjs --check通过