mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
autodoc: Respect member-order
in autodoc_default_options
as documented
In the `autodoc_default_options` documentation, it mentions that `member-order` is respected; however, when setting the key-value pair in `conf.py`, it is not. Thus, add `member-order` as one of the default options respected in `conf.py`. Additionally, update the list of supported options to match the example.
This commit is contained in:
parent
d6b9db9581
commit
9fcef5030a
@ -383,9 +383,10 @@ There are also new config values that you can set:
|
||||
Setting ``None`` is equivalent to giving the option name in the list format
|
||||
(i.e. it means "yes/true/on").
|
||||
|
||||
The supported options are ``'members'``, ``'undoc-members'``,
|
||||
``'private-members'``, ``'special-members'``, ``'inherited-members'``,
|
||||
``'show-inheritance'``, ``'ignore-module-all'`` and ``'exclude-members'``.
|
||||
The supported options are ``'members'``, ``'member-order'``,
|
||||
``'undoc-members'``, ``'private-members'``, ``'special-members'``,
|
||||
``'inherited-members'``, ``'show-inheritance'``, ``'ignore-module-all'`` and
|
||||
``'exclude-members'``.
|
||||
|
||||
.. versionadded:: 1.8
|
||||
|
||||
|
@ -31,7 +31,7 @@ logger = logging.getLogger(__name__)
|
||||
# common option names for autodoc directives
|
||||
AUTODOC_DEFAULT_OPTIONS = ['members', 'undoc-members', 'inherited-members',
|
||||
'show-inheritance', 'private-members', 'special-members',
|
||||
'ignore-module-all', 'exclude-members']
|
||||
'ignore-module-all', 'exclude-members', 'member-order']
|
||||
|
||||
|
||||
class DummyOptionSpec:
|
||||
|
Loading…
Reference in New Issue
Block a user