-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[crmsh-4.6] Dev: doc: implement help2adoc (#1374) #1380
[crmsh-4.6] Dev: doc: implement help2adoc (#1374) #1380
Conversation
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## crmsh-4.6 #1380 +/- ##
==========================================
Coverage 52.84% 52.84%
==========================================
Files 79 79
Lines 23949 23949
==========================================
Hits 12655 12655
Misses 11294 11294 ☔ View full report in Codecov by Sentry. |
Fixed in 0d66d03 |
convert help text generated by python's argparse to asciidoc
extracts sections needed to be generated from argparse help from tags in crm.8.adoc and generates Makefile for building those adocs
usage: `podman run --rm -ti -v <crmsh source root dir>:/opt/crmsh local/crmsh-doc-builder:latest`
…oc (ClusterLabs#1374) To generate a complete document, those sections generated from argparse help needed to be included from crm.8.adoc
`make all` now generates crm.8.html.
f94beaa
to
497303f
Compare
Great job! Then the next stage will be auto-submit the web contents to crmsh.github.io, in a GH action I guess, right? |
This pull request includes:
help2adoc
to convert the help text generated by pythonargparse
module to asciidochelp2adoc
andcrm.8.adoc
to generated a complete documentUsage:
The final results is
doc/generated-sources/crm.8.adoc
anddoc/generated-sources/crm.8.html
Part of #1374.