Skip to content

Commit 89254a9

Browse files
authored
Use Sphinx guilabel role for buttons (#1387)
1 parent ee5a793 commit 89254a9

File tree

6 files changed

+35
-30
lines changed

6 files changed

+35
-30
lines changed

β€Žcore-developers/committing.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ can apply labels to GitHub pull requests).
260260
Reverting a merged pull request
261261
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
262262

263-
To revert a merged pull request, press the ``Revert`` button at the
263+
To revert a merged pull request, press the :guilabel:`Revert` button at the
264264
bottom of the pull request. That will bring up the page to create a
265265
new pull request where the commit can be reverted. It will also create
266266
a new branch on the main CPython repository. Delete the branch once

β€Ždeveloper-workflow/communication-channels.rst

+16-11
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ Tutorials for new users
9898

9999
To start a topic or participate in any discussions in the forum, sign up and
100100
create an account using an email address or GitHub account. You can do so by
101-
clicking the "Sign Up" button on the top right hand corner of the `Discourse`_
102-
main page.
101+
clicking the :guilabel:`Sign Up` button on the top right hand corner of the
102+
`Discourse`_ main page.
103103

104104
The Python Discourse `Quick Start <https://discuss.python.org/t/python-discourse-quick-start/116>`_
105105
compiled by `Carol Willing <https://discuss.python.org/u/willingc/>`_ gives you
@@ -110,23 +110,27 @@ These tutorials can be activated by replying to a welcome message from "discours
110110
Greetings!" received under Notifications and Messages in your user account.
111111

112112
* Click on your personal account found on the top right hand corner of the page.
113-
* The dropdown menu will show four different icons: πŸ”” (Notifications),
114-
πŸ”– (Bookmarks), βœ‰οΈ (Messages), and πŸ‘€ (Preferences).
113+
* The dropdown menu will show four different icons:
114+
:guilabel:`πŸ””` (Notifications),
115+
:guilabel:`πŸ”–` (Bookmarks),
116+
:guilabel:`βœ‰οΈ` (Messages), and
117+
:guilabel:`πŸ‘€` (Preferences).
115118
* Select either Notifications or Messages.
116119
* Open the "Greetings!" message sent by Discobot to start the tutorial.
117120

118121
Ensure that you read through the `Python Code of Conduct <https://discuss.python.org/faq>`_.
119122
We are to be open, considerate and respectful to all users in the community.
120123
You can report messages that don't respect the CoC by clicking on the three
121-
dots under the message and then on the ⚐ icon. You can also mention the
124+
dots under the message and then on the :guilabel:`⚐` icon. You can also mention the
122125
`@staff <https://discuss.python.org/groups/staff>`_,
123126
`@moderators <https://discuss.python.org/groups/moderators>`_, or
124127
`@admins <https://discuss.python.org/groups/admins>`_ groups in a message.
125128

126129

127130

128131
Reading topics
129-
-----------------
132+
--------------
133+
130134
Click a topic title and read down the list of replies in chronological order,
131135
following links or previewing replies and quotes as you go. Use your mouse to
132136
scroll the screen, or use the timeline scroll bar on the right which also shows
@@ -142,10 +146,11 @@ Following categories (category notifications)
142146

143147
Notifications can be set for individual categories and topics. To change any of these
144148
defaults, you can either go to your user preferences, or visit the category
145-
page, and use the notification button πŸ”” above the topic list,
146-
on the top right hand corner of the category page beside the "+ New Topic" button.
149+
page, and use the notification button :guilabel:`πŸ””` above the topic list,
150+
on the top right hand corner of the category page beside the
151+
:guilabel:`+ New Topic` button.
147152

148-
Clicking on the Notification control πŸ”” will show a drop-down panel with 5
153+
Clicking on the notification control :guilabel:`πŸ””` will show a drop-down panel with 5
149154
different options: Watching, Tracking, Watching First Post, Normal, and Muted.
150155
All categories are set by default in Normal mode where you will only be notified
151156
if someone mentions your @name or replies to you.
@@ -154,7 +159,7 @@ Following individual threads (topic notifications)
154159
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
155160

156161
To follow any individual topics or threads, you can adjust your notifications
157-
through the notification button πŸ”” found on the right of the topic at the end
162+
through the notification button :guilabel:`πŸ””` found on the right of the topic at the end
158163
of the timeline. You can also do so at the bottom of each topic.
159164
Select "Watching" and you will be notified when there is any new updated reply
160165
from that particular thread.
@@ -235,7 +240,7 @@ Blogs
235240

236241
Several core developers are active bloggers and discuss Python's development
237242
that way. You can find their blogs (and various other developers who use Python)
238-
at https://planetpython.org/.
243+
at `Planet Python <https://planetpython.org/>`__.
239244

240245

241246
Setting expectations for open source participation

β€Žgetting-started/git-boot-camp.rst

+10-10
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ You will only need to do this once.
4444

4545
1. Go to https://github.com/python/cpython.
4646

47-
2. Press ``Fork`` located near the top right of the page.
47+
2. Press :guilabel:`Fork` located near the top right of the page.
4848

49-
3. Uncheck the "Copy the ``main`` branch only" button.
49+
3. Uncheck "Copy the ``main`` branch only".
5050

51-
4. Press the ``Create fork`` button.
51+
4. Press the :guilabel:`Create fork` button.
5252

5353
5. Your forked CPython repository will be created at ``https://github.com/<username>/cpython``.
5454

@@ -310,7 +310,7 @@ Creating a pull request
310310

311311
1. Go to https://github.com/python/cpython.
312312

313-
2. Press the ``New pull request`` button.
313+
2. Press the :guilabel:`New pull request` button.
314314

315315
3. Click the ``compare across forks`` link.
316316

@@ -319,7 +319,7 @@ Creating a pull request
319319
5. Select the head repository: ``<username>/cpython`` and head branch: the branch
320320
containing your changes.
321321

322-
6. Press the ``Create pull request`` button.
322+
6. Press the :guilabel:`Create pull request` button.
323323

324324
You should include the issue number in the title of the PR,
325325
in the format ``gh-NNNNN: <PR Title>``.
@@ -486,14 +486,14 @@ can be merged. See :ref:`"Keeping CI green" <keeping-ci-green>` for some
486486
simple things you can do to help the checks turn green.
487487

488488
At any point, a core developer can schedule an automatic merge of the change
489-
by clicking the gray ``Enable auto-merge (squash)`` button. You will find
489+
by clicking the gray :guilabel:`Enable auto-merge (squash)` button. You will find
490490
it at the bottom of the pull request page. The auto-merge will only
491491
happen if all the required checks pass, but the PR does not need to have been
492492
approved for a successful auto-merge to take place.
493493

494494
If all required checks are already finished on a PR you're reviewing,
495-
in place of the gray ``Enable auto-merge`` button you will find a green
496-
``Squash and merge`` button.
495+
in place of the gray :guilabel:`Enable auto-merge` button you will find a green
496+
:guilabel:`Squash and merge` button.
497497

498498
In either case, adjust and clean up the commit message.
499499

@@ -526,7 +526,7 @@ PR life cycle, while being irrelevant to the final change.
526526
`How to Write a Git Commit Message <https://cbea.ms/git-commit/>`_
527527
is a nice article describing how to write a good commit message.
528528

529-
Finally, press the ``Confirm squash and merge`` button.
529+
Finally, press the :guilabel:`Confirm squash and merge` button.
530530

531531
Cancelling an automatic merge
532532
-----------------------------
@@ -535,7 +535,7 @@ If you notice a problem with a pull request that was accepted and where
535535
auto-merge was enabled, you can still cancel the workflow before GitHub
536536
automatically merges the change.
537537

538-
Press the gray "Disable auto-merge" button on the bottom of the
538+
Press the gray :guilabel:`Disable auto-merge` button on the bottom of the
539539
pull request page to disable automatic merging entirely. This is the
540540
recommended approach.
541541

β€Žgetting-started/pull-request-lifecycle.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -531,9 +531,9 @@ will merge in the latest changes from the base branch into the PR.
531531

532532
If this still doesn't help with the failure on the PR, you can try
533533
to re-run that particular failed check. Go to the red GitHub Action job,
534-
click on the "Re-run jobs" button on the top right, and select
535-
"Re-run failed jobs". The button will only be present when all other jobs
536-
finished running.
534+
click on the :guilabel:`Re-run jobs` button on the top right, and select
535+
:guilabel:`Re-run failed jobs`. The button will only be present when all other
536+
jobs finished running.
537537

538538
Re-running failed jobs shouldn't be your first instinct but it is occasionally
539539
helpful because distributed systems can have intermittent failures, and

β€Žtriage/github-bpo-faq.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,12 @@ Where is the "nosy list"?
5757
Subscribe another person to the issue by tagging them in the comment with
5858
``@username``.
5959

60-
If you want to subscribe yourself to an issue, click the *πŸ”” Subscribe*
61-
button in the sidebar.
60+
If you want to subscribe yourself to an issue, click the
61+
:guilabel:`πŸ”” Subscribe` button in the sidebar.
6262

6363
Similarly, if you were tagged by somebody else but
64-
decided this issue is not for you, you might click the *πŸ”• Unsubscribe*
65-
button in the sidebar.
64+
decided this issue is not for you, you might click the
65+
:guilabel:`πŸ”• Unsubscribe` button in the sidebar.
6666

6767
There is no exact equivalent of the "nosy list" feature, so to preserve
6868
this information during the transfer, we list the previous members of

β€Žtriage/issue-tracker.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Reporting an issue
5050
------------------
5151

5252
If the problem you're reporting is not already in the `issue tracker`_, you
53-
can report it using the green "New issue" button on the right of the search
53+
can report it using the green :guilabel:`New issue` button on the right of the search
5454
box above the list of bugs. If you're not already signed in to GitHub, it
5555
will ask you to do so now.
5656

0 commit comments

Comments
Β (0)