Commit Graph

13901 Commits

Author SHA1 Message Date
Takeshi KOMIYA
045630ec85 Deprecate sphinx.util.inspect:safe_getmembers() 2020-01-25 23:21:33 +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
Takeshi KOMIYA
ae8fc43024 Update CHANGES for PR #6998 2020-01-08 23:31:30 +09:00
Takeshi KOMIYA
1eac74fa35
Merge pull request #6998 from Modelmat/adobe-illustrator-imgconverter
Adds support for Adobe Illustrator (.ai) to sphinx.ext.imgconverter
2020-01-08 23:27:45 +09:00
Takeshi KOMIYA
9efd806acb Merge branch '2.3.2' into 2.0 2020-01-08 13:45:08 +09:00
Takeshi KOMIYA
c07c618f1b
Merge pull request #7001 from tk0miya/stop_testing_with_nightly
Stop testing with nightly python
2020-01-08 13:44:30 +09:00
Takeshi KOMIYA
227df4ec7a Stop testing with nightly python
At present, latest typted_ast does not support python-3.9a1 or later.
As a result, nightly python in Travis CI gets errored in nearly running.
This stops to use nightly python for testing temporarily.

refs: https://github.com/python/typed_ast/issues/129
2020-01-08 13:14:20 +09:00
Modelmat
8db96431e4 Adds Adobe Illustrator (.ai) to sphinx.ext.imgconverter 2020-01-08 10:39:22 +11:00
Takeshi KOMIYA
a6a1721de6 refactor: Rename var keyword argument to "**kwargs" 2020-01-08 01:39:07 +09:00
Ralf Gommers
659c66ad98 Update documentation of download role for addition of hash in subdir
This was changed in gh-5377, but that forget the (now slightly
misleading) documentation.

Discovered in https://github.com/numpy/numpy.org/pull/14, where
we were relying on download links being stable.
2020-01-07 13:06:16 +01:00