Takeshi KOMIYA
179e0bf8a2
refactor: Node.traverse() will returns generator since 0.18
2021-10-10 15:50:39 +09:00
Takeshi KOMIYA
2e36027474
Merge branch '4.x' into 9708_needs_extension_logic
2021-10-09 15:17:23 +09:00
Takeshi KOMIYA
3c9e53852d
Fix #9708 : needs_extension failed to check double-digit version correctly
2021-10-09 14:59:05 +09:00
Takeshi KOMIYA
2a7775dbb8
Merge branch '4.x' into 9697_property_with_parens
2021-10-09 14:49:57 +09:00
Takeshi KOMIYA
2760b3bb79
test: Support python-3.11
2021-10-09 14:41:39 +09:00
Takeshi KOMIYA
34f957f131
Merge branch '4.x' into 9697_property_with_parens
2021-10-09 14:00:39 +09:00
Takeshi KOMIYA
7f6d8e97cb
Merge pull request #9701 from tk0miya/docutils-0.18
...
Follow new structure of docutils-0.18
2021-10-09 13:55:32 +09:00
Takeshi KOMIYA
335f95afde
Support docutils-0.18; Meta directive and meta node has moved
2021-10-03 19:18:53 +09:00
Jakob Lykke Andersen
a64196f048
js/py nodes, update arglist rendering
2021-10-03 10:17:31 +02:00
Jakob Lykke Andersen
06d3d7356e
js nodes, update name rendering
2021-10-03 10:17:31 +02:00
Jakob Lykke Andersen
37083fcc1a
js nodes, update display_prefix
2021-10-03 10:17:31 +02:00
Takeshi KOMIYA
b9204186f0
Fix #9697 : An index entry with parens was registered for py:method
2021-10-03 13:03:23 +09:00
Jakob Lykke Andersen
fb45dba61e
py nodes, isort fix
2021-10-02 12:42:17 +02:00
Jakob Lykke Andersen
01ef6a437f
py nodes, PyObject anno
2021-10-02 12:41:40 +02:00
Jakob Lykke Andersen
ae7865aaf8
py nodes, PyProperty get_signature_prefix
2021-10-02 12:41:40 +02:00
Jakob Lykke Andersen
5a3b7f130d
py nodes, PyMethod get_signature_prefix
2021-10-02 12:41:40 +02:00
Jakob Lykke Andersen
51e7b6d2aa
py nodes, PyClassLike, get_signature_prefix
2021-10-02 12:41:40 +02:00
Jakob Lykke Andersen
83fcc98dbc
py nodes, PyFunction get_signature_prefix
2021-10-02 12:41:40 +02:00
Jakob Lykke Andersen
8cd0847590
py nodes, PyProperty
2021-10-02 12:41:40 +02:00
Jakob Lykke Andersen
73ade60654
py nodes, PyAttribute value
2021-10-02 12:41:40 +02:00
Jakob Lykke Andersen
2e37c5719d
py nodes, PyAttribute type
2021-10-02 12:41:40 +02:00
Jakob Lykke Andersen
e008b43683
py nodes, PyVariable value
2021-10-02 12:41:40 +02:00
Jakob Lykke Andersen
3979bbad7f
py nodes, PyVariable type
2021-10-02 12:41:40 +02:00
Jakob Lykke Andersen
3a1bd32665
py nodes, arglist
2021-10-02 12:41:40 +02:00
Jakob Lykke Andersen
92a9df7451
py nodes, Tuple
2021-10-02 12:41:40 +02:00
Jakob Lykke Andersen
c00e608783
py nodes, List
2021-10-02 12:41:40 +02:00
Jakob Lykke Andersen
1cb8c56720
py nodes, BitOr
2021-10-02 12:41:40 +02:00
oleg.hoefling
36a6fcaef1
don't print file extension twice in linkcheck warnings
...
Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com >
2021-09-27 22:12:57 +02:00
Takeshi KOMIYA
d288907fd1
Merge branch '4.x' into 9607_incorrect_orig_bases
2021-09-27 02:21:14 +09:00
Takeshi KOMIYA
0ea135e6d4
Merge branch '4.x' into 9657_qualname_of_mock
2021-09-27 01:58:44 +09:00
Takeshi KOMIYA
232dbe41c5
Merge pull request #9673 from tk0miya/9651_autodoc_typehints_description_target
...
Fix #9651 : autodoc_typehints_description_target was confused by :returns:
2021-09-27 01:58:10 +09:00
Takeshi KOMIYA
72e5090403
Merge pull request #9649 from jakobandersen/searchindex_fix
...
Searchindex fix when objects have the same name
2021-09-27 01:54:50 +09:00
Takeshi KOMIYA
5fb6fb6039
Fix #9651 : autodoc_typehints_description_target was confused by :returns:
...
It only checks the existence of `:return:` field. And it does not check
`:returns:` field. It causes the absence of return types.
2021-09-26 02:10:13 +09:00
Takeshi KOMIYA
de59a72fe6
Merge pull request #9665 from tk0miya/9664_autodoc_process_bases_injection
...
Close #9664 : autodoc: autodoc-process-bases supports reST snippet
2021-09-26 00:54:42 +09:00
Jakob Lykke Andersen
b6e60d4993
search, store objects as array to retain all
2021-09-25 10:59:49 +02:00
Jakob Lykke Andersen
356583fe8f
search, test update
2021-09-25 10:59:24 +02:00
Takeshi KOMIYA
d75e3171cd
Merge pull request #9670 from jonppe/fix-download-file-with-special-characters
...
Fix download file with special characters
2021-09-25 14:38:48 +09:00
Johannes Aalto
fa3b334ed0
Add test for encoding local file links with special characters
...
Add test to make sure Sphinx uses proper URL encoding for
special characters in file names.
Use test_html_download() since it test_html5_output() doesn't
quite seem to have easy pattern to verify the contents of href
attribute.
Issue #3097
Signed-off-by: Johannes Aalto <ext-johannes.aalto@vaisala.com >
2021-09-24 20:34:09 +03:00
Takeshi KOMIYA
d13b86e02f
Close #9664 : autodoc: autodoc-process-bases supports reST snippet
...
This allows to inject a reST snippet through autodoc-process-bases
event. It helps to modify the base classes of any class to the expected
mark-up'ed text by custom extension.
2021-09-23 10:59:01 +09:00
Takeshi KOMIYA
e79efef63a
Fix #9657 : autodoc: basecls for a subclass of mocked object is incorrect
2021-09-21 02:03:31 +09:00
Takeshi KOMIYA
10b7f0e252
Fix #9607 : autodoc: Incorrect base class detection
...
In case of the descendants of generic class, the value of
obj.__orig_bases__ is incorrect because it returns original base
arguments for the child of the generic class instead of the target
class itself.
This uses obj.__dict__ to get the correct __orig_bases__ information.
2021-09-20 13:20:26 +09:00
Takeshi KOMIYA
506590d4ba
Merge pull request #9640 from tk0miya/9639_support_asyncgenfunction
...
Close #9639 : autodoc: Support asynchronous generator functions
2021-09-18 01:03:34 +09:00
Takeshi KOMIYA
ccfca458ea
Close #9639 : autodoc: Support asynchronous generator functions
2021-09-17 02:20:40 +09:00
Takeshi KOMIYA
ed227d7d3c
Fix #9630 : autodoc: Failed to build xrefs if primary_domain is not 'py'
...
Autodoc generates reST code that uses raw `:obj:` and `:class:` xrefs to
refer the classes and types. But they're fragile because they assume
the primary_domain=='py'.
This adds `:py:` prefix to these xrefs to make them robust.
2021-09-14 23:59:47 +09:00
Takeshi KOMIYA
260f217a3d
Merge pull request #9594 from hkuno/pr/no_empty_desc_4.x
...
let user skip printing command description
2021-09-11 19:08:37 +09:00
Takeshi KOMIYA
571929974a
Add a testcase for #9694
2021-09-11 18:47:24 +09:00
Takeshi KOMIYA
c44ee0ebaa
Merge pull request #9611 from tk0miya/9560_NewType_module
...
Close #9560 : autodoc: Allow to refer NewType with modname in py310+
2021-09-11 17:19:54 +09:00
Christian Clauss
d2c95dfd0c
overridden
2021-09-08 02:33:10 +02:00
Christian Clauss
86583c578c
Fix typos discovered by codespell
2021-09-08 02:15:25 +02:00
Takeshi KOMIYA
c5b35efce3
Close #9560 : autodoc: Allow to refer NewType with modname in py310+
...
Before 3.10, an instance of NewType has incorrect module name. But it
was fixed on 3.10. This starts to use the module info if the
interpreter is 3.10+.
2021-09-05 18:28:27 +09:00