Commit Graph

17364 Commits

Author SHA1 Message Date
Takeshi KOMIYA
226c70c58b
Merge pull request #9106 from tk0miya/9103_imgconverter_unexpected_conversion
Fix #9103: LaTeX: imgconverter: conversion runs even if not needed
2021-04-18 15:21:04 +09:00
Takeshi KOMIYA
e0ce61d533
Merge branch '4.0.x' into 9103_imgconverter_unexpected_conversion 2021-04-18 15:08:51 +09:00
Takeshi KOMIYA
38c6e95c50
Merge pull request #9107 from tk0miya/8818_nitpicky_for_Any
Fix #8818: autodoc: Super class having ``Any`` arguments causes nit-picky warning
2021-04-18 14:46:18 +09:00
Takeshi KOMIYA
c2c2b81f91 Fix #8818: autodoc: Super class having `Any` arguments causes nit-picky warning
On generating the base class information, unexpected nit-picky warning
for ``typing.Any`` was emitted.  This fixes it by using `~` prefix on
generating a cross-reference to make it valid.
2021-04-18 00:25:48 +09:00
Takeshi KOMIYA
e94944cdd8
Merge pull request #9104 from tk0miya/8127_nitpicky_ellipsis
Fix #8127: py domain: Ellipsis in info-field-list causes nit-picky warning
2021-04-17 22:10:41 +09:00
Takeshi KOMIYA
5f56d4146e Fix #9103: LaTeX: imgconverter: conversion runs even if not needed
The imgconverter unexpectedly goes to convert even if the given image
is supported by the target builder when the image globbing is not used.
This enables format guess-ing on not globbed.
2021-04-17 16:51:19 +09:00
Takeshi KOMIYA
c7b169c5a9 Fix #8127: py domain: Ellipsis in info-field-list causes nit-picky warning
On parsing the types, the leading dot of the ellipsis (...) is considered
as a reference name.  And its first dot is considered as a notation for
relative type reference (ex. ".ClassName"). As a result, it was converted
double dots unexpectedly.

This changes the parsing rule to treat the ellipsis as a symbol, not a
name.
2021-04-17 02:06:57 +09:00
Jakob Lykke Andersen
8954770f67
Merge pull request #9023 from jakobandersen/decl_styling
Flexible declaration styling
2021-04-12 22:02:57 +02:00
Jakob Lykke Andersen
709339ec53 Decl styling, disable smart quoting in sigs 2021-04-12 20:40:08 +02:00
Jakob Lykke Andersen
9b3b8a49fb Decl styling, fix font size in basic 2021-04-12 20:24:11 +02:00
Jakob Lykke Andersen
cb21eb2283 Decl styling, handle desc_inline in manpage and texinfo 2021-04-12 19:07:51 +02:00
Jakob Lykke Andersen
da5b8e41e3 Decl styling, fixes from review 2021-04-12 19:07:51 +02:00
Jakob Lykke Andersen
a840b9e4d6 C, C++, fix unary op 2021-04-12 19:07:51 +02:00
Jakob Lykke Andersen
f1d9d0aac6 Decl styling, C styling and C++ char literal styling 2021-04-12 19:07:51 +02:00
Jakob Lykke Andersen
9cd9e124ff Decl styling, convert C 2021-04-12 19:07:51 +02:00
Jakob Lykke Andersen
a1ac0fd1ec Decl styling, C++, fix alternate spellings of operators 2021-04-12 19:07:51 +02:00
Jakob Lykke Andersen
7126503eeb Decl styling, update writers
Add test objects so all builders gets exposed to the new nodes.
Make the fallback node post-transform change desc_inline as well.
Make the html4, latex, and text writers handle desc_inline.
2021-04-12 19:07:51 +02:00
Jakob Lykke Andersen
c0ef6a9265 Fix isort violation 2021-04-12 19:07:51 +02:00
Jakob Lykke Andersen
f769dde254 Decl styling, fix html test 2021-04-12 19:07:51 +02:00
Jakob Lykke Andersen
3fdc9bcf9f Fix desc_sig_space 2021-04-12 19:07:51 +02:00
Jakob Lykke Andersen
87414faa92 Decl styling, fix cpp tests 2021-04-12 19:07:51 +02:00
Jakob Lykke Andersen
70708e4b24 Decl styling, add CSS for the C++ domain 2021-04-12 19:07:51 +02:00
Jakob Lykke Andersen
c1da955df2 Decl styling, use a post-transform to get the domain name in the desc_signature nodes 2021-04-12 19:07:51 +02:00
Jakob Lykke Andersen
86eeee5031 Fix flake8 and mypy violations 2021-04-12 19:07:51 +02:00
Jakob Lykke Andersen
b0a2e5cf04 Decl styling, consistent monospace 2021-04-12 19:07:41 +02:00
Jakob Lykke Andersen
98800be904 Decl styling, make desc_inline node
Use the new node for cpp:expr
2021-04-12 19:06:44 +02:00
Jakob Lykke Andersen
e012c93f1b Decl styling, move static classes to addnodes from HTML5 writer 2021-04-12 19:05:58 +02:00
Jakob Lykke Andersen
d131ec7acb Decl styling, move desc dynamic classes to domain base class 2021-04-12 19:05:58 +02:00
Jakob Lykke Andersen
3c9a74cb0b Decl styling, docs and restructuring 2021-04-12 19:05:58 +02:00
Jakob Lykke Andersen
14f7d243bd Decl styling, more nodes and C++ conversion 2021-04-12 19:05:58 +02:00
Takeshi KOMIYA
32337c3ba7
Merge pull request #9084 from tk0miya/8731_docs_for_napoleon_preprocess_types
doc: Add docs for napoleon_preprocess_types
2021-04-13 01:15:44 +09:00
Takeshi KOMIYA
8347e248a7
Merge pull request #9086 from tk0miya/8898_docs
docs: Add versionchanged tag to extlinks (refs: #8898)
2021-04-13 01:15:10 +09:00
Takeshi KOMIYA
d0d06923eb Bump version 2021-04-12 00:30:49 +09:00
Takeshi KOMIYA
4a328f41a5 Bump to 4.0.0 beta1 2021-04-12 00:29:49 +09:00
Takeshi KOMIYA
d59e96c8b4 docs: Add versionchanged tag to extlinks (refs: #8898) 2021-04-11 22:25:48 +09:00
Takeshi KOMIYA
04565936a9 Update CHANGES for PR #8898 2021-04-11 22:18:01 +09:00
Merry Bass
93cf1a57d9 fixup! sphinx.ext.extlinks: Allow `%s` in link caption string
The old syntax will be deprecated in 4.x and 5.x and removed in Sphinx
6.0.
2021-04-11 22:14:55 +09:00
Merry Bass
75605d437f fixup! sphinx.ext.extlinks: Clarify escaping of `%` 2021-04-11 22:14:24 +09:00
Merry Bass
ef1747f03a sphinx.ext.extlinks: Clarify escaping of `%`
We use Pythons %-formatting, so literal ``%`` must be escaped as ``%%``.
Clarify this behaviour for the caption and base URL strings.
2021-04-11 22:14:17 +09:00
Merry Bass
fb39974486 sphinx.ext.extlinks: Allow `%s` in link caption string
Tweak syntax of extlinks to also allow ``%s`` in the link caption part.
Like for the base URL ``%s`` will be substituted with the content of the
role.  This allows configurations like

    extlinks = {'quarter': ('https://example.org/quaters/%s',
                          '%s. quarter')}

with ``:quarter:`2``` getting replaced by a link titled `2. quarter`.

The requirement for the caption string is to be either None or contain
exactly one ``%s``.  If neither is the case, then we emit a warning and
fall back to the old behaviour which is concatenating the caption string
with the role content.
2021-04-11 22:14:01 +09:00
Takeshi KOMIYA
081e717c91 Merge branch '3.x' 2021-04-11 22:13:16 +09:00
Takeshi KOMIYA
1423924923 Merge branch '3.5.x' into 3.x 2021-04-11 22:12:57 +09:00
Takeshi KOMIYA
9238dd89ac Revert "Merge pull request #8898 from merrybass/feature-extlinks-pattern"
This reverts commit cd83daa967, reversing
changes made to c58cea9afa.
2021-04-11 22:10:22 +09:00
Takeshi KOMIYA
cd83daa967
Merge pull request #8898 from merrybass/feature-extlinks-pattern
sphinx.ext.extlinks: Allow ``%s`` in link caption string
2021-04-11 22:09:06 +09:00
Takeshi KOMIYA
d09747f225 doc: Add docs for napoleon_preprocess_types 2021-04-11 21:35:47 +09:00
Takeshi KOMIYA
42a1bcf2c7 test: Skip test for py310-dev 2021-04-11 20:43:05 +09:00
Takeshi KOMIYA
8a5cb89714 Merge branch '3.x' 2021-04-11 20:30:40 +09:00
Takeshi KOMIYA
1c6df11a8d Merge branch '3.5.x' into 3.x 2021-04-11 20:29:11 +09:00
Takeshi KOMIYA
1cc969ec29 Merge branch 'disable_test_with_py310' into 3.5.x 2021-04-11 20:28:46 +09:00
Takeshi KOMIYA
694664ca6e Bump version 2021-04-11 20:28:18 +09:00