Skip to content

Overhaul manual pages for the web#4675

Merged
mislav merged 6 commits intotrunkfrom
docs-web-formatting
Nov 9, 2021
Merged

Overhaul manual pages for the web#4675
mislav merged 6 commits intotrunkfrom
docs-web-formatting

Conversation

@mislav
Copy link
Contributor

@mislav mislav commented Nov 3, 2021

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:

  • Usage synopsis for runnable commands is now rendered near the start of the manual page, rather than in the middle
  • The --help flag is no longer repetitively documented in every manual page as an inherited flag
  • Every command man page now links to its parent command, making it easier to navigate "upwards"
  • Group gh secret among Actions commands
  • Consistently capitalize "GitHub Actions"
  • Make sure displayed URLs are rendered as hyperlinks
  • Fix rendering of gh codespace cp docs

- 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
@mislav mislav requested review from a team as code owners November 3, 2021 18:13
@mislav mislav requested review from samcoe and removed request for a team November 3, 2021 18:13
Copy link
Contributor

@josebalius josebalius left a comment

Choose a reason for hiding this comment

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

Codespaces changes look good!

@gileswells
Copy link

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. 🤷

@mislav
Copy link
Contributor Author

mislav commented Nov 9, 2021

@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 👍

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.

4 participants