-
Notifications
You must be signed in to change notification settings - Fork 22.5k
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
Fix command line examples to follow guidelines #28205
Conversation
```bash | ||
python3 -V | ||
Python 3.8.10 | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something like this is also okay, what do you think?
```bash | |
python3 -V | |
Python 3.8.10 | |
``` | |
```bash | |
python3 -V | |
# Python 3.8.10 | |
``` |
ENCODING bitrate: 2000, resolution: 640x360 | ||
|
||
$ python mp4-dash.py video_0* | ||
Parsing media file 1: video_00500.mp4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sometimes the output is good to know what's the expected behavior, like this one. What do you think about keeping them in this PR but using a plain
block after the command?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wasn't too certain about including the output for these commands, but if you think they should be included, I'm down to re-add them!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one's tricky because it's three commands in sequence and we'll end up with six code blocks in total in place of one, so I'm not sure either. We could say, "you should have a directory structure like this" and only show the output of tree
after, what do you think?
files/en-us/learn/server-side/express_nodejs/skeleton_website/index.md
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hard to keep up with all the additions to that list of supported code blocks https://developer.mozilla.org/en-US/docs/MDN/Writing_guidelines/Howto/Markdown_in_MDN#example_code_blocks
This PR fixes the command line examples to follow our guidelines not to include prompt symbols (
$
,>
, etc.) and not to include the output directly in bash code examples. This also changes all codeblocks set tosh
to usebash
instead, which is what is more commonly used in MDN docs.