Eric Wieser
0d7451c23d
Add support for :meta public:
...
A common use case for this is a class like `namedtuple`, which has a public `_replace` method that is so-named in order not to conflict with arbitrary user-provided attributes.
Rejected spellings include:
* `:meta not-private:`
* `:meta private: False`
2020-04-14 08:41:45 +01:00
Takeshi KOMIYA
b2a601a33d
Merge branch '3.0.x' into 3.x
2020-04-13 23:36:10 +09:00
Takeshi KOMIYA
86ef8521df
Merge branch '7461_empty_tuple' into 3.0.x
2020-04-13 23:35:17 +09:00
Takeshi KOMIYA
a4edbc1104
Merge pull request #7462 from tk0miya/7461_empty_tuple
...
Fix #7461 : py domain: fails with IndexError for empty tuple in type annotation
2020-04-13 23:34:15 +09:00
Jakob Lykke Andersen
d4058eb67f
C, parse attributes
2020-04-13 13:43:26 +02:00
Jakob Lykke Andersen
bbc7b6cc54
C, add scoping directives
2020-04-12 14:13:54 +02:00
Takeshi KOMIYA
c8355234eb
Fix #7461 : autodoc: empty tuple in type annotation is not shown correctly
2020-04-12 13:00:04 +09:00
Takeshi KOMIYA
2e219366c4
Fix #7461 : py domain: fails with IndexError for empty tuple in type annotation
2020-04-12 12:57:22 +09:00
Takeshi KOMIYA
d9d381de11
Fix #7445 : a return annotation `None` is not converted to a hyperlink
2020-04-10 02:07:02 +09:00
Takeshi KOMIYA
9002b6c9ec
Merge pull request #7441 from tk0miya/7423_logging_non_string_object
...
Fix #7423 : crashed when giving a non-string object to logger
2020-04-10 00:16:46 +09:00
Takeshi KOMIYA
a5dadeb890
Fix #7418 : std domain: duplication warning for glossary terms is case insensitive
2020-04-09 01:56:13 +09:00
Takeshi KOMIYA
1ca220762b
Fix #7423 : crashed when giving a non-string object to logger
2020-04-09 00:17:37 +09:00
Takeshi KOMIYA
becc798d36
test: Fix indentation
2020-04-05 23:49:08 +09:00
Takeshi KOMIYA
231d75b0d0
Merge branch '2.x' into 3.0.x
2020-04-05 23:03:35 +09:00
Takeshi KOMIYA
360efdefec
Fix #7355 : autodoc: a signature of cython-function is not recognized well
2020-03-31 21:14:08 +09:00
Takeshi KOMIYA
32b256dc2f
Fix #7301 : epub: duplicated node_ids are generated
2020-03-29 23:55:56 +09:00
Takeshi KOMIYA
7aa5584a47
Fix #7301 : capital characters are not allowed for node_id
2020-03-29 23:55:56 +09:00
Takeshi KOMIYA
fe9473f42e
Fix #7219 : py:module directive generates incorrect index entry
2020-03-29 19:37:21 +09:00
Takeshi KOMIYA
ce25d0080e
Fix #7219 : py:function directive generates incorrect index entry
2020-03-29 19:37:19 +09:00
Takeshi KOMIYA
8da576cce0
Fix #6477 : Escape first "!" in a cross reference linking no longer possible
2020-03-28 18:54:10 +09:00
Jakob Lykke Andersen
67e5edde6d
C, C++, do not recurse in anon symbols on addition
2020-03-25 20:07:16 +01:00
Jakob Lykke Andersen
c9fb5ab9ad
C++, support pack expansion in template argument lists
2020-03-25 13:08:09 +01:00
Jakob Lykke Andersen
f9d36008e1
C++, support comma operator in expressions
2020-03-25 11:00:35 +01:00
Jakob Lykke Andersen
c6f1bf66e0
C, alternative spellings of operators
2020-03-24 18:38:42 +01:00
Jakob Lykke Andersen
077df4a084
C++, support alternate spellings of operators
...
Fixes sphinx-doc/sphinx#7367
2020-03-24 17:42:30 +01:00
Takeshi KOMIYA
8edae5fe28
Merge pull request #7356 from tk0miya/7301_node_id
...
Fix #7301 : Allow . and _ for node_id
2020-03-22 23:42:56 +09:00
Takeshi KOMIYA
dd70d9faac
Fix #7331 : autodoc: a cython-method is not recognized as a method
2020-03-22 23:13:49 +09:00
Takeshi KOMIYA
5c396b6325
Fix #7331 : autodoc: a cython-function is not recognized as a function
2020-03-22 23:13:49 +09:00
Takeshi KOMIYA
91a22a3ecc
Merge pull request #7358 from tk0miya/refactor_autodoc
...
refactor: autodoc: Remove needless spaces from blank line
2020-03-22 17:55:32 +09:00
Takeshi KOMIYA
9ebad705b8
refactor: autodoc: Remove needless spaces from blank line
2020-03-22 17:47:18 +09:00
Takeshi KOMIYA
6e15a8a88f
Merge pull request #7346 from tk0miya/7341_xref_for_type_annotations
...
Close #7341 : py domain: type annotations are converted to cross refs
2020-03-22 17:23:25 +09:00
Takeshi KOMIYA
b0a6b3f285
Close #7341 : py domain: type annotations are converted to cross refs
2020-03-22 17:10:00 +09:00
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
7bbf79c313
Fix #7301 : Allow . and _ for node_id
...
In development of 3.0, Sphinx starts to obey to the rule of
"Identifier Normalization" of docutils. This extends it to allow
dots(".") and underscores("_") for node identifier.
It allows Sphinx to generate node identifier from source string as
possible as it is (bacause dots and underscores are usually used in
many programming langauges).
This change will keep not to break hyperlinks as possible.
2020-03-22 16:39:00 +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