Skip to content

Commit

Permalink
Doc: Note that pydoc uses and prefers MANPAGER (python#125362)
Browse files Browse the repository at this point in the history
Co-authored-by: Adam Turner <[email protected]>
  • Loading branch information
2 people authored and ebonnal committed Jan 10, 2025
1 parent 4bdae17 commit 063fac1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions Doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@
('envvar', 'LC_TIME'),
('envvar', 'LINES'),
('envvar', 'LOGNAME'),
('envvar', 'MANPAGER'),
('envvar', 'PAGER'),
('envvar', 'PATH'),
('envvar', 'PATHEXT'),
Expand Down
5 changes: 3 additions & 2 deletions Doc/library/pydoc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@ produced for that file.
only execute code when a file is invoked as a script and not just imported.

When printing output to the console, :program:`pydoc` attempts to paginate the
output for easier reading. If the :envvar:`PAGER` environment variable is set,
:program:`pydoc` will use its value as a pagination program.
output for easier reading. If either the :envvar:`MANPAGER` or the
:envvar:`PAGER` environment variable is set, :program:`pydoc` will use its
value as a pagination program. When both are set, :envvar:`MANPAGER` is used.

Specifying a ``-w`` flag before the argument will cause HTML documentation
to be written out to a file in the current directory, instead of displaying text
Expand Down

0 comments on commit 063fac1

Please sign in to comment.