Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading