Automate reference docs for commandline flags and env vars
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 35/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- rust
调研方向
检查现有的 CRD 参考文档生成工作流,以及手动生成的 HBase 命令行和环境变量参考页面。然后,将 operators 的帮助输出与 issue 中描述的 build.rs 和 clap 解析器集成进行比较,包括子命令是否需要单独处理。完成的标准是选择并实现一种易于维护的生成方式,在不手写 flag 和环境变量列表的情况下生成可用的参考页面。
由索引模型根据 Issue 内容生成。
描述
Problem: Currently we have hand written docs in every operator about commandline flags and environment variables read by the operators. This is difficult to maintain and in some places it is already out of date. Like the CRD references, it would be good to generate this to reduce maintenance burden.
Cheapo variant A: dump the help page
The help pages of the operators actually already reference all the flags (obviously) and also most env vars (some would need to be added through clap, that is easy though). We already do this for stackablectl. It isn't pretty, the formatting is actually quite ugly.
By default the help doesn't show help for subcommands. Maybe we have to call each subcommand individually (or maybe we just show the help for run).
Slightly more involved variant B: generate man page, convert to adoc
There is https://github.com/clap-rs/clap/tree/master/clap_mangen to generate man pages from clap.
We could use pandoc to convert the man page to an adoc file:
pandoc -s -t asciidoc example.man -o example.adoc
And use that as our reference page.
This is a bit annoying to implement because the build.rs file has to include the clap parser definition too. Also I am unsure about the pandoc converted adoc page, I am not sure if the styling can be changed or how easily it can be done.
For reference (currently manually generated):
https://docs.stackable.tech/home/stable/hbase/reference/commandline-parameters/
https://docs.stackable.tech/home/stable/hbase/reference/environment-variables/
- 主要语言
- CSS
- 星标
- 13
- 派生
- 14
- 平均合并
- 4 天 8 小时
- 30 天内合并 PR
- 10
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
stackabletech/documentation 的其他 Issue
-
Withdraw ADR018 未关闭
难度 1/5 1 小时以内 新手友好度 68/100
stackabletech/documentation#734 ·
-
难度 3/5 1-2 天 新手友好度 55/100
stackabletech/documentation#779 ·
-
customer-request
难度 4/5 3-5 天 新手友好度 35/100
stackabletech/documentation#773 ·
-
难度 4/5 3-5 天 新手友好度 25/100
stackabletech/documentation#754 ·
-
难度 3/5 1-2 天 新手友好度 25/100
stackabletech/documentation#753 ·
查看 stackabletech/documentation 的全部 Issue
相似的 Issue
-
kind/bug
难度 2/5 1-3 小时 新手友好度 88/100
kubernetes-sigs/prow#953 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 88/100
zephyrproject-rtos/zephyr#119726 ·
-
out-of-date
难度 1/5 1 小时以内 新手友好度 82/100
CachyOS/CachyOS-PKGBUILDS#1894 ·
-
comp/dashboard P3 type/bug
难度 2/5 1-3 小时 新手友好度 86/100
NousResearch/hermes-agent#117722 ·
-
bug
难度 1/5 1 小时以内 新手友好度 92/100
objectionary/jeo-maven-plugin#1760 ·