Commit Graph

4179 Commits

Author SHA1 Message Date
Takeshi KOMIYA
e770e2567f Merge pull request #10427 from tk0miya/10421_autodoc_preserve_defaults_for_classmethod
Fix #10421: autodoc_preserve_defaults doesn't work on class methods
2022-05-08 23:19:10 +09:00
Takeshi KOMIYA
10dd5a0e43 Fix #10421: autodoc_preserve_defaults doesn't work on class methods 2022-05-08 22:59:14 +09:00
Takeshi KOMIYA
f58771c093 Merge pull request #10429 from tk0miya/9974_jquery-3.6.0
Close #9974: html: Updated jQuery version from 3.5.1 to 3.6.0
2022-05-08 19:04:49 +09:00
Takeshi KOMIYA
fa35e71894 Merge pull request #10430 from tk0miya/remove_test_for_jsdump
test: Remove tests for jsdump module (deprecated)
2022-05-08 19:04:17 +09:00
jfbu
97f4a036d1 Fix #10434: extra whitespace in pdf output for highlighted inline code
Related: #10251
2022-05-08 11:32:37 +02:00
Takeshi KOMIYA
8db3724e6d test: Remove tests for jsdump module (deprecated) 2022-05-08 00:48:18 +09:00
Takeshi KOMIYA
d5e76d69e8 test: Prepend "~typing" to the result of autodata
The default setting has been changed since 5.0.
2022-05-08 00:44:28 +09:00
Takeshi KOMIYA
7134317e49 Merge remote-tracking branch 'origin/5.x' into HEAD 2022-05-07 22:37:58 +09:00
Takeshi KOMIYA
06e5c036b7 Fix an isort warning 2022-05-07 22:20:43 +09:00
Takeshi KOMIYA
541fcfc557 Close #9974: html: Updated jQuery version from 3.5.1 to 3.6.0 2022-05-07 22:18:00 +09:00
Takeshi KOMIYA
5344b1b241 Merge branch '5.x' into 10258_autosummary 2022-05-07 21:27:47 +09:00
Takeshi KOMIYA
425a3e6c09 Merge branch '4.x' into 5.x 2022-05-06 03:32:43 +09:00
Takeshi KOMIYA
3805e0646f Merge pull request #10251 from jbms/fix-inline-syntax-highlight
Make code role highlighting consistent with code-block directive
2022-05-06 02:54:42 +09:00
Takeshi KOMIYA
81bb102cd1 Merge pull request #10361 from AA-Turner/split-coverage
Only test with coverage on pushes to `sphinx-doc/sphinx`
2022-05-03 02:05:24 +09:00
Takeshi KOMIYA
96b15e9e66 Merge pull request #10353 from tk0miya/10305_optional_forwardref_annotations
Fix #10305: autodoc: Failed to extract optional forwardrefs
2022-05-03 02:03:28 +09:00
Adam Turner
f95bcf51ef Refactor 2022-05-02 17:51:26 +01:00
Adam Turner
cfa324a7ed Remove always-false branches 2022-05-02 17:47:46 +01:00
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
Takeshi KOMIYA
a66adb1c32 Fix #10305: autodoc: Failed to extract optional forwardrefs
Autodoc fails to extract optional forwardrefs (ex. `Optional[MyClass]`)
even if `MyClass` is declared in `autodoc_type_aliases`.
2022-04-17 03:09:11 +09: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
zuqq
a450518bb1 Apply autodoc_typehints_format to all type hints
Specifically: attributes, data, properties, and type variable bounds.
2022-04-08 20:27:24 +01: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