Commit Graph

13928 Commits

Author SHA1 Message Date
Takeshi KOMIYA
179a1f9cc2 py domain: Support type annotations for variables
This adds ``:type:`` and ``:value:`` options to both ``py:data``
and ``py:attribute`` directives.  It allows to describe its
annotation in detail.
2020-02-01 12:58:27 +09:00
Takeshi KOMIYA
a0a4eaad4e
Merge pull request #7080 from tk0miya/fix_autodoc_typehints_crashed
autodoc: Fix crashed for objects having no module
2020-02-01 11:05:20 +09:00
Takeshi KOMIYA
768275466a autodoc: Fix crashed for objects having no module 2020-02-01 10:47:19 +09:00
Takeshi KOMIYA
b73cc5652a Update deprecation list 2020-01-31 01:59:24 +09:00
Takeshi KOMIYA
86f30f0e54
Merge pull request #6964 from tk0miya/refactor_latex
Refactor latex
2020-01-31 01:56:14 +09:00
Takeshi KOMIYA
2dc89023ba Fix mypy violation 2020-01-31 01:31:16 +09:00
Takeshi KOMIYA
6e54043bd3
Merge pull request #7076 from tk0miya/6889_autodoc_trailing_comma
Fix #6889: autodoc: Trailing comma in :members:: option causes cryptic warning
2020-01-31 01:30:08 +09:00
Takeshi KOMIYA
e7db75dbb1 Update copyright year 2020-01-31 01:19:35 +09:00
Takeshi KOMIYA
52afc79e1f Merge branch '2.0' into refactor_latex 2020-01-31 01:18:57 +09:00
Takeshi KOMIYA
d52f3db148
Merge branch '2.0' into 6889_autodoc_trailing_comma 2020-01-31 01:12:18 +09:00
Takeshi KOMIYA
13be2710ad
Merge pull request #7073 from tk0miya/7055_redirect_should_be_warning
Fix #7055: linkcheck: redirect is treated as an error
2020-01-31 01:04:37 +09:00
Takeshi KOMIYA
e4bc1a48ac Fix #6889: autodoc: Trailing comma in :members:: option causes cryptic warning 2020-01-31 00:42:27 +09:00
Takeshi KOMIYA
569a5d53b0
Merge pull request #7074 from tk0miya/autodoc_typehints_failure_in_py35
typehints: Fix wrong order of info-field-list
2020-01-31 00:10:20 +09:00
Takeshi KOMIYA
377c29db78 typehints: Fix wrong order of info-field-list 2020-01-30 23:45:22 +09:00
Takeshi KOMIYA
92c5c19f72
Merge pull request #7066 from tk0miya/6899_apidoc_private_members
Fix #6899: apidoc: private members are not shown even if --private given
2020-01-30 23:33:51 +09:00
Takeshi KOMIYA
0f8a868bf7
Merge pull request #7018 from tk0miya/6418_autodoc_typehints_description
6418 autodoc typehints description
2020-01-30 23:25:42 +09:00
Takeshi KOMIYA
67fefcc6f9
Merge branch '2.0' into 6418_autodoc_typehints_description 2020-01-30 23:19:45 +09:00
Takeshi KOMIYA
09cf37eebe Fix #6899: apidoc: private members are not shown even if --private given 2020-01-30 23:17:59 +09:00
Takeshi KOMIYA
041435024f Fix #7055: linkcheck: redirect is treated as an error 2020-01-30 23:08:00 +09:00
Takeshi KOMIYA
0cc625a82c
Merge pull request #7057 from tk0miya/7051_ivar_without_defaults
Close #7051: autodoc: Support instance variables without defaults (PEP-526)
2020-01-26 01:40:09 +09:00
Takeshi KOMIYA
dcd8f41a77 Add testcase for instance variables without defaults 2020-01-26 01:25:35 +09:00
Takeshi KOMIYA
045630ec85 Deprecate sphinx.util.inspect:safe_getmembers() 2020-01-25 23:21:33 +09:00
Takeshi KOMIYA
5397664d42 Add a new extension: sphinx.ext.autodoc.typehints 2020-01-25 17:56:39 +09:00
Takeshi KOMIYA
2e22e96061 Add new event: :event:object-description-transform 2020-01-25 17:12:41 +09:00
Takeshi KOMIYA
ecf38edb43 Close #7051: autodoc: Support instance variables without defaults (PEP-526) 2020-01-25 00:57:36 +09:00
Takeshi KOMIYA
f8fc6075ba
Merge pull request #7049 from tk0miya/test_with_docutils-0.16
Test with docutils-0.16
2020-01-23 23:48:40 +09:00
Takeshi KOMIYA
9468385acc
Merge pull request #7047 from tk0miya/test_with_nightly_python_again
Test with nightly python again (refs: #7001)
2020-01-23 23:48:02 +09:00
Takeshi KOMIYA
ee28dace61 Use HEAD of html5lib on testing with py39 2020-01-23 01:11:51 +09:00
Takeshi KOMIYA
0bca63d611 Test with docutils-0.16 2020-01-23 00:50:57 +09:00
Takeshi KOMIYA
4ec24172eb Test with nightly python again (refs: #7001) 2020-01-23 00:39:43 +09:00
Takeshi KOMIYA
c4ed75752b
Merge pull request #7036 from tk0miya/7023_partial_listed_as_module_members
Fix #7023: autodoc: partial functions are listed as module members
2020-01-19 23:31:15 +09:00
Takeshi KOMIYA
4e257a8084 Merge branch '2.0' into 7023_partial_listed_as_module_members 2020-01-19 23:09:46 +09:00
Takeshi KOMIYA
334d23f880
Merge pull request #7016 from tk0miya/7006_MenuSelection_BULLET_CHARACTER
refactor: Make a bullet character for :menuselection: a constant
2020-01-19 23:07:33 +09:00
Takeshi KOMIYA
9eebb40440
Merge pull request #7020 from tk0miya/7019_gettext_absolute_paths
Fix #7019: gettext: Absolute path used in message catalogs
2020-01-19 23:06:58 +09:00
Takeshi KOMIYA
9ad85b497e
Merge branch '2.0' into 7019_gettext_absolute_paths 2020-01-19 22:48:44 +09:00
Takeshi KOMIYA
eb273fdc08
Merge pull request #7037 from tk0miya/test_with_pytest532
Test with pytest-5.3.2
2020-01-19 22:41:45 +09:00
Takeshi KOMIYA
9a6709f0f9 Test with pytest-5.3.2
It seems our CI build has been broken since pytest-5.3.3.  This
pins it to 5.3.2 to fix it temporarily.
2020-01-19 22:33:31 +09:00
Takeshi KOMIYA
a1f6bbf800
Merge pull request #7031 from tk0miya/7023_nested_partial_functions_not_listed
#7023: autodoc: nested partial functions are not listed
2020-01-19 15:49:52 +09:00
Takeshi KOMIYA
2adc12edb3
Merge pull request #7030 from tk0miya/7023_testcase_for_partialmethod_not_having_docstring
Add testcase a partialmethod not having docstring (refs: #7023)
2020-01-19 15:46:16 +09:00
Takeshi KOMIYA
53e38ccc30 Fix #7023: autodoc: partial functions are listed as module members 2020-01-19 15:22:09 +09:00
Takeshi KOMIYA
e908e43f67 Fix #7023: autodoc: nested partial functions are not listed 2020-01-17 09:15:45 +09:00
Takeshi KOMIYA
7906a6871e Add testcase a partialmethod not having docstring (refs: #7023) 2020-01-17 09:11:59 +09:00
Takeshi KOMIYA
eec9c59fc5 Fix #7019: gettext: Absolute path used in message catalogs 2020-01-13 14:25:51 +09:00
Takeshi KOMIYA
ef811532c9
Merge pull request #6984 from tk0miya/2755_type_comment_support
Close #2755: autodoc: Support type_comment style annotation
2020-01-13 13:35:41 +09:00
Takeshi KOMIYA
ffdfb6cb87 Close #2755: autodoc: Support type_comment style annotation
Note: python3.8+ or typed_ast is required
2020-01-13 13:23:45 +09:00
Takeshi KOMIYA
74a5f350a1 Add new event: autodoc-before-process-signature 2020-01-13 13:16:59 +09:00
Takeshi KOMIYA
729ffa1fcd Add sphinx.pycode.ast.parse() and unparse() 2020-01-13 13:15:33 +09:00
Takeshi KOMIYA
4cecd700e0
Merge pull request #7009 from tk0miya/refactor_SphinxTranslator2
SphinxTranslator calls visitor/departure method for super node class
2020-01-11 21:42:20 +09:00
Takeshi KOMIYA
0fb3fe5fcc
Merge branch '2.0' into refactor_SphinxTranslator2 2020-01-11 21:33:54 +09:00
Takeshi KOMIYA
b6b2ebd756
Merge pull request #7012 from tk0miya/support_pep570
autodoc: Support Positional-Only Argument separator (PEP-570 compliant)
2020-01-11 11:32:47 +09:00