-
-
Notifications
You must be signed in to change notification settings - Fork 31.3k
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
gh-130160: Convert webbrowser
docs to use .. option
directive
#130497
Conversation
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.
Thanks!
(Let's leave easy issues for newcomers ;)
|
||
.. option:: -t, --new-tab | ||
|
||
Opens the URL in a new browser page ("tab"). |
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 think we can update this too, browser tabs are now well established compared with when this feature was introduced in 2005: e8f244305ef4
(Opera had tabs in 2000, Safari in 2003, IE7 in 2006: https://en.wikipedia.org/wiki/Tab_(interface)#History)
Opens the URL in a new browser page ("tab"). | |
Opens the URL in a new browser tab. |
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.
Oups, I missed the label :)
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.
LGTM modulo Hugo's comment.
Let's keep it for someone else :) |
What altruism :) |
Before: https://docs.python.org/3/library/webbrowser.html#module-webbrowser
After:

.. program::
and.. option::
directives for modules with a documented CLI #130160📚 Documentation preview 📚: https://cpython-previews--130497.org.readthedocs.build/