Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add green, red and yellow side borders for code examples#285

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
hugovk merged 1 commit intopython:mainfromhugovk:green-red
Dec 10, 2025

Conversation

@hugovk
Copy link
Member

@hugovkhugovk commentedDec 8, 2025
edited by github-actionsbot
Loading

Likepython/peps#3567 andpython/devguide#1237, re:python/docs-community#22.

This will allow us to add borders on the left side of code examples to flag if they're "good", "bad", or somewhere in between.

For example:

Do this:..code-block::   :class: good   a = 1Don't do this:..code-block::   :class: bad    a =Take care doing this:..code-block::   :class: maybe    a = 2

Gives:

imageimage

And this will be useful for the upcoming free-threaded guidance coming to the docs.

cc@lysnikolaou


📚 Documentation preview 📚:https://python-docs-theme-previews--285.org.readthedocs.build/

Copy link
Member

@StanFromIrelandStanFromIreland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

LGTM

Copy link
Member

@lysnikolaoulysnikolaou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

LGTM! Thanks@hugovk!

@hugovkhugovk merged commitbf2c2d7 intopython:mainDec 10, 2025
15 checks passed
@hugovkhugovk deleted the green-red branchDecember 10, 2025 15:13
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@lysnikolaoulysnikolaoulysnikolaou approved these changes

+1 more reviewer

@StanFromIrelandStanFromIrelandStanFromIreland approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@hugovk@lysnikolaou@StanFromIreland

[8]ページ先頭

©2009-2025 Movatter.jp