Skip to content
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

docs: use clap_mangen and roff to generate manpage #231

Merged
merged 1 commit into from
Oct 2, 2023

Conversation

nc7s
Copy link
Contributor

@nc7s nc7s commented Oct 2, 2023

Fixes #226. cargo xtask gen && man gen/sd.1 to try it out.

I think this also fixes (?) #134, including list of flags and its formatting, and return codes. Unfornutaly clap_mangen has no custom section support (yet), so I've learned from clap-rs/clap#3579 and used roff to make the EXIT STATUSES and EXAMPLES sections.

Note that the list of flags formatting is "fixed" with separating each flag into its own paragraph, but that should be tolerable I guess.

@CosmicHorrorDev CosmicHorrorDev self-requested a review October 2, 2023 15:30
Copy link
Collaborator

@CosmicHorrorDev CosmicHorrorDev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for taking this on! This is a huge improvement over the existing manpage

@CosmicHorrorDev CosmicHorrorDev merged commit 4ed7338 into chmln:master Oct 2, 2023
8 checks passed
@nc7s nc7s deleted the man-with-clap_mangen branch October 14, 2023 21:23
@nc7s nc7s restored the man-with-clap_mangen branch October 14, 2023 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

man page rendering is broken, resulting in broken examples
2 participants