Commit Graph

3109 Commits

Author SHA1 Message Date
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
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
Takeshi KOMIYA
cc6ba63f5e test: Remove meaningless testcases 2020-04-22 00:23:37 +09:00
Takeshi KOMIYA
ef1362886f refactor: Not to use deprecated helper: Path.text() 2020-04-21 23:39:51 +09:00
Takeshi KOMIYA
7671bcc23b Remove autosummary_recursive configuration
Now autosummary directive has :recursive: option to enable the
recursive feature individually.  So the configuration is no longer
needed.
2020-04-21 23:38:18 +09:00
Takeshi KOMIYA
b9da9237bc Merge branch '3.x' into 6040_autosummary_recursive 2020-04-21 23:04:38 +09:00
Takeshi KOMIYA
476b73b6ca autosummary: Add :recursive: option to autosummary directive 2020-04-21 22:47:00 +09:00
Takeshi KOMIYA
c2c95ef587 Merge pull request #7411 from tk0miya/latex_theme_options
LaTeX: Add `latex_theme_options` to override theme options
2020-04-20 01:50:06 +09:00
Takeshi KOMIYA
6b07d8f363 autodoc: Suppress default value for uninitialized variables 2020-04-20 01:48:05 +09:00
Takeshi KOMIYA
a42de07bcf Close #2044: autodoc: Suppress default value for instance attributes 2020-04-20 01:29:01 +09:00
Takeshi KOMIYA
12cb90c3fa Merge pull request #7492 from tk0miya/7490_autosummary_caption
Close #7490: autosummary: Add ``:caption:`` option to autosummary directive
2020-04-20 00:52:45 +09:00
Takeshi KOMIYA
05aff200b1 LaTeX: Add :confval:latex_theme_options to override theme options 2020-04-20 00:51:08 +09:00
Takeshi KOMIYA
66744c656e Merge pull request #7413 from tk0miya/papersize_for_latex_theme
LaTeX: Allow to override papersize and pointsize from LaTeX themes
2020-04-20 00:49:17 +09:00
Takeshi KOMIYA
59b638dd4d Merge branch '3.0.x' into 3.x 2020-04-19 23:43:54 +09:00
Takeshi KOMIYA
b2140c8623 Fix #7510: py domain: keyword-only arguments are wrongly rendered 2020-04-19 22:57:38 +09:00
Takeshi KOMIYA
5c14375365 Merge branch '3.0.x' into 3.x 2020-04-19 14:56:56 +09:00
Takeshi KOMIYA
4577f6856c Fix #7418: std domain: term role role could not match case-insensitively 2020-04-18 23:48:49 +09:00
Takeshi KOMIYA
21341f4b6c Merge branch '3.0.x' into 3.x 2020-04-18 21:02:47 +09:00
Takeshi KOMIYA
ffb1ca3aaa test: Add a docstring to avoid an error on py39a5+ 2020-04-18 20:28:31 +09:00
Takeshi KOMIYA
dc46897768 Close #7490: autosummary: Add `:caption:` option to autosummary directive 2020-04-16 23:04:57 +09:00
Eric Wieser
0d7451c23d Add support for :meta public:
A common use case for this is a class like `namedtuple`, which has a public `_replace` method that is so-named in order not to conflict with arbitrary user-provided attributes.

Rejected spellings include:
* `:meta not-private:`
* `:meta private: False`
2020-04-14 08:41:45 +01:00
Takeshi KOMIYA
b2a601a33d Merge branch '3.0.x' into 3.x 2020-04-13 23:36:10 +09:00
Takeshi KOMIYA
86ef8521df Merge branch '7461_empty_tuple' into 3.0.x 2020-04-13 23:35:17 +09:00
Takeshi KOMIYA
a4edbc1104 Merge pull request #7462 from tk0miya/7461_empty_tuple
Fix #7461: py domain: fails with IndexError for empty tuple in type annotation
2020-04-13 23:34:15 +09:00
Jakob Lykke Andersen
d4058eb67f C, parse attributes 2020-04-13 13:43:26 +02:00
Jakob Lykke Andersen
bbc7b6cc54 C, add scoping directives 2020-04-12 14:13:54 +02:00
Takeshi KOMIYA
1ca0b7ab62 LaTeX: Allow to override papersize and pointsize from LaTeX themes 2020-04-12 15:30:45 +09:00
Takeshi KOMIYA
c8355234eb Fix #7461: autodoc: empty tuple in type annotation is not shown correctly 2020-04-12 13:00:04 +09:00