-
Notifications
You must be signed in to change notification settings - Fork 1.5k
docs: Consistent sh vs. console syntax highlighting #27
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
Conversation
|
Can one of the admins verify this patch? |
1715bca to
54fb231
Compare
GitHub uses Linuguist for syntax highlighting [1], and Linuguist defines two related grammars: * Shell (alias 'sh') [2], which applies to POSIX and similar shell languages. * ShellSession (alias 'console') [3], which extends the Shell grammar with support for prompts and command output as you would usually see in an interactive shell session. This commit consistently uses 'sh' to highlight blocks which contain only shell commands (without prompts or output). And it uses 'console' to highlight blocks which contain prompts, commands, and output. I've also removed prompts blocks which contain no output, because in the no-output cases that approach seemed more popular within this repository. I've also standardised on the 'sh' alias, where this repository previously used both 'sh' and 'shell'. I've also added continuation prompts (PS2) to the long describe-auto-scaling-groups example, to keep the continued command from being marked up as output. And I've replaced the terminal \ continuation there with a terminal |; we need a pipe anyway so we might as well save a character ;). [1]: https://help.github.com/articles/creating-and-highlighting-code-blocks/#syntax-highlighting [2]: https://github.com/github/linguist/blob/v6.2.0/lib/linguist/languages.yml#L4317-L4378 [3]: https://github.com/github/linguist/blob/v6.2.0/lib/linguist/languages.yml#L4379-L4390
54fb231 to
ed9a89f
Compare
|
/lgtm |
|
/ok-to-test |
|
@wking: The following test failed, say
DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
|
The e2e-aws is the same operator Instantiate the template e2e-aws into the operator namespace and wait for any pods to complete as seen in #29. But this time the error message is: |
Add a manifest and ImageStream info for images needed by the CBO
Update default values to proceed with install
Improve service URL handling
GitHub uses Linuguist for syntax highlighting, and Linuguist defines two related grammars:
Shell(aliassh), which applies to POSIX and similar shell languages.ShellSession(aliasconsole), which extends theShellgrammar with support for prompts and command output as you would usually see in an interactive shell session.This commit consistently uses
shto highlight blocks which contain only shell commands (without prompts or output). And it usesconsoleto highlight blocks which contain prompts, commands, and output.I've also removed prompts blocks which contain no output, because in the no-output cases that approach seemed more popular within this repository.
I've also standardised on the
shalias, where this repository previously used bothshandshell.