mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
docs: add new option to documentation
This commit is contained in:
parent
1caf4823f2
commit
33bebf5e87
2
CHANGES
2
CHANGES
@ -23,6 +23,8 @@ Features added
|
||||
layout via CSS
|
||||
* #9899: py domain: Allows to specify cross-reference specifier (``.`` and
|
||||
``~``) as ``:type:`` option
|
||||
* #9792: autodoc: Add new option for ``autodoc_typehints_description_target`` to
|
||||
include undocumented return values but not undocumented parameters.
|
||||
|
||||
Bugs fixed
|
||||
----------
|
||||
|
@ -622,8 +622,16 @@ There are also config values that you can set:
|
||||
When set to ``"documented"``, types will only be documented for a parameter
|
||||
or a return value that is already documented by the docstring.
|
||||
|
||||
With ``"returnvalue_and_documented_params"``, parameter types will only be
|
||||
annotated if the parameter is documented in the docstring. The return type is
|
||||
always annotated (except if it is ``None``).
|
||||
|
||||
.. versionadded:: 4.0
|
||||
|
||||
.. versionadded:: 4.4
|
||||
|
||||
New option ``'returnvalue_and_documented_params'`` is added.
|
||||
|
||||
.. confval:: autodoc_type_aliases
|
||||
|
||||
A dictionary for users defined `type aliases`__ that maps a type name to the
|
||||
|
Loading…
Reference in New Issue
Block a user