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
Overhaul manual pages for the web #4675
Conversation
- Examples block now moved to its own section - Refer to flags by their full names - Use backticks for delimiting command-line expressions - Use double quotes for literal values
- "Examples" section now renders with syntax highlighting and doesn't interpret curly braces as Liquid tags anymore - Flags are now listed with nicer formatting than just being rendered to a plain text block - Flags are now listed above the "Examples" section - The `--help` flag is no longer explicitly and repetitively being listed as an inherited flag under every command - Usage synopsis line is now rendered early in the documentation for a command - Every command that has subcommands now explicitly lists those subcommands in its documentation
|
On a whim after stumbling across it I took a crack at adding the code formatting before checking to see if any of the active PR's or issues addressed it. Was literally the first go I've ever written and it was prematurely superseded by a PR approved yesterday. |
|
@gileswells This happens to me all the time. I hope you had fun fixing the bug on your own and learning Go. Don't let this discourage you from contributing to our or any other project |
Commands that have subcommands now list those subcommands in their docs:
Command flags are now rendered as a definition list in HTML rather than as plaintext table and they now appear above the "Examples" section:
"Examples" sections are now syntax-highlighted and exempt from processing Go template
{{ ... }}tags as if they were Liquid tags for Jekyll sites:Also:
--helpflag is no longer repetitively documented in every manual page as an inherited flaggh secretamong Actions commandsgh codespace cpdocsThe text was updated successfully, but these errors were encountered: