(auto)generate up-to-date documentation
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 文档
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 领域
- api, backend, documentation
调研方向
首先,查看链接的 staging /docs 端点上的现有 FastAPI 文档,以及概念验证中展示的 kernelci.api.models 模块。比较当前如何表示 kci 命令、API 端点和 Node 子类,然后确定生成的文档必须覆盖这三个方面中的哪些内容。完成的标准是:已生成约定的文档,并且用户和开发者都可以使用。
由索引模型根据 Issue 内容生成。
描述
As mentioned in other issues (such as #2040 and #2092), the new system lacks documentation for both users and developers.
A first step in solving this problem could be to look at auto-generation for items easily documented in the code itself. this includes:
kcicommands- API endpoints
fastapialready provides some kind of endpoint/schema documentation, but it's incomplete and barely usable; we could, however, have a look at how this works and get some inspiration there
- Node types & formats
- Partly provided by
fastapi(see above) but only documents the top-levelNodemodel, not any of its sub-classes - We could create a script which would leverage pydantic's schema() creation facilities, see the following PoC for an example:
- Partly provided by
import kernelci, inspect
from kernelci.api.models import *
def iskcimodel(model):
if (inspect.isclass(model) and
model.__module__ == "kernelci.api.models" and
hasattr(model, 'schema')):
return True
return False
for name, myclass in inspect.getmembers(kernelci.api.models, iskcimodel):
print(f"{name} -> {myclass.schema()}")
- 主要语言
- Python
- 星标
- 120
- 派生
- 110
- 平均合并
- 8 小时 1 分钟
- 30 天内合并 PR
- 13
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
kernelci/kernelci-core 的其他 Issue
-
Allow custom container registry in the qemu boot method for LAVA TestJob template可能已有人在做 @6eanut 于 1 天前认领。 未关闭good first issue
难度 2/5 1-3 小时 新手友好度 72/100
kernelci/kernelci-core#2591 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 48/100
kernelci/kernelci-core#3243 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 25/100
kernelci/kernelci-core#3234 ·
维护者通常 1 天内回复
-
Make Kubernetes job network readiness checks bounded and deployment-independent可能重新可做 @Aniket1260 于 53 天前认领,目前没有进行中的 PR。 未关闭good first issue techdebt
难度 5/5 一周以上 新手友好度 35/100
kernelci/kernelci-core#3197 · 3 条评论 ·
维护者通常 1 天内回复
-
chromeos techdebt
难度 5/5 一周以上 新手友好度 35/100
kernelci/kernelci-core#3196 ·
维护者通常 1 天内回复
查看 kernelci/kernelci-core 的全部 Issue
相似的 Issue
-
style: article/section 📝 system: cloud.rc ☁️ system: security 🔐
难度 2/5 1-3 小时 新手友好度 65/100
uabrc/uabrc.github.io#1262 ·
-
documentation
难度 2/5 1-3 小时 新手友好度 70/100
NCAR/miles-credit#526 ·
-
documentation
难度 1/5 1-3 小时 新手友好度 76/100
conda/conda-lock#957 ·
维护者通常 1 天内回复
-
Type: Bug
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
aws-samples/sample-per-model-bedrock#464 ·
维护者通常 1 天内回复