summaryrefslogtreecommitdiff
path: root/sphinx/ext/autodoc/directive.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix annotationsTakeshi KOMIYA2018-12-101-2/+3
|
* Fix annotations for Directives (Replace N_co with nodes.Node)Takeshi KOMIYA2018-12-011-2/+2
|
* Fix annotations for minor methods and functionsTakeshi KOMIYA2018-11-301-2/+2
|
* Fix typehints: sphinx.ext.autodocTakeshi KOMIYA2018-11-271-6/+11
|
* Add sphinx.util.typing:unicode to help mypy-3 migrationTakeshi KOMIYA2018-11-241-0/+1
|
* autodoc: Respect `member-order` in `autodoc_default_options` as documentedEric N. Vander Weele2018-10-161-1/+1
| | | | | | | | 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.
* Remove unnecessary object from class definitionsJon Dufresne2018-09-111-2/+2
| | | | | In Python 3, all classes are new-style classes. The object in the definition is redundant and unnecessary.
* Add autodoc_default_optionsTakeshi KOMIYA2018-08-181-2/+2
|
* autodoc: add 'exclude-members' to user global optionsLewis Haley2018-08-171-1/+1
| | | | | | | | | | | | | | | | | | As the previous commit explains, it is now possible to specify arguments to the global options in config files. This means that we can now include the `exclude-members` option in this global configuration. Previously, there was no point including this option because it makes no sense without arguments. Including this option means users have the flexibility of explicitly including which special methods they want using (e.g.): :special-members: __init__, __iter__ or explicitly excluding which special-members (or other members) they want using (e.g.): :exclude-members: __weakref__, __hash__
* autodoc: allow specifying values to global argumentsLewis Haley2018-08-171-1/+1
| | | | | | | | | | | | | | | | | | | | | Previously, users could specify a *list* of flags in their config files. The flags were directive names that would otherwise be present in the .rst files. However, as a list, it was not possible to specify values to those flags, which *is* possible in .rst files. For example, in .rst you could say :special-members: __init__, __iter__ And this would cause autodoc to generate documents for these methods that it would otherwise ignore. This commit changes the config option to instead accept a dictionary. This is a dictionary whose keys can contain the same flag-names as before, but whose values can contain the arguments as seen in .rst files. The old list is still supported, for backwards compatibility, but the data is transformed into a dictionary when the user's config is loaded.
* refactor: Replace Directive by SphinxDirectiveTakeshi KOMIYA2018-05-111-7/+5
|
* Revert "Use typing.TYPE_CHECKING for typehints"Takeshi KOMIYA2018-03-131-3/+2
| | | | This reverts commit a073e17537c2aacaac305feadea58d4473ec97f4.
* Fix autodoc: crashed when invalid options givenTakeshi KOMIYA2018-03-031-2/+2
|
* Use typing.TYPE_CHECKING for typehintsTakeshi KOMIYA2018-02-141-2/+3
|
* Fix #4538: autodoc: ``sphinx.ext.autodoc.Options`` has been movedTakeshi KOMIYA2018-02-041-11/+1
|
* Merge branch 'master' into dont_emit_system_message_on_autodoc_warningTakeshi KOMIYA2018-01-081-8/+6
|
* Fix flake8 violationTakeshi KOMIYA2018-01-081-1/+1
|
* Merge branch 'master' into refactor_autodocTakeshi KOMIYA2018-01-081-2/+2
|
* Merge branch 'master' into refactor_AutoDirectiveTakeshi KOMIYA2018-01-081-1/+2
|
* Update docstringsTakeshi KOMIYA2017-12-171-0/+4
|
* Replace AutodocReporter by switch_source_input()Takeshi KOMIYA2017-12-171-9/+3
|
* autodoc: refactor option_spec of autodirectivesTakeshi KOMIYA2017-12-171-19/+5
|
* autodoc: refactor AutoDirectiveTakeshi KOMIYA2017-12-171-0/+172