summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/usage/extensions/autodoc.rst7
-rw-r--r--sphinx/ext/autodoc/directive.py2
2 files changed, 5 insertions, 4 deletions
diff --git a/doc/usage/extensions/autodoc.rst b/doc/usage/extensions/autodoc.rst
index e604cad28..80783301e 100644
--- a/doc/usage/extensions/autodoc.rst
+++ b/doc/usage/extensions/autodoc.rst
@@ -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
diff --git a/sphinx/ext/autodoc/directive.py b/sphinx/ext/autodoc/directive.py
index e831cab64..cf1f2f47f 100644
--- a/sphinx/ext/autodoc/directive.py
+++ b/sphinx/ext/autodoc/directive.py
@@ -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: