Commit Graph

20811 Commits

Author SHA1 Message Date
James Addison
0806a00f05
Support `.jinja` for theme static templates (#11916)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2024-04-23 10:40:24 +01:00
Adam Turner
5a55856dd1
Properly format `collections.abc.Callable` (#12314) 2024-04-23 08:01:09 +00:00
Bénédikt Tran
1ff9adfb62
Separate cases in `stringify and restify` with greater precision (#12284)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2024-04-23 08:37:04 +01:00
Bénédikt Tran
acc92ff615
Use `TypeGuard in sphinx.util.inspect` (#12283)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2024-04-23 05:55:24 +01:00
Bénédikt Tran
b6948b8d74
Style tweaks to `sphinx.util.typing` (#12282) 2024-04-23 05:36:04 +01:00
Nicolas Peugnet
55ca37f684
Add more internationalisation tests (#12277)
- Add test for basic literal block & literalinclude translation
- Add gettext builder test for litteral blocks additional targets
- Add i18n test for xref roles in titles
- Add i18n tests for strange markup
2024-04-23 05:22:43 +01:00
Adam Turner
2f2078fba3
Refactor C and C++ AST types (#12312)
- Define ``__eq__`` and ``__hash__`` methods for AST types
- Improve the base ``__eq__`` method
- Cache the value of ``is_anon()``
- Rename ``ASTIdentifier.identifier``
- Various other serialisation improvements
2024-04-23 03:56:32 +00:00
Adam Turner
67493fcbc7 Extract evaluation of non-type objects 2024-04-23 00:48:54 +01:00
Adam Turner
f4ff61a952 Validate modes in `sphinx.util.typing`
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2024-04-23 00:36:03 +01:00
Adam Turner
827e0209ca Combine determination of the module prefix 2024-04-23 00:36:03 +01:00
Adam Turner
0463ea86cc Extract functions to format `Literal` arguments
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2024-04-22 23:56:37 +01:00
Bénédikt Tran
a5f534a77d
Add some comments for Union types in `sphinx.util.typing` (#12281) 2024-04-22 22:27:42 +00:00
Bénédikt Tran
48a345b7c5
Improve type hints for `sphinx.ext.autodoc.mock` (#12280)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2024-04-22 23:23:57 +01:00
Adam Turner
6514a86f43 Enable the G002 check 2024-04-22 23:09:01 +01:00
Adam Turner
2361db5748 Enable more Ruff checks 2024-04-22 23:09:01 +01:00
Adam Turner
80ac07907d Bump Ruff to 0.4.1 2024-04-22 22:46:51 +01:00
Adam Turner
c358b611ca Bump version 2024-04-22 20:21:26 +01:00
Adam Turner
de4ac2fbde Bump to 7.3.7 final 2024-04-19 05:43:08 +01:00
Adam Turner
4a0c9ddc7b Return the default value for unsupported theme configuration sections 2024-04-19 02:18:03 +01:00
Adam Turner
62c3bad0da Re-export `py_sig_re` from the Python domain 2024-04-18 04:11:03 +01:00
Adam Turner
3bcc669f6c Defer loading entry-point themes until needed 2024-04-18 04:10:33 +01:00
Adam Turner
fa4563f913 Bump version 2024-04-18 01:18:00 +01:00
Adam Turner
630b4fb9df Bump to 7.3.6 final 2024-04-17 22:01:02 +01:00
Adam Turner
740b964d45 fixup! Elaborate a little more in the warning message for `config.cache` 2024-04-17 21:50:46 +01:00
Adam Turner
141f3ecdf3 Elaborate a little more in the warning message for `config.cache` 2024-04-17 21:24:11 +01:00
Adam Turner
af271881e2 Add `config.cache` to the list of warning types 2024-04-17 21:23:01 +01:00
Jacob Chesslo
be2b08362c
Re-export more names in `sphinx.domains.python` (#12297)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2024-04-17 18:49:25 +01:00
Adam Turner
45fab85295 Re-export all AST types in the C and C++ domains 2024-04-17 18:20:11 +01:00
Adam Turner
630fe865df Bump version 2024-04-17 18:19:50 +01:00
Adam Turner
da4c6a7830 Bump to 7.3.5 final 2024-04-17 05:11:21 +01:00
Jacob Chesslo
37df4ce5b5
Re-export various names in `sphinx.domains.python` (#12296)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2024-04-17 05:02:13 +01:00
James Addison
943f6fbf9a
Fix test expectations for enum rendering on Python 3.12.3 (#12293)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2024-04-17 04:18:52 +01:00
Adam Turner
0d1e41feee Placate mypy 2024-04-17 02:45:59 +01:00
Adam Turner
96e2f36a33 Bump version 2024-04-17 02:45:52 +01:00
Adam Turner
9d649e235b Bump to 7.3.4 final 2024-04-17 02:38:22 +01:00
Adam Turner
34c18129f0 Handle cases when `Any is not an instance of type`
This is only needed for Python 3.10 and earlier.
2024-04-17 02:37:56 +01:00
Adam Turner
4547b49a6b Bump version 2024-04-17 02:36:48 +01:00
Adam Turner
90e82d0127 Bump to 7.3.3 final 2024-04-17 02:30:03 +01:00
Adam Turner
7bf847d2b9 Fix the valid types check for `Any in sphinx.config` 2024-04-17 02:27:21 +01:00
Adam Turner
1e98161d1f Bump version 2024-04-17 02:23:46 +01:00
Adam Turner
eb41357714 Bump to 7.3.2 final 2024-04-17 01:53:19 +01:00
Adam Turner
0c06a50222 Coerce invalid tuple values back to `_Opt` 2024-04-17 01:51:23 +01:00
Adam Turner
982681b44d Load all themes defined via entry points 2024-04-17 01:51:16 +01:00
Adam Turner
8fe915f59a Bump version 2024-04-17 01:48:18 +01:00
Adam Turner
8af2c43ca5 Bump to 7.3.1 final 2024-04-17 01:07:20 +01:00
Adam Turner
8a944ac87c Add `tomli` as a dependency for Python 3.10 and earlier 2024-04-17 01:05:49 +01:00
Adam Turner
4299600828 Bump version 2024-04-17 01:04:45 +01:00
Adam Turner
138184d834 Add various missing items to CHANGES.rst for 7.3.0 2024-04-17 00:57:53 +01:00
Adam Turner
092bac7f9c Bump to 7.3.0 final 2024-04-16 23:58:37 +01:00
Adam Turner
2b60e32be2 Update CHANGES.rst 2024-04-16 23:58:02 +01:00