Commit Graph

3021 Commits

Author SHA1 Message Date
Takeshi KOMIYA
79989ce40e Merge pull request #7351 from tk0miya/7324_multiple_suffixes_for_same_document
Fix #7324: Emit a warning if multiple files for same document found
2020-03-22 17:08:35 +09:00
Takeshi KOMIYA
6f60864d03 Add "once" option to logger.warning() 2020-03-21 19:48:55 +09:00
Takeshi KOMIYA
89dd4bf438 Fix #6240: napoleon: Attributes and Methods sections ignore :noindex: option 2020-03-21 18:54:44 +09:00
Jakob Lykke Andersen
0eb3ad22bf Update autodoc tests for new backslash handling 2020-03-20 18:31:29 +01:00
Jakob Lykke Andersen
088f26278f Add C++ test for backslash stripping 2020-03-20 13:26:51 +01:00
Takeshi KOMIYA
c0cc755306 test: Add testcase for make_id() 2020-03-20 19:34:19 +09:00
Takeshi KOMIYA
088c05ae46 Merge pull request #7320 from tk0miya/refactor_autosummary
refactor: autosummary: Define AutosummaryEntry as a return type of find_autosummary_*()
2020-03-19 01:30:35 +09:00
Jakob Lykke Andersen
dcbbc83ac7 C++, fix minor space issues in declarators 2020-03-18 09:57:23 +01:00
Jakob Lykke Andersen
91e536597c Use logging.suppress_logging() 2020-03-17 18:34:35 +01:00
Jakob Lykke Andersen
02c4a0d02f C and C++ domains, change to new logging
Also add get_source_info() to SphinxDirective and SphinxRole
2020-03-17 18:34:35 +01:00
Takeshi KOMIYA
2f33b9376b Add suppress_logging()
As a helper for C/C++ domain, this adds suppress_logging().  It
works as a context manager and suppresses all loggings during the
context temporarily.
2020-03-18 01:35:30 +09:00
Jakob Lykke Andersen
385f7ed40e Merge pull request #7319 from jakobandersen/c_revamp
C domain rewrite
2020-03-17 10:19:10 +01:00
Jakob Lykke Andersen
cc103b81be C++, prevent false warnings from expressions with < 2020-03-16 14:10:25 +01:00
Takeshi KOMIYA
4352991338 refactor: autosummary: Define AutosummaryEntry as a return type of find_autosummary_*() 2020-03-16 10:41:37 +09:00
Jakob Lykke Andersen
04efdfa917 C, style decl specifiers as intented 2020-03-15 19:54:43 +01:00
Jakob Lykke Andersen
fdc55201c8 C, add __int64 as a fundamental type 2020-03-15 19:49:16 +01:00
Jakob Lykke Andersen
b2ca906830 C, add expression parsing and expr role 2020-03-15 19:49:16 +01:00
Jakob Lykke Andersen
815a9c657d C, add new directives, fix xref lookup 2020-03-15 19:49:16 +01:00
Jakob Lykke Andersen
0f49e30c51 C, initial rewrite 2020-03-15 19:49:16 +01:00
Takeshi KOMIYA
a0bef9a86d Merge pull request #7142 from septatrix/html-auxiliary-pygments-style
Add option for auxiliary pygments styles
2020-03-15 22:20:44 +09:00
Takeshi KOMIYA
4408e6ba86 Merge pull request #7314 from garciparedes/3.x
Propagate maxdepth option through package documents
2020-03-15 22:18:28 +09:00
Sergio Garcia Prado
11dbf61626 * Updated tests according to latest changes. 2020-03-15 12:02:49 +01:00
Antony Lee
f9048cf18e Handle singledispatch functions with rewritten signatures.
If a singledispatch function has its `__signature__` rewritten, autodoc
fails to annotate that signature because `func.__annotations__` is not
consulted.  Instead, directly assign to `__signature__` instead.
2020-03-14 22:52:45 +01:00
Septatrix
f655835338 Fix tests 2020-03-14 19:46:37 +01:00
Septatrix
44fbd39ab2 Fix checking wrong highlighter 2020-03-14 18:49:25 +01:00
Septatrix
81fe5f8477 Remove html_pygments_dark_style option 2020-03-14 18:46:02 +01:00
Septatrix
6314419bc5 Add tests for pygments_dark_style options 2020-03-14 15:10:25 +01:00
Takeshi KOMIYA
5c0d0438c4 Merge pull request #6990 from tk0miya/function_signature
py domain: Allow to make a style for arguments of functions and methods
2020-03-14 17:42:04 +09:00
Takeshi KOMIYA
0829a76344 Merge pull request #7305 from tk0miya/7304_pycode_op_support
Fix #7304: pycode: Support operators (BinOp, BoolOp and UnaryOp)
2020-03-14 17:38:08 +09:00
Takeshi KOMIYA
50cf68e0d4 py domain: Allow to make a style for arguments of functions and methods (refs: #6417) 2020-03-14 16:55:55 +09:00
Takeshi KOMIYA
f6d58bbefc Fix #7304: pycode: Support operators (BinOp, BoolOp and UnaryOp) 2020-03-14 13:51:49 +09:00
Takeshi KOMIYA
f4c29949ce c domain: Generate node_id for objects in the right way 2020-03-09 02:00:26 +09:00
Takeshi KOMIYA
3f21fd6041 Merge branch '3.x' into 7079_autodoc_typehints_description 2020-03-08 15:08:47 +09:00
Takeshi KOMIYA
a73617c51b Merge pull request #7275 from tk0miya/refactor_pydecorator
py domain: refactor PyDecoratorFunction and PyDecoratorMethod
2020-03-08 15:07:09 +09:00
Takeshi KOMIYA
8e1934b6a1 Close #7246: Drop special cross reference helper for exceptions, functions and methods 2020-03-07 23:19:54 +09:00
Takeshi KOMIYA
372813a137 Merge pull request #7262 from tk0miya/testcase_for_py
test: Add testcase for special case of PythonDomain.find_obj()
2020-03-07 23:18:07 +09:00
Takeshi KOMIYA
dd455fe3d3 test: Add testcases for decorators 2020-03-07 23:05:26 +09:00
Takeshi KOMIYA
8f7cc26b20 autodoc: Support singledispatch methods 2020-03-07 17:50:10 +09:00
Takeshi KOMIYA
961b4d1545 Close #2815: autodoc: Support singledispatch functions 2020-03-07 17:50:10 +09:00
Takeshi KOMIYA
d517aa6c16 Close #7079: Make autodoc_typehints=description formal 2020-03-07 13:19:37 +09:00
Takeshi KOMIYA
d7cab2ebfa test: Add testcase for special case of PythonDomain.find_obj() 2020-03-07 02:18:10 +09:00
Takeshi KOMIYA
729efd28b0 py domain: Generate node_id for objects in the right way 2020-03-07 02:00:50 +09:00
Takeshi KOMIYA
5ff3b9dc4d py domain: Generate node_id for modules in the right way 2020-03-07 01:48:17 +09:00
Takeshi KOMIYA
b3b0d3ad2c refactor: latex: Move initialization of multilingual module to builder 2020-03-07 01:13:23 +09:00
Takeshi KOMIYA
5a848e3d9d Merge pull request #7230 from tk0miya/refactor_std_domain
std domain: Generate node_id for objects in the right way
2020-03-07 00:11:16 +09:00
Takeshi KOMIYA
cdbefb600f Support user defined LaTeX themes 2020-03-06 22:11:25 +09:00
Takeshi KOMIYA
4ab4100cc5 test: Add testcases for latex docclasses 2020-03-06 22:11:08 +09:00
Takeshi KOMIYA
c0535d700e std domain: Generate node_id for productionlists in the right way 2020-03-06 02:10:04 +09:00
Takeshi KOMIYA
b5aa3ca1ac Merge branch '3.x' into 7005_kbd_for_latex 2020-03-05 23:47:07 +09:00
Takeshi KOMIYA
34057601f4 Close #7165: autodoc: Support Annotated type (PEP-593) 2020-03-03 00:14:24 +09:00