Adam Turner
14c1bc7fbe
Rearrange `sphinx.ext.intersphinx._load
`
2024-04-25 15:45:27 +01:00
Adam Turner
34393374a2
Rename `logger
to
LOGGER
`
2024-04-25 15:30:55 +01:00
Chris Sewell
3dcd21af95
Split `sphinx.ext.intersphinx._resolve
`
...
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2024-04-25 15:30:55 +01:00
Chris Sewell
49726c28f4
Split `sphinx.ext.intersphinx._load
`
...
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2024-04-25 15:30:55 +01:00
Chris Sewell
b9a3f7e3df
Split `sphinx.ext.intersphinx._cli
`
...
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2024-04-25 15:30:55 +01:00
Chris Sewell
3a1f2f377c
Split `sphinx.ext.intersphinx._shared
`
...
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2024-04-25 15:30:55 +01:00
Chris Sewell
56b793d1c2
Define `__all__
`
...
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2024-04-25 15:30:55 +01:00
Chris Sewell
3e8b8ab2d9
Move `sphinx.ext.intersphinx
` into a package
...
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2024-04-25 15:30:55 +01:00
Adam Turner
3b907a1caa
Import INVENTORY_FILENAME from canonical location
2024-04-25 13:35:06 +01:00
Benjamin Cabé
a66546895e
Properly support WebP in the image converter ( #12224 )
...
Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2024-04-25 03:43:45 +01:00
Adam Turner
50895827ba
Mark `test_restify_Annotated
` as an expected failure
2024-04-25 03:07:48 +01:00
Adam Turner
6b70620993
Add a test for `restify(Annotated[...])
`
2024-04-24 23:16:22 +01:00
Adam Turner
173b5912e5
linkcheck: Fix test to use dynamic port numbers
2024-04-24 19:36:36 +01:00
Matthias Geier
d7efb295f1
ext.duration: Fix `merge_domaindata()
` ( #12251 )
...
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2024-04-24 19:34:37 +01:00
James Knight
04b229fe4d
linkcheck: add `HyperlinkCollector.find_url()
` ( #12213 )
...
Signed-off-by: James Knight <james.d.knight@live.com>
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2024-04-24 19:19:44 +01:00
Will Lachance
208f4bcb66
HTML Search: Fix removal of unwanted anchor content from search results ( #12321 )
2024-04-24 19:09:14 +01:00
James Addison
2008aa8c78
linkcheck: Store the original (unquoted) anchor ( #12206 )
2024-04-24 18:07:31 +00:00
danieleades
6d6feb240f
Use Ruff's `extend-exclude
` ( #11901 )
...
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2024-04-24 19:00:00 +01:00
Françoise Conil
5fc2d515fd
Fix debug option in autosectionlabel documentation ( #12324 )
...
Co-authored-by: Françoise Conil <francoise.conil@insa-lyon.fr>
2024-04-24 18:59:30 +01:00
James Addison
9ebc46a74f
Remove test result sharing between 'test_html5_output' and 'test_html5_download' ( #12119 )
2024-04-24 07:45:36 +01:00
Bénédikt Tran
b5f3ef987a
Fix sphinx.util.inspect_evaluate_forwardref
for Python 3.12.4 ( #12317 )
...
Python has recently [1] changed the signature of `_evaluate` for forward references
because of type parameters. The change affects 3.13, and was backported to 3.12.4.
[1]: https://github.com/python/cpython/pull/118104
2024-04-23 19:25:34 +01:00
Donald Hunter
85fd284476
C domain: fix performance regression since 3.0.0 ( #12162 )
...
Sphinx 3.0.0 onwards have a significant performance regression from
2.4.4 for the C domain. The cProfile output shows that this is due to
_find_named_symbols using a linear search.
Replace Symbol._children with dicts, one keyed by ident and one keyed by
docname. This lets us remove _find_named_symbols and replace these usage
patterns with fast child lookup. Also use the _anonChildren list to
speed up searching through anonymous children.
Note that dict is guaranteed to maintain insertion order since Python
3.7 so we retain iteration. Whenever iteration is required, we use
_childrenByName.values().
Signed-off-by: Donald Hunter <donald.hunter@gmail.com>
Co-authored-by: Jakob Lykke Andersen <jakobandersen@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2024-04-23 19:10:55 +01:00
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