Commit Graph

20918 Commits

Author SHA1 Message Date
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
James Addison
4f4d979b41
Use hash-based directory names in the remote image download cache (#12274)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2024-04-16 23:52:06 +01:00
github-actions[bot]
9078cf21df
Update message catalogues (#11626)
Co-authored-by: AA-Turner <9087854+AA-Turner@users.noreply.github.com>
2024-04-16 22:59:33 +01:00
Adam Turner
7c783d3356 Whitelist failures in Tamil translations 2024-04-16 22:52:46 +01:00
Adam Turner
5562e2b032 Restore formatting in `.ruff.toml` 2024-04-15 02:02:19 +01:00
Adam Turner
873d7431a7 Use f-strings in `sphinx.util.typing` 2024-04-15 01:55:44 +01:00
Adam Turner
09d05a0858 Don't render types with `Optional[...]`
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2024-04-15 01:35:47 +01:00
Adam Turner
5ed1921abb Use sentinel objects in `sphinx.util.inspect`
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2024-04-15 00:39:15 +01:00
Bénédikt Tran
e352a675de
Improve `sphinx.util.inspect` (#12256)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2024-04-13 01:10:17 +01:00
James Addison
67303920fe
Make the test suite connectivity-agnostic (#12095)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2024-04-12 23:32:12 +01:00
James Addison
e1d5235d5d
Escape reserved path characters in the remote images post-transform (#12253)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2024-04-12 23:21:24 +01:00
James Addison
532ad0306e
linkcheck: Make the new 'timeout' status opt-in (#12023)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2024-04-12 23:18:22 +01:00
Adam Turner
db7ba522d7
Install epubcheck for Docutils HEAD tests (#12272) 2024-04-12 21:32:19 +01:00
Adam Turner
b30088d68f Bump Ruff to 0.3.7 2024-04-12 21:04:51 +01:00
Adam Turner
b4cccb70f7
Support Docutils 0.21 (#12267) 2024-04-12 19:42:15 +01:00
Adam Turner
6419d31bef
Partially revert Docutils' [r9562] to fix epubcheck (#12271) 2024-04-12 19:39:27 +01:00
Adam Turner
5d98553b63 Add Python 3.12 to the version support policy 2024-04-11 19:57:11 +01:00
Adam Turner
f51b9d9988 Test with Docutils 0.21 2024-04-11 19:51:47 +01:00
Adam Turner
8ee9c536b7
Fix mypy errors on Windows (#12266) 2024-04-11 19:40:53 +01:00
Dimitri Papadopoulos Orfanos
5bec029bfd
Import `Sequence from collections.abc` (#12252) 2024-04-11 19:03:04 +01:00
Adam Turner
72760ad5f3 Ensure that `[theme] and [options] are tables in theme.toml` 2024-04-11 19:01:17 +01:00
Adam Turner
44a42d53af Add basic tests for `_ConfigFile` 2024-04-11 19:01:17 +01:00
Adam Turner
fba5d2af6c Convert `theme.conf to theme.toml` (part 2) 2024-04-11 19:01:17 +01:00
Adam Turner
e29e5fed36 Convert `theme.conf to theme.toml` (part 1) 2024-04-11 19:01:17 +01:00
Adam Turner
254bfe4f4e Add `theme.toml` migration tool 2024-04-11 19:01:17 +01:00
Adam Turner
8976fa4498 Support `theme.toml` 2024-04-11 19:01:17 +01:00
Adam Turner
a5d7cce7f5 Fix `_ConfigFile` handling of sequence types 2024-04-11 19:01:17 +01:00
Dimitri Papadopoulos Orfanos
6caf4ee17e
Reduce size of PNG files in the tutorial (#12245) 2024-04-11 16:26:06 +01:00
Adam Turner
6fd8b30043
Parse `theme.conf to a new _ConfigFile` type (#12254) 2024-04-10 00:10:26 +01:00
Dimitri Papadopoulos Orfanos
dbedb52782
Apply the FURB142 Ruff rule (#12240) 2024-04-09 18:48:24 +01:00
Dimitri Papadopoulos Orfanos
be9b9349cc
Use the proper type for Pytest's "minversion" option (#12244)
Numbers (integer or decimal) are permitted, but strings are preferred
2024-04-09 18:46:32 +01:00
Adam Turner
9ebfadbcad Create subsection for theme configuration 2024-04-09 18:34:55 +01:00
Adam Turner
e3f0aa9307 Ensure raw strings are used for regular expression patterns 2024-04-09 18:33:42 +01:00
Dimitri Papadopoulos Orfanos
63e7ee6de1
[docs] Fix a typo newly found by codespell (#12243) 2024-04-09 09:42:01 +02:00
Adam Turner
3421e5382a
Narrow `Generator[T, None, None] types to Iterator[T]` (#12241) 2024-04-09 03:26:44 +01:00
Eric Norige
413e740dca
🐛 Fix singlehtml target uris to be same-document references (#11970)
Before this change, target_uris would be generated as `index.html#foo`. 
This makes it difficult to rename the generated document and can require reloading the document when following a link.

After this change, they are just `#foo`, which avoids the above problems.
2024-04-08 00:08:30 +02:00
Bénédikt Tran
c7c02002e5
[search] fix an undefined local variable (#12235) 2024-04-06 20:12:53 +02:00
Bénédikt Tran
db4939f007
[misc] update wording of `versionadded to Added in [...]` (#12184)
Motivated by the community feedback, the wording of ``versionadded`` is changed 
from ``New in [...]`` to ``Added in [...]``.
2024-04-05 13:32:55 +02:00
Nok Lam Chan
17a84a6443
[doc] clarify units for `linkcheck_rate_limit_timeout` (#12225)
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>

This normalizes the description of the configuration value so that its default value's unit is the same as the internal one (i.e., seconds).
2024-04-05 11:51:02 +02:00
James Addison
4b7a2c3f05
[search] refactor `Search.query` into separate functions (#12229)
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2024-04-05 11:20:04 +02:00
James Addison
de1c4d7faa
[typo] fix `language_data.js_t` (#12228)
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2024-04-04 19:24:58 +02:00
Nicolas Peugnet
600d3d3ada
[i18n] fix non-translated formatted string in the search page (#12215) 2024-04-04 17:57:39 +02:00
Bénédikt Tran
f7a1397d6c
[console] enhance detection and elimination of known ANSI escape sequences (#12216)
This PR improves the logic for detecting and eliminating ANSI color codes and other escape sequences introduced by Sphinx. ANSI escape sequences that are not natively known to Sphinx are not eliminated (e.g., VT100-specific functions).
2024-04-04 12:35:38 +02:00
James Addison
df3cde65fa
[tests] linkcheck: bind each test HTTP server to a unique port per-testcase (#12126)
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2024-04-04 11:25:53 +02:00