Commit Graph

13913 Commits

Author SHA1 Message Date
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
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
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
Takeshi KOMIYA
af27f7d545 refactor: Make a bullet character for :menuselection: a constant
refs: #7006
2020-01-11 11:21:09 +09:00
Takeshi KOMIYA
d82edef388
Merge pull request #7013 from tk0miya/refactor_signature3
refactor: Simplify stringify_signature()
2020-01-11 02:58:46 +09:00
Takeshi KOMIYA
f7c9049e9c
Merge pull request #7011 from tk0miya/refactor_glossary5
Fix node_id is not assigned on translation
2020-01-11 02:41:30 +09:00
Takeshi KOMIYA
adaa566cc5 refactor: Simplify stringify_signature() 2020-01-11 02:33:12 +09:00
Takeshi KOMIYA
9ed162921e autodoc: Support Positional-Only Argument separator (PEP-570 compliant) 2020-01-11 02:32:33 +09:00
Takeshi KOMIYA
6fa592f111
Merge pull request #7002 from tk0miya/refactor_Signature2
refactor: Add sphinx.util.inspect.signature()
2020-01-11 01:24:09 +09:00
Takeshi KOMIYA
3e0390720a
Merge pull request #7003 from tk0miya/6999_napoleon_tilde_in_exc_role
Fix #6999: napoleon: fails to parse tilde in :exc: role
2020-01-11 01:21:22 +09:00
Takeshi KOMIYA
a438191304 Fix node_id is not assigned on translation 2020-01-11 00:59:22 +09:00
Takeshi KOMIYA
35a092b7fe SphinxTranslator calls visitor/departure method for super node class 2020-01-10 22:50:43 +09:00
Takeshi KOMIYA
4d64cd1142
Merge pull request #6997 from tk0miya/refactor_glossary4
Update type annotations
2020-01-09 01:17:30 +09:00
Takeshi KOMIYA
1f6819ba42
Merge pull request #6995 from rgommers/download-role
Update documentation of download role for addition of hash in subdir
2020-01-09 00:34:53 +09:00
Takeshi KOMIYA
2f04fda809
Merge pull request #6996 from tk0miya/refactor_kwargs
refactor: Rename var keyword argument to "**kwargs"
2020-01-09 00:34:11 +09:00
Takeshi KOMIYA
6852aa4bf9 Update type annotations 2020-01-09 00:32:39 +09:00
Takeshi KOMIYA
5867416612 refactor: Add sphinx.util.inspect.signature()
As a successor of sphinx.util.inspect.Singnature, this adds
signature() function behaves like `inspect.signature()`.  It is
very similar to way of python's inspect module.

In addition, this also adds stringify_annotation() helper to
sphinx.util.inspect module.  With these two functions, we can move
to python's Signature object to represent function signatures
perfectly.  It's natural design for python developers than ever.
2020-01-09 00:32:07 +09:00
Takeshi KOMIYA
b14439ca48 Fix #6999: napoleon: fails to parse tilde in :exc: role 2020-01-09 00:15:27 +09:00