Automate reference docs for commandline flags and env vars
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- rust
- Lĩnh vực
- build-system, documentation
Hướng nghiên cứu
Xem lại workflow hiện có để tạo tài liệu tham chiếu CRD và các trang tham chiếu về dòng lệnh và biến môi trường của HBase được tạo thủ công. Sau đó, so sánh đầu ra trợ giúp của các operator với phần tích hợp build.rs và bộ phân tích cú pháp clap được mô tả trong issue, bao gồm cả việc liệu các subcommands có cần được xử lý riêng hay không. Hoàn thành có nghĩa là lựa chọn và triển khai một phương pháp tạo tài liệu có thể bảo trì, tạo ra các trang tham chiếu có thể sử dụng mà không cần viết thủ công các danh sách flag và biến môi trường.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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/
- Ngôn ngữ chính
- CSS
- Star
- 13
- Fork
- 14
- Merge trung bình
- 4 ngày 8 giờ
- Pull request đã merge (30 ngày)
- 10
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của stackabletech/documentation
-
Withdraw ADR018 Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 68/100
stackabletech/documentation#734 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
stackabletech/documentation#779 ·
-
customer-request
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
stackabletech/documentation#773 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
stackabletech/documentation#754 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 25/100
stackabletech/documentation#753 ·
Tất cả issue của stackabletech/documentation
Issue tương tự
-
Update to NCCL 2.32 Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
conda-forge/nccl-feedstock#166 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
dsx-ai-factory/infra-controller#6694 ·
-
bug build
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
facebookincubator/velox#19143 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
pydantic/pydantic-ai#8636 ·
-
0.kind: enhancement 9.needs: package (update)
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100