-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
Use .. program::
and .. option::
directives for modules with a documented CLI
#130160
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
Open
5 of 6 tasks
Open
5 of 6 tasks
Labels
docs
Documentation in the Doc dir
Comments
Tangentially related, but the |
Yes, and |
Mr-Sunglasses
added a commit
to Mr-Sunglasses/cpython
that referenced
this issue
Feb 18, 2025
sobolevn
added a commit
to sobolevn/cpython
that referenced
this issue
Feb 18, 2025
pfmoore
pushed a commit
that referenced
this issue
Feb 18, 2025
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Feb 18, 2025
…pip` CLI (pythongh-130253) (cherry picked from commit 8cd7f8b) Co-authored-by: Kanishk Pachauri <[email protected]>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Feb 18, 2025
…pip` CLI (pythongh-130253) (cherry picked from commit 8cd7f8b) Co-authored-by: Kanishk Pachauri <[email protected]>
This was referenced Feb 18, 2025
Merged
sobolevn
added a commit
to sobolevn/cpython
that referenced
this issue
Feb 18, 2025
…st` (pythonGH-130255) (cherry picked from commit 97d0011) Co-authored-by: sobolevn <[email protected]>
sobolevn
added a commit
to sobolevn/cpython
that referenced
this issue
Feb 18, 2025
Mr-Sunglasses
added a commit
to Mr-Sunglasses/cpython
that referenced
this issue
Feb 18, 2025
hugovk
pushed a commit
that referenced
this issue
Mar 15, 2025
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Mar 15, 2025
…erver` CLI (pythonGH-131010) (cherry picked from commit 7ae9c5d) Co-authored-by: donBarbos <[email protected]>
donBarbos
added a commit
to donBarbos/cpython
that referenced
this issue
Mar 15, 2025
…erver` CLI (python#131010) (cherry picked from commit 7ae9c5d)
picnixz
added a commit
that referenced
this issue
Mar 16, 2025
…#131034) Co-authored-by: Bénédikt Tran <[email protected]>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Mar 16, 2025
…t` CLI (pythonGH-131034) (cherry picked from commit 9558d22) Co-authored-by: donBarbos <[email protected]> Co-authored-by: Bénédikt Tran <[email protected]>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Mar 16, 2025
…t` CLI (pythonGH-131034) (cherry picked from commit 9558d22) Co-authored-by: donBarbos <[email protected]> Co-authored-by: Bénédikt Tran <[email protected]>
This was referenced Mar 16, 2025
picnixz
added a commit
that referenced
this issue
Mar 16, 2025
…st` CLI (GH-131034) (#131320) gh-130160: use `.. program::` directive for documenting `doctest` CLI (GH-131034) (cherry picked from commit 9558d22) Co-authored-by: donBarbos <[email protected]> Co-authored-by: Bénédikt Tran <[email protected]>
picnixz
added a commit
that referenced
this issue
Mar 16, 2025
…st` CLI (GH-131034) (#131321) gh-130160: use `.. program::` directive for documenting `doctest` CLI (GH-131034) (cherry picked from commit 9558d22) Co-authored-by: donBarbos <[email protected]> Co-authored-by: Bénédikt Tran <[email protected]>
mikec9
pushed a commit
to mikec9/cpython
that referenced
this issue
Mar 17, 2025
…`http.server` CLI (pythonGH-131010) (python#131293) pythongh-130160: use `.. program::` directive for documenting `http.server` CLI (pythonGH-131010) (cherry picked from commit 7ae9c5d) Co-authored-by: donBarbos <[email protected]>
mikec9
pushed a commit
to mikec9/cpython
that referenced
this issue
Mar 17, 2025
…`doctest` CLI (pythonGH-131034) (python#131320) pythongh-130160: use `.. program::` directive for documenting `doctest` CLI (pythonGH-131034) (cherry picked from commit 9558d22) Co-authored-by: donBarbos <[email protected]> Co-authored-by: Bénédikt Tran <[email protected]>
hugovk
added a commit
that referenced
this issue
Mar 17, 2025
…server` CLI (GH-131010) (#131294) Co-authored-by: Hugo van Kemenade <[email protected]>
plashchynski
pushed a commit
to plashchynski/cpython
that referenced
this issue
Mar 17, 2025
plashchynski
pushed a commit
to plashchynski/cpython
that referenced
this issue
Mar 17, 2025
…t` CLI (python#131034) Co-authored-by: Bénédikt Tran <[email protected]>
seehwan
pushed a commit
to seehwan/cpython
that referenced
this issue
Apr 16, 2025
…CLI (python#130278) --------- Co-authored-by: Stan Ulbrych <[email protected]> Co-authored-by: Terry Jan Reedy <[email protected]> Co-authored-by: Adam Turner <[email protected]> Co-authored-by: Bénédikt Tran <[email protected]>
seehwan
pushed a commit
to seehwan/cpython
that referenced
this issue
Apr 16, 2025
…le` CLI (python#130314) Co-authored-by: Bénédikt Tran <[email protected]> Co-authored-by: Adam Turner <[email protected]>
seehwan
pushed a commit
to seehwan/cpython
that referenced
this issue
Apr 16, 2025
…wser` CLI (python#130995) use `.. program::` directive for documenting `webbrowser` CLI
seehwan
pushed a commit
to seehwan/cpython
that referenced
this issue
Apr 16, 2025
seehwan
pushed a commit
to seehwan/cpython
that referenced
this issue
Apr 16, 2025
seehwan
pushed a commit
to seehwan/cpython
that referenced
this issue
Apr 16, 2025
…t` CLI (python#131034) Co-authored-by: Bénédikt Tran <[email protected]>
This was referenced Apr 30, 2025
hugovk
pushed a commit
that referenced
this issue
May 3, 2025
hugovk
pushed a commit
to hugovk/cpython
that referenced
this issue
May 3, 2025
…`platform` CLI (pythonGH-133335) (cherry picked from commit 1550c30) Co-authored-by: Semyon Moroz <[email protected]>
hugovk
added a commit
that referenced
this issue
May 3, 2025
…orm` CLI (GH-133335) (#133341) Co-authored-by: Semyon Moroz <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is something (#129607 (comment)) I thought of when reviewing #129607. It's usually fine not to have links, but once we begin adding new command-line options to specific modules (e.g.,
http.server
), I think it'd be nice to be able to reference them using Sphinx.Using the
.. program::
directive also improves readability. For instance, compare https://docs.python.org/3/library/dis.html#command-line-interface with https://docs.python.org/3/library/http.server.html where the CLI documentation is at the end of the page, without even a dedicated section.I suggest going through the modules in #109435 and select those whose documentation page can be improved. By looking at the list, I found the following that can be improved:
quopri
is both missing a documentation for its CLI so we can also add it.base64
as well, but I think it's meant to be undocumented. More modules can be found in #93096 as well.For now, I suggest focusing on only those who already have a documented command-line interface and just improving them. Whether a module should have its
main()
function documented or not is out-of-scope for this issue.Important
For those who want to work on the issue, please:
program
directive.gh-130160: use `.. program::` directive for documenting `MODULE_NAME` CLI
Linked PRs
.. program::
directive for documentingensurepip
CLI #130253.. program::
directive for documentingensurepip
CLI (gh-130253) #130258.. program::
directive for documentingensurepip
CLI (gh-130253) #130259option
instead ofcmdoption
indis.rst
#130255option
instead ofcmdoption
indis.rst
(GH-130255) #130264option
instead ofcmdoption
indis.rst
(GH-130255) #130265.. program::
directive for documentingidle
CLI #130278.. program::
directive for documentingcProfile
CLI #130314.. program::
directive for documentingidle
CLI (GH-130278) #130494.. program::
directive for documentingidle
CLI (GH-130278) #130495webbrowser
docs to use.. option
directive #130497 (closed to allow newcomers to pick it up).. program::
directive for documentingvenv
CLI #130699.. program::
directive for documentingcProfile
CLI (GH-130314) #130745.. program::
directive for documentingcProfile
CLI (GH-130314) #130746.. program::
directive for documentingwebbrowser
CLI #130995.. program::
directive for documentingpdb
CLI #130996.. program::
directive for documentingwebbrowser
CLI (GH-130995) #131003.. program::
directive for documentingwebbrowser
CLI (GH-130995) #131004.. program::
directive for documentinghttp.server
CLI #131010.. program::
directive for documentingpdb
CLI (GH-130996) #131013.. program::
directive for documentingpdb
CLI (GH-130996) #131014.. program::
directive for documentingdoctest
CLI #131034.. program::
directive for documentinghttp.server
CLI (GH-131010) #131293.. program::
directive for documentinghttp.server
CLI (GH-131010) #131294.. program::
directive for documentingdoctest
CLI (GH-131034) #131320.. program::
directive for documentingdoctest
CLI (GH-131034) #131321cmdline
#133182.. program::
directive for documentingplatform
CLI #133335.. program::
directive for documentingplatform
CLI (GH-133335) #133341The text was updated successfully, but these errors were encountered: