Skip to content
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

Command line documentation style guide #3263

Closed
stevepiercy opened this issue Apr 23, 2018 · 1 comment
Closed

Command line documentation style guide #3263

stevepiercy opened this issue Apr 23, 2018 · 1 comment
Assignees
Labels
Milestone

Comments

@stevepiercy
Copy link
Member

stevepiercy commented Apr 23, 2018

Question

Should we retain or remove command prompts from our documentation?

Current practice

Typographical Conventions specifies our current practice, using command prompts to denote that we are using either a *nix-based OS ($) or a Windows OS (c:>\). Code block examples exist as reference for *nix and Windows. In our tutorials where most of the commands appear, we state that we use the *nix version of commands:

Commands in this tutorial use UNIX syntax and paths. Windows users should adjust commands accordingly.

And we use headings or similar indicator preceding the commands, but we could do a little better.

Issues

This has a few unintended consequences.

  • PowerShell is the new default shell in Windows 10 and later.
  • Syntax highlighting for the Pygments lexer doscon is poor.
  • Syntax highlighting will fail for the Pygments lexer powershell when a command prompt is used in the code block.
  • *nix shell prompts are ignored.
  • Command prompts are superfluous and get in the way of copy pasting.

Proposal

The proposal is to do the following:

  • Precede sections of commands with a heading or similar clear statement in which OS the command should be run.
  • Remove command prompts from code-blocks.

See also #2880

@stevepiercy stevepiercy added this to the 1.10 milestone Apr 23, 2018
@stevepiercy stevepiercy self-assigned this Apr 23, 2018
@stevepiercy
Copy link
Member Author

Closed by #3330

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant