Commit Graph

4158 Commits

Author SHA1 Message Date
Takeshi KOMIYA
00a0e13292 Merge pull request #10411 from tk0miya/10384_skip_tests_for_imgconverter
Fix #10384: test: Skip tests for imgconvert if imagemagick not found
2022-05-03 01:42:50 +09:00
Adam Turner
971040b4b7 Merge branch '5.x' into fix-warnings
# Conflicts:
#	tests/test_search.py
2022-05-02 17:05:42 +01:00
Takeshi KOMIYA
1971c437ba Fix #10384: test: Skip tests for imgconvert if imagemagick not found 2022-05-03 00:50:59 +09:00
Hugo van Kemenade
184fe83c73 Remove redundant code for Python < 3.6 2022-05-01 17:50:34 +03:00
Takeshi KOMIYA
2f29f0a96e Merge pull request #10406 from AA-Turner/apidoc-duplicates
Ensure submodules are unique in `sphinx.ext.apidoc`
2022-05-01 19:02:37 +09:00
Adam Turner
bde47ce679 Add test for duplicated submodules in sphinx.ext.apidoc 2022-05-01 06:12:25 +01:00
Adam Turner
e7cea69954 Revert removal of jsdump implementation 2022-04-30 19:10:27 +01:00
Adam Turner
4674cc11c8 .write_text(...) -> .write_text(..., encoding='utf8') 2022-04-27 03:11:08 +01:00
Adam Turner
24e3b7c8c8 .read_text() -> .read_text(encoding='utf8') 2022-04-27 03:04:19 +01:00
Adam Turner
b536ffabc1 Deprecate sphinx.util.jsdump 2022-04-27 02:59:50 +01:00
Adam Turner
e2595b6cbe Review: Use list 2022-04-24 17:55:05 +01:00
Adam Turner
35ed39c946 Use Node.findall 2022-04-22 04:21:39 +01:00
Adam Turner
0447fbe60d Use docutils.__version_info__ directly 2022-04-22 04:21:38 +01:00
Adam Turner
a8827f3329 Catch DeprecationWarning for docutils.frontend.OptionParser 2022-04-22 04:21:38 +01:00
Adam Turner
55669f6cfc Specify encoding 2022-04-22 04:21:12 +01:00
Adam Turner
c08bffde98 Address warnings in test_util_i18n.py 2022-04-22 04:05:41 +01:00
Jakob Lykke Andersen
2ec069ba9c C and C++, support attribtues on enumerators
Fixes sphinx-doc/sphinx#10341
2022-04-17 17:27:30 +02:00
Jakob Lykke Andersen
991fe26fa5 C and C++, refactor attribute lists 2022-04-17 17:17:19 +02:00
Jakob Lykke Andersen
7dd1e5bbcf C++, simplify assginemnt-expression parsing 2022-04-17 14:22:24 +02:00
Jakob Lykke Andersen
a36c09a97f C++, use Itanium mangling for conditional expr 2022-04-17 14:22:24 +02:00
Jeremy Maitin-Shepard
2d2e0ac01a [C++] Support conditional operator "?" 2022-04-17 14:22:24 +02:00
jfbu
184f98ae95 LaTeX: correct footnote marks, extended with page of link target
Fix #10188

Footnotes in some LaTeX environments (tables, fulllineitems for object
descriptions) are gathered and appear after the environment, causing the
footnote to possibly appear on a page later than some of the footnote
marks referring it.

With this commit, the footnote mark compares page numbers and
incorporates the destination page number if it turns out to be distinct
from the page where it stands.
2022-04-16 19:33:18 +02:00
Takeshi KOMIYA
f5b3804060 Merge pull request #10285 from jmp1985/master
Fixed singledispatch documentation
2022-04-05 02:30:53 +09:00
Takeshi KOMIYA
3d2c54eb47 Fix a testcase for py36 2022-04-05 01:08:58 +09:00
Takeshi KOMIYA
67708e7bb5 Fix a testcase 2022-04-04 23:48:29 +09:00
James Parkhurst
88b213bbf0 Added test case 2022-04-04 11:45:58 +01:00
Takeshi KOMIYA
da73960492 Merge branch '5.x' into autodoc_force_undocumented_rtype 2022-04-03 22:45:42 +09:00
Takeshi KOMIYA
e38c1bda01 Fix a testcase 2022-04-03 22:44:12 +09:00
Takeshi KOMIYA
fd42063725 autodoc_typehints_description_target: Rename returnvalue_and_documented_params to documented_params 2022-04-03 22:42:44 +09:00
Takeshi KOMIYA
f731bf1999 Merge branch '5.x' into autodoc_force_undocumented_rtype 2022-04-03 22:29:22 +09:00
Takeshi KOMIYA
21e3a96f09 Close #8417: autodoc: :inherited-members: option now takes multiple classes
It allows to suppress inherited members of several classes on the module at
once by specifying the option to `automodule` directive
2022-04-03 20:17:41 +09:00
Takeshi KOMIYA
7bdc11e87c Merge pull request #10323 from tk0miya/10318_literalinclude_prepend_and_dedent
Fix #10318: literalinclude: :prepend: option working with :dedent:
2022-04-03 20:13:39 +09:00
Takeshi KOMIYA
9d81843b82 Merge pull request #10321 from tk0miya/10266_autodoc_preserve_defaults_crashes_on_kwonlyargs_without_defaults
Fix #10266: autodoc_preserve_defaults crashes on kwonlyargs w/o defaults
2022-04-03 17:20:25 +09:00
Takeshi KOMIYA
020a1f9187 Merge pull request #10313 from GutiCW/feature-support_mocked_decorator_for_class_methods
Support mocked decorator for class methods
2022-04-03 17:16:39 +09:00
Takeshi KOMIYA
0d31fc9614 Merge branch '5.x' into 10266_autodoc_preserve_defaults_crashes_on_kwonlyargs_without_defaults 2022-04-03 16:57:32 +09:00
Takeshi KOMIYA
a78c07ca07 Fix #10280: autodoc_docstring_signature generates needless return typehint
Basically, autodoc suppresses return value typehint for class
constructors.  But it was unexpectedly shown if
`autodoc_docstring_signature` is enabled and docstring has multiple
signatures.
2022-04-03 16:32:35 +09:00
Takeshi KOMIYA
e571479d54 Fix #10318: literalinclude: :prepend: option working with :dedent:
It will always be warned because prepending is processed before
dedenting.  This changes the order of processing options.
2022-04-02 23:39:47 +09:00
Takeshi KOMIYA
f5e4e70817 Fix #10266: autodoc_preserve_defaults crashes on kwonlyargs w/o defaults 2022-04-02 16:55:48 +09:00
Christian Walch
57d6ec7697 Extend test_mock_decorator for class method. 2022-04-01 07:37:07 +02:00
Takeshi KOMIYA
223b1a94f2 Merge branch '4.x' 2022-03-28 01:00:37 +09:00
Takeshi KOMIYA
4a496bfc98 Merge pull request #10178 from stephenfin/issue-10177
Revert "Close #9993: std domain: Allow to refer an inline target via ref role"
2022-03-27 23:10:52 +09:00
Takeshi KOMIYA
b20e04968e Merge pull request #10107 from Jean-Abou-Samra/intl-warnings
Implement #noqa for i18n
2022-03-27 23:00:57 +09:00
Takeshi KOMIYA
2db180da70 Merge branch '4.x' 2022-03-27 19:47:11 +09:00
Takeshi KOMIYA
c6230dc4db extlinks: Disable hardcoded links detector by default (refs: #10126)
The hardcoded links detector added since 4.4.0 causes troubles in many
projects.  Therefore, this disables it by default, and adds a new
configuration `extlinks_detect_hardcoded_links` to enable it explicitly.
2022-03-27 15:22:11 +09:00
Hugo van Kemenade
658689433e Include trailing / in PEP URL to avoid 301 redirect 2022-03-24 13:31:17 +02:00
Adam Turner
61d7b0b47c Replace jssplitter with JavaScript 2022-03-19 23:16:27 +00:00
Takeshi KOMIYA
168adb0f0e test: Fix test_markup does not use default settings for docutils 2022-03-19 22:58:27 +09:00
Takeshi KOMIYA
aa1bc83c2a Merge branch '4.x' 2022-03-19 22:58:15 +09:00
Takeshi KOMIYA
017ef6118b Merge branch '4.4.x' into 4.x 2022-03-19 22:56:54 +09:00
Takeshi KOMIYA
2f85b1a402 test: empty tuple type is now repesented w/o args since py3.11
refs: 15df8f8d89
2022-03-19 17:10:13 +09:00