Takeshi KOMIYA
3cb680acb6
Merge pull request #10048 from pradyunsg/change-heading-anchor-tooltip
...
Change "headline" to "heading"
2022-01-03 01:09:47 +09:00
Takeshi KOMIYA
b21b90d292
Merge branch '4.x'
2022-01-03 01:01:06 +09:00
Takeshi KOMIYA
05a898ecb4
Migrate to Node.findall() from Node.traverse()
...
Node.traverse() was marked as deprecated since docutils-0.18. Instead
of it, Node.findall() has been added as successor of traverse().
This applies a patch to docutils-0.17 or older to be available
Node.findall() and use it.
2022-01-03 00:35:29 +09:00
Pradyun Gedam
bc635627d3
Change "Permalink to this {headline -> heading}"
...
"heading" is a better word to use in this tooltip, since it better
matches the use case.
2022-01-02 18:32:30 +05:30
Takeshi KOMIYA
616f112e6a
autodoc: The default of autodoc_typehints_format becomes to 'smart'
...
The default value of autodoc_typehints_format configuration is changed
to `'smart'`. It will suppress the leading module names of typehints
(ex. `io.StringIO` -> `StringIO`).
refs: #9075
2022-01-02 17:35:19 +09:00
Takeshi KOMIYA
6f707a0944
Merge branch '4.x'
2022-01-02 17:24:12 +09:00
Takeshi KOMIYA
e434dd6998
Merge pull request #10042 from tk0miya/9820_distutils
...
refactor: Reduce usages of distutils (refs: #9820 )
2022-01-02 12:08:49 +09:00
Takeshi KOMIYA
e1c090d9f7
Merge pull request #10034 from tk0miya/10027_autodoc_typehints_format_for_bases
...
Fix #10027 : autodoc_typehints_format does not work with :show-inheritance:
2022-01-02 11:39:22 +09:00
Takeshi KOMIYA
0ba202009d
refactor: Reduce usages of distutils (refs: #9820 )
...
distutils module is now deprecated and will be removed since Python
3.12. So this reduces the usages of the module.
2022-01-01 21:38:56 +09:00
Takeshi KOMIYA
ce8039db1f
Merge branch '4.x'
2022-01-01 20:04:19 +09:00
Takeshi KOMIYA
f38bd8e952
Merge branch '4.3.x' into 4.x
2022-01-01 20:02:10 +09:00
Takeshi KOMIYA
6ee3dd1968
Merge branch '4.x'
2022-01-01 19:02:09 +09:00
Takeshi KOMIYA
b84771dcd2
A happy new year!
2022-01-01 18:45:03 +09:00
Takeshi KOMIYA
3fc98a2b3d
Fix #10027 : autodoc_typehints_format does not work with :show-inheritance:
2022-01-01 18:06:57 +09:00
Takeshi KOMIYA
6df45e0ead
Add mode parameter to sphinx.util.typing:restify()
...
To make the typehints in "Bases" field simple, this adds a new parameter
`mode` to sphinx.util.typing:restify() to suppress the leading module
name from typehints in "Bases" field.
2022-01-01 14:24:43 +09:00
Takeshi KOMIYA
eed0730b4b
Merge pull request #10021 from tk0miya/10015_typehints_format_with_typehints_in_description
...
Fix #10015 : autodoc: autodoc_typehints_format='short' does not work when autodoc_typehints='description'
2021-12-29 02:09:35 +09:00
Takeshi KOMIYA
a284aa6571
Merge pull request #10018 from tk0miya/10013_add_async_js_file
...
Close #10013 : html: Allow to change the loading method of JavaScript
2021-12-27 02:30:00 +09:00
Takeshi KOMIYA
1f71f85fd6
Fix #10015 : autodoc: autodoc_typehints_format='short' does not work when autodoc_typehints='description'
2021-12-27 02:23:02 +09:00
Takeshi KOMIYA
5da68c3de3
Fix py domain: "typing" types are not hyperlinked in info-field-list
2021-12-27 02:23:02 +09:00
Takeshi KOMIYA
f3a098d4e9
Merge branch '4.x' into 9194_Literal_type_not_hyperlinked
2021-12-26 20:34:38 +09:00
Takeshi KOMIYA
7da429924e
Fix testcase in py36 case
2021-12-26 20:34:05 +09:00
Takeshi KOMIYA
2ea9118181
refactor: Merge arguments of sphinx.util.typing:stringify()
2021-12-26 03:11:39 +09:00
Takeshi KOMIYA
bdbad40f57
Fix #9194 : autodoc: Prepend the "typing" module name on the signature
...
To create hyperlinks to container types automatically, this prepends the
module names for the types under "typing" module.
2021-12-26 01:04:40 +09:00
Takeshi KOMIYA
b5bf745f68
Close #10013 : html: Allow to change the loading method of JavaScript
2021-12-25 23:41:02 +09:00
Takeshi KOMIYA
0a5783f75b
py domain: Suppress the leading "typing." module from typehints
...
To support creating hyperlinks to container types naturally, py domain
should take fully-qualified typehints for them. But nobody wants to
show "typing." module name on the signature. So this suppresses them
automatically.
2021-12-25 02:50:31 +09:00
Takeshi KOMIYA
94cbce69da
Fix #9194 : autodoc: types in typing module are not hyperlinked
...
This converts types in typing module to valid references when
`autodoc_unqualified_typehints` option enabled.
2021-12-25 02:50:31 +09:00
Takeshi KOMIYA
49f576569c
Fix autodoc: Failed to parse Literal type in py36 and py37
2021-12-25 02:41:38 +09:00
Takeshi KOMIYA
a87153c018
autodoc: Rename autodoc_unqualified_typehints to autodoc_typehints_format (refs: #9931 )
2021-12-24 10:14:19 +09:00
jfbu
559e4d3707
Merge branch 'master' into 9985_latex_on_master
2021-12-23 18:26:22 +01:00
Takeshi KOMIYA
4e8bca2f2f
Merge branch '4.x'
2021-12-24 00:30:29 +09:00
jfbu
cc8e59e722
Merge branch 'master' into 9985_latex_on_master
2021-12-22 19:51:15 +01:00
jfbu
4235195e77
Fix a spelling typo in tests (s/änhlich/ähnlich)
2021-12-22 12:44:28 +01:00
Takeshi KOMIYA
e3ee8b378a
Close #9993 : std domain: Allow to refer an inline target via ref role
2021-12-21 02:51:59 +09:00
jfbu
9e8e3f9a6e
LaTeX: separate terms from their definitions by a CR ( fix #9985 )
2021-12-20 18:47:53 +01:00
Takeshi KOMIYA
40db5694fa
Merge pull request #9992 from tk0miya/debug_print
...
test: Remove debug print
2021-12-19 18:31:52 +09:00
Takeshi KOMIYA
627d73a683
test: Remove debug print
2021-12-19 18:15:56 +09:00
Takeshi KOMIYA
cacbca6dd4
Merge pull request #9987 from tk0miya/9968_ivar_not_shown
...
Fix #9968 : autodoc: ivars are not shown if __init__ has posonlyargs
2021-12-19 13:18:58 +09:00
Takeshi KOMIYA
e7e08d2a78
Fix #9968 : autodoc: ivars are not shown if __init__ has posonlyargs
2021-12-19 12:53:15 +09:00
Takeshi KOMIYA
a9a9bd2563
Fix #9979 : Error level messages were displayed as warning messages
2021-12-17 02:10:21 +09:00
Takeshi KOMIYA
8d0fd9e74a
Merge branch '4.3.x' into 4.x
2021-12-17 02:09:04 +09:00
Takeshi KOMIYA
3626c75de0
Merge pull request #9957 from tk0miya/refactor_DeprecationWarnings
...
Reduce DeprecationWarnings
2021-12-16 01:38:32 +09:00
Takeshi KOMIYA
8e23b03263
refactor: texinfo: Remove CR char from output
...
The CR character was added for readability of output. But it makes the
texinfo writer a bit complicated. This removes it from output to keep
our code simple (reducing conditions).
2021-12-11 23:05:36 +09:00
Takeshi KOMIYA
5563f672ec
Merge branch '4.x' into fix-footnote-in-info
2021-12-11 22:59:56 +09:00
Takeshi KOMIYA
dcfc3f60ec
refactor: ssl.wrap_context() has been deprecated now
2021-12-11 11:38:24 +09:00
Takeshi KOMIYA
555e74b8ca
refactor: app.html_themes was replaced by registry.html_themes
2021-12-11 11:38:24 +09:00
Takeshi KOMIYA
4c7df3f09a
Merge pull request #9793 from samdoran/enable-parallel-on-macos
...
Set multiprocessing start method to `fork`
2021-12-11 11:23:34 +09:00
Takeshi KOMIYA
d3162d1ff2
Merge pull request #9931 from tk0miya/9075_autodoc_unqualified_typehints
...
Close #9075 : autodoc: Add a config variable autodoc_unqualified_typehints
2021-12-11 10:59:23 +09:00
Takeshi KOMIYA
9c6ebdf347
Fix flake8 warnings
2021-12-11 10:33:07 +09:00
Takeshi KOMIYA
8d071a8e8f
Merge branch '4.x' into texinfo-add-texinfo_emit_document_references
2021-12-11 10:27:50 +09:00
Takeshi KOMIYA
b232b00cf8
Merge pull request #9391 from marxin/info-samp-with-variable
...
texinfo: improve variable in :samp: directives
2021-12-11 10:25:07 +09:00