-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
Shell code snippets include command prompt #12739
Comments
@sftim can you provide an example of type mixed with sample output ? |
Ah, sorry. I edited that out whilst drafting @DanyC97 I've updated the issue description. |
I would like to submit PR for this issue /assign @iamneha |
@iamneha: GitHub didn't allow me to assign the following users: iamneha. Note that only kubernetes members and repo collaborators can be assigned and that issues/PRs can only have 10 assignees at the same time. In response to this:
Instructions 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. |
@sftim 👋
Do we? Right now, the style guide specifies to separate commands from output. Or do you mean something different?
Again, the style guide is clear about separating commands from output. That said, there is a possibility for improvement where we offer examples in multiple languages: better implementation of shortcodes for tabs. I haven't seen any discussion of them so far, so wanted to raise visibility as a possible path for improvement. |
Separate commands from output makes sense to me. I missed that when I was reading through before. So, the style guide is clear. I'll amend the issue description. |
hi @sftim as you mentioned separate commands from output will work and you updated the description as well.
|
@sftim @DanyC97 I followed PR #12793 , #12794 , and #12798 The pages that are partially fixed:
I also think we do not need 1PR for 1 page. |
@iamneha you might have seen that i went ahead and updated all the pages to remove Once that is done i can either update the above PRs or vice-versa (rebase the PRs ).
At this point in time i think i need to rethink the strategy on how to fix everything i had in mind because the reality is: a) there are fewer people with review/ approve permission who are available / can stay on top of all this and pair with me so we can deliver faster this changes |
This is a...
Problem:
As per the current style guide, snippets of code shouldn't include the command prompt. On several pages there are code snippets that do include a prompt.
In some places this is mixed in with output, eg (Markdown):
Proposed Solution:
So, the style guide is clear. I'll amend the issue description.I think a mixture of approaches.
We want to be able to show what to type mixed with sample output. So the style guide should cover that case and explain what to do.The site generator might need changes to handle highlighting those blocks, treating the initial$
as a hint that the rest of the line is code, and lines not starting with$
as unformatted command output.Once those changes are made we can go in and PR fixes to use the new style consistently.Follow style guide: separate commands from output.
The text was updated successfully, but these errors were encountered: