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

(PUP-12075) Render puppet man page correctly #9466

Merged
merged 2 commits into from
Aug 30, 2024

Conversation

joshcooper
Copy link
Contributor

@joshcooper joshcooper commented Aug 29, 2024

Previously, the man/man8/puppet.8 man page wasn't formatted correctly
with each subcommand and summary on a new line. This was because
puppet --help doesn't output ronn format, just raw text. So generate
puppet.8.ronn in valid ronn format so that it can be converted to
roff. Use man --local-file man/man8/puppet.8 to verify the results.

Also don't blindly run <bin>/<app> --help for every app. That's left
over from when puppet had multiple bin stubs.

Since ronn shells out to groff, abort if the latter is not installed.

Hardcode the http_user_agent value so it's not sensitive to the puppet
version or the ruby version/architecture the user is running.

@joshcooper joshcooper force-pushed the puppet_man branch 2 times, most recently from ab8f969 to ef2fc04 Compare August 29, 2024 16:43
@joshcooper joshcooper changed the title Render puppet man page correctly (PUP-12075) Render puppet man page correctly Aug 29, 2024
Add common_app_summaries and specialized_app_summaries methods and
refactor help face to call them.
@joshcooper joshcooper marked this pull request as ready for review August 29, 2024 16:53
@joshcooper joshcooper requested a review from a team as a code owner August 29, 2024 16:53
@joshcooper joshcooper added the maintenance Maintenance chores are excluded from changelogs label Aug 29, 2024
Previously, the man/man8/puppet.8 man page wasn't formatted correctly
with each subcommand and summary on a new line. This was because `puppet
--help` doesn't output ronn format, just raw text. So generate
`puppet.8.ronn` in valid ronn format so that it can be converted to
roff. Use `man --local-file man/man8/puppet.8` to verify the results.

Also don't blindly run `<bin>/<app> --help` for every app. That's left
over from when puppet had multiple bin stubs.

Since ronn shells out to groff, abort if the latter is not installed.

Hardcode the http_user_agent value so it's not sensitive to the puppet
version or the ruby version/architecture the user is running.
@joshcooper joshcooper merged commit 8d17fc2 into puppetlabs:main Aug 30, 2024
9 checks passed
@joshcooper joshcooper deleted the puppet_man branch August 30, 2024 00:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Maintenance chores are excluded from changelogs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants