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

Consistent console formatting for "Git bootcamp and cheat sheet" #1231

Merged

Conversation

hugovk
Copy link
Member

@hugovk hugovk commented Nov 18, 2023

A lot of the console commands at https://devguide.python.org/getting-started/git-boot-camp/ are shown in italics.

This is because the default highlight is set to console:

.. highlight:: console

That means the commands should be prefixed with a $ prompt. Normally this is so you can show some a command, and have its output in different formatting.

Generally, we should use a bash highlighting if there's no output, and omit the $ prompt. However, we've set the copybutton Sphinx extension to $ which means you can still copy/paste the example and the $ prompt doesn't come along.

I don't really mind which we use -- console and prompts, or bash and no prompt -- but we should use the right combination.


📚 Documentation preview 📚: https://cpython-devguide--1231.org.readthedocs.build/getting-started/git-boot-camp/

@hugovk hugovk changed the title Consistent console formatting Consistent console formatting for Git bootcamp and cheat sheet Nov 18, 2023
@hugovk hugovk changed the title Consistent console formatting for Git bootcamp and cheat sheet Consistent console formatting for "Git bootcamp and cheat sheet" Nov 18, 2023
@hugovk hugovk merged commit 73842ea into python:main Dec 1, 2023
5 checks passed
@hugovk hugovk deleted the formatting-getting-started/git-boot-camp branch December 1, 2023 14:22
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.

1 participant