Commit Graph

3135 Commits

Author SHA1 Message Date
Takeshi KOMIYA
eef7e4cdd5 test: Rename test_autodoc.py to test_ext_autodoc.py 2020-05-06 13:55:45 +09:00
Takeshi KOMIYA
2ca76d2366 test: Merge test_ext_autodoc.py and test_autodoc.py 2020-05-06 13:47:15 +09:00
Takeshi KOMIYA
8c142fe059 test: Do not use module level state-full fixture 2020-05-06 13:47:13 +09:00
Takeshi KOMIYA
df84a413a7 Add test helper: make_directive_bridge() 2020-05-06 13:35:23 +09:00
Takeshi KOMIYA
88e8ebbe19 Close #7596: py domain: Change a type annotation for variables to a hyperlink 2020-05-04 14:30:20 +09:00
Takeshi KOMIYA
a5036270c8 Merge pull request #7605 from tk0miya/refactor_tests
Refactor tests
2020-05-04 01:27:54 +09:00
Takeshi KOMIYA
54bb1f3e62 refactor: test: Pass language_level to cython explicitly 2020-05-04 00:23:06 +09:00
Takeshi KOMIYA
f01ea79092 refactor: Pass a theme instance to LaTeXTranslator 2020-05-03 23:56:59 +09:00
Takeshi KOMIYA
2799d1d727 refactor: Do not pass deprecated parameter in testcase 2020-05-03 23:47:09 +09:00
Takeshi KOMIYA
5bf997c55a refactor: Do not pass deprecated parameter in testcase 2020-05-03 23:41:54 +09:00
Takeshi KOMIYA
a148a8e7cb Close #7530: html: Support nested <kbd> elements 2020-05-02 22:48:57 +09:00
Takeshi KOMIYA
1c3179300a Merge pull request #7583 from eric-wieser/fix-napoleon
ext.napoleon: Emit type annotations at the start of `.. attribute::`
2020-05-02 12:33:59 +09:00
Takeshi KOMIYA
690447d48f Merge pull request #7586 from tk0miya/6857_enum_classmethod
Fix #6857: autodoc: failed to detect a classmethod on Enum class
2020-05-02 12:30:32 +09:00
Jakob Lykke Andersen
284738227c C++, parse trailing return types 2020-05-01 22:01:46 +02:00
Jakob Lykke Andersen
bfc3200295 C++, parse expressions with user-defined literals
Fixes sphinx-doc/sphinx#7294
2020-05-01 20:38:51 +02:00
Takeshi KOMIYA
9256daaa77 Merge branch '3.x' into 6857_enum_classmethod 2020-05-02 01:48:01 +09:00
Takeshi KOMIYA
25fc47e6b7 Fix #7559: autodoc: misdetects a sync function is async 2020-05-01 22:05:45 +09:00
Takeshi KOMIYA
d612ef8f0b Fix #6857: autodoc: failed to detect a classmethod on Enum class 2020-04-30 22:54:49 +09:00
Takeshi KOMIYA
b19ef9d51e Merge pull request #7584 from eric-wieser/fix-colon-parsing
ext.napoleon: Do not consume colons within inline code
2020-04-30 22:11:33 +09:00
Eric Wieser
453fe55dc9 ext.napoleon: Do not consume colons within inline code
Fixes gh-7581
2020-04-30 08:57:24 +01:00
Eric Wieser
9d7171899a ext.napoleon: Emit type annotations at the start of .. attribute:: 2020-04-29 19:03:24 +01:00
Takeshi KOMIYA
0bf9011509 Fix #7570: autosummary: template option is broken 2020-04-30 00:14:59 +09:00
Takeshi KOMIYA
a8a2d59403 Merge pull request #7561 from tk0miya/7143_typing.final
Support @final decorator
2020-04-28 22:57:56 +09:00
Takeshi KOMIYA
13113fc0b6 Fix #6588: autodoc: Decorated inherited method has no documentation 2020-04-28 22:33:40 +09:00
Takeshi KOMIYA
8c35cfa38a Merge branch '3.0.x' into 3.x 2020-04-28 01:41:52 +09:00
Takeshi KOMIYA
a527c2ae30 Merge pull request #7569 from eric-wieser/fix-bad-stringify
Do not emit type arguments twice
2020-04-28 01:32:52 +09:00
Takeshi KOMIYA
dfdc70546f Merge pull request #7566 from jakobandersen/merge_c_array_declarator
Merge c array declarator PR into 3.x
2020-04-28 01:26:28 +09:00
Takeshi KOMIYA
767864b0f1 Close #7143: autodoc: Support final classes and methods 2020-04-28 01:24:41 +09:00
Takeshi KOMIYA
87308d9607 Close #7143: py domain: Add :final: option to py:*: directives 2020-04-28 01:24:29 +09:00
Takeshi KOMIYA
9c98b92c6a pycode: Detect @final decorators 2020-04-28 01:24:29 +09:00
Eric Wieser
46372726de Do not emit type arguments twice
Fixes gh-7567
2020-04-27 15:22:44 +01:00
Takeshi KOMIYA
1cffff2a30 Merge pull request #7487 from thomascobb/singledispatch_autofunction
Support singledispatch autodoc directives
2020-04-27 22:48:02 +09:00
Jakob Lykke Andersen
b1e732fd8f Merge branch 'c_array_declarator' into merge_c_array_declarator 2020-04-27 15:09:07 +02:00
Takeshi KOMIYA
7888600f96 Merge pull request #7564 from eric-wieser/fix-missing-__annotations__
autodoc: Fix a logic error that causes annotations not to be shown for descriptors
2020-04-27 21:54:17 +09:00
Eric Wieser
b7ce4a4c13 Fix a logic error that causes annotations not to be shown for descriptors
This `if not self._datadescriptor` was originally here before type annotations were supported, to prevent showing `descr4 = <_Descriptor ...>` in the docs.

When type annotations were added, the support for appending `:type:` was put in the wrong place.
It should have been outside this if, not within it.
2020-04-27 12:57:39 +01:00
Takeshi KOMIYA
4eafda8588 Merge pull request #7546 from tk0miya/4030_autosummary_context
Close #4030: autosummary: Add autosummary_context
2020-04-27 02:01:34 +09:00
Jakob Lykke Andersen
ffc3c3c75e Merge pull request #7485 from jbab/cpp-noexcept
C++, add support for parameterized noexcept specifier in function dec…
2020-04-25 20:17:23 +02:00
Jakob Lykke Andersen
082bf7d166 C, parse all types of array declarators 2020-04-25 19:59:16 +02:00
Takeshi KOMIYA
037fe96dc1 Close #4030: autosummary: Add autosummary_context 2020-04-25 11:15:43 +09:00
Jan Babst
95e9204438 C++, add support for parameterized noexcept specifier in function declarations 2020-04-24 23:59:41 +02:00
Tom Cobb
22fafb9773 Support singledispatch in autofunction/methodThis makes autofunction and automethod work standalone withsingledispatch functions and methods. Previously only automodule wouldsupport these 2020-04-24 15:25:50 +01:00
Jakob Lykke Andersen
abe65423ca C, allow semicolon in the end of declarations
(except macros)
2020-04-24 11:38:22 +02:00
Jakob Lykke Andersen
ef0c2bf83c C++, semicolon, move it entirely to ASTDeclaration 2020-04-24 10:57:23 +02:00
Jan Babst
50ae1b04e8 C++ domain: Add support for semicolon in declarations 2020-04-24 10:45:23 +02:00
Takeshi KOMIYA
e78cf26100 Merge pull request #7539 from tk0miya/7536_autogen_crashes_with_i18n
Fix #7536: sphinx-autogen: crashes when template uses i18n feature
2020-04-23 22:43:08 +09:00
Takeshi KOMIYA
f565a44981 Merge pull request #7515 from tk0miya/2044_defvalue_for_ivars
Close #2044: autodoc: Suppress default value for instance attributes
2020-04-23 21:57:34 +09:00
Takeshi KOMIYA
ab3795f176 Fix #7536: sphinx-autogen: crashes when template uses i18n feature 2020-04-23 21:46:32 +09:00
Takeshi KOMIYA
c9e4945623 Merge pull request #7473 from eric-wieser/meta-public
Add support for :meta public:
2020-04-23 02:15:42 +09:00
Takeshi KOMIYA
72c57ff131 test: Fix flake8 violation 2020-04-22 01:29:48 +09:00
Takeshi KOMIYA
4a7934ba1a autosummary: Make recursively generated stub-files flatten 2020-04-22 00:27:59 +09:00