Commit Graph

2864 Commits

Author SHA1 Message Date
Takeshi KOMIYA
53e93c9c90 Merge branch '2.4.x' into 7183_attr_ref_over_intersphinx 2020-02-22 13:10:47 +09:00
Takeshi KOMIYA
2db006a0af Fix #7183: intersphinx: `:attr:` reference to property is broken 2020-02-22 01:28:13 +09:00
Takeshi KOMIYA
2fec37219f Fix #7189: autodoc: classmethod coroutines are not detected 2020-02-22 00:49:45 +09:00
Takeshi KOMIYA
b80c7cd234 Merge pull request #7152 from gpotter2/elipsispatch
Fix #7146: support (...) in type hint comments (V2)
2020-02-16 20:35:40 +09:00
Takeshi KOMIYA
98d24464f1 refactor: Support suppressed type_comment (refs: #7152) 2020-02-16 17:32:21 +09:00
Takeshi KOMIYA
cd8f3a78d9 Fix #7156: autodoc: separator for keyword only arguments is not shown 2020-02-16 01:37:23 +09:00
gpotter2
51b80ab121 Fix #7146 2020-02-14 16:12:12 +00:00
Takeshi KOMIYA
a17ad5cd39 Merge branch '2.3.2' into 2.0 2020-02-09 15:29:10 +09:00
Takeshi KOMIYA
54d13f9264 Merge pull request #7102 from tk0miya/7095_dirhtml_broken_docref
Fix #7095: dirhtml: Cross references are broken via intersphinx and :doc:
2020-02-09 10:45:09 +09:00
Takeshi KOMIYA
1a52381a0a Merge pull request #7099 from tk0miya/6581_latex_reversed_toctree
Fix #6581: :reversed: for toctree does not effect to LaTeX build
2020-02-08 01:11:36 +09:00
Takeshi KOMIYA
13ca2323a9 Fix #7095: dirhtml: Cross references are broken via intersphinx and :doc: 2020-02-07 23:32:27 +09:00
Takeshi KOMIYA
ecf7307023 Merge branch '2.0' into 6785_attr_can_refer_props 2020-02-06 22:30:50 +09:00
Takeshi KOMIYA
753080ad1d Fix #6581: :reversed: for toctree does not effect to LaTeX build 2020-02-06 00:46:40 +09:00
Takeshi KOMIYA
92cb828f14 autodoc: Support type_comment styled type annotation for variables 2020-02-03 01:19:05 +09:00
Takeshi KOMIYA
20126433d6 autodoc: Show type annotation for instance variables 2020-02-03 01:18:38 +09:00
Takeshi KOMIYA
2ed26b4377 pycode: Support type annotations for variables 2020-02-03 01:16:21 +09:00
Takeshi KOMIYA
5e4e44c195 autodoc: Support type annotations for variables 2020-02-03 01:16:21 +09:00
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
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
0258394d0b Merge branch '2.0' into 6785_attr_can_refer_props 2020-01-30 23:32:05 +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
dcd8f41a77 Add testcase for instance variables without defaults 2020-01-26 01:25:35 +09:00
Takeshi KOMIYA
5397664d42 Add a new extension: sphinx.ext.autodoc.typehints 2020-01-25 17:56:39 +09:00
Takeshi KOMIYA
33fcd393ab Fix #6785: py domain: :py:attr: is able to refer properties again 2020-01-25 13:55:27 +09:00
Takeshi KOMIYA
ecf38edb43 Close #7051: autodoc: Support instance variables without defaults (PEP-526) 2020-01-25 00:57:36 +09:00
Jakob Lykke Andersen
5cf28abd14 C++, hax because of Windows path separators 2020-01-20 19:52:49 +01:00
Jakob Lykke Andersen
6d7ff482f6 C++, test role target checks and fix two cases 2020-01-20 19:40:00 +01: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
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
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
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
729ffa1fcd Add sphinx.pycode.ast.parse() and unparse() 2020-01-13 13:15:33 +09:00
Takeshi KOMIYA
0fb3fe5fcc Merge branch '2.0' into refactor_SphinxTranslator2 2020-01-11 21:33:54 +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
35a092b7fe SphinxTranslator calls visitor/departure method for super node class 2020-01-10 22:50:43 +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
05daa3c7ce Add sphinx.util.typing:stringify() to represent annotations as string 2020-01-05 01:13:27 +09:00
Takeshi KOMIYA
1c5a5bbbe5 Add sphinx.util.nodes:make_id() to generate better node_id 2020-01-02 22:03:39 +09:00
Takeshi KOMIYA
7123f4038a Fix #6559: Wrong node-ids are generated in glossary directive 2020-01-02 22:03:39 +09:00
Takeshi KOMIYA
eaf495c3c4 A happy new year! 2020-01-01 14:27:43 +09:00
Takeshi KOMIYA
9656b6d4dd Merge pull request #6967 from tk0miya/6966_graphviz_class
Close #6966: graphviz: Support ``:class:`` option
2019-12-29 00:25:05 +09:00
Takeshi KOMIYA
18e25d680d Close #6966: graphviz: Support `:class:` option 2019-12-27 22:38:10 +09:00
Takeshi KOMIYA
c8074b4a5d Deprecate sphinx.util:detect_encoding() and ModuleAnalyzer.encoding 2019-12-27 22:08:32 +09:00
Takeshi KOMIYA
b6244736c4 Merge pull request #6907 from kpnr/patch-2
Non-ASCII & non utf-8 charset corruption fix
2019-12-27 01:25:50 +09:00
hkm
0a982d5ebd Old get_module_source API restored, new version moved to ModuleAnalyzer class, tests updated 2019-12-25 22:29:20 +03:00