Commit Graph

21519 Commits

Author SHA1 Message Date
Adam Turner
801c60a873 Consistently calculate the current file's directory 2024-11-03 17:28:02 +00:00
Adam Turner
a6559d496b Use pathlib in examples 2024-11-03 17:26:39 +00:00
Adam Turner
1094556afb Bump Ruff to 0.7.2 2024-11-03 02:55:19 +00:00
Rafael Fontenelle
db1a190c58
Use default locale_dirs value (#13079) 2024-11-02 23:47:24 +00:00
Adam Turner
867be99098 Narrow types for resolve_xref and resolve_any_xref 2024-11-02 23:17:07 +00:00
James Addison
7a3ba90540
Add James Addison to AUTHORS.rst (#13080) 2024-11-02 21:50:33 +00:00
Adam Turner
dedb21e638 Resolve _StrPath warnings in the tests 2024-11-02 21:39:18 +00:00
Adam Turner
9eff55711b Use `env.events in sphinx.ext.todo` 2024-11-02 21:32:41 +00:00
Adam Turner
c6b4114cde Make registry use explicit when creating _DomainsContainer 2024-11-02 21:32:41 +00:00
Adam Turner
c3968e9be9 Use attributes of `env rather than env.app` 2024-10-28 13:31:59 +00:00
Adam Turner
1e968be6ef Minimise installed apt packages 2024-10-26 15:49:14 +01:00
Adam Turner
3b5bce906c Use `_StrPath in sphinx.application` 2024-10-26 00:12:12 +01:00
Adam Turner
eed19a0a7f Use `_StrPath in sphinx.versioning` 2024-10-26 00:08:33 +01:00
Adam Turner
e7fa2420b6 Use `_StrPath in sphinx.config` 2024-10-26 00:07:13 +01:00
Adam Turner
5cf3e6bf9a Use `_StrPath in sphinx.util` 2024-10-25 23:58:42 +01:00
Adam Turner
3015ceb546 Use `_StrPath in sphinx.testing.restructuredtext` 2024-10-25 23:46:33 +01:00
Adam Turner
072df8f779 Use `_StrPath in sphinx.search` 2024-10-25 23:21:12 +01:00
Adam Turner
97ddc47765 Use `_StrPath in sphinx.directives.patches` 2024-10-25 23:14:24 +01:00
Adam Turner
f0f127f116 Use `_StrPath in sphinx.cmd.build` 2024-10-25 23:11:48 +01:00
Adam Turner
de24fd0b76 Use `_StrPath in sphinx.cmd.make_mode` 2024-10-25 23:06:19 +01:00
dependabot[bot]
2137d0d2eb
Bump pyright to 1.1.387 (#13092) 2024-10-31 16:04:16 +00:00
Adam Turner
116a430cac Accept PathLike in Sphinx.add_message_catalog() 2024-10-25 22:49:51 +01:00
Adam Turner
8cd599c50a Import ParamSpec from typing 2024-10-25 22:42:09 +01:00
Adam Turner
71c0fcfbc5
Use pathlib in the tests (#13051) 2024-10-25 22:41:08 +01:00
James Addison
63a4175b53
linkcheck: Remove unused 'local' status code (#13068) 2024-10-25 18:58:05 +01:00
Adam Turner
4f2de7ffc0 Rename `index{cls,name} to index_{cls,name}` 2024-10-25 18:15:55 +01:00
Adam Turner
342b597827 Refactor PythonDomain
Miscellaneous style changes.
2024-10-25 17:59:06 +01:00
Adam Turner
f43951e3ff Use keyword-arguments with `note_module()` 2024-10-25 17:53:20 +01:00
Adam Turner
8682f64b6f Use keyword-arguments with `IndexEntry` 2024-10-25 17:51:05 +01:00
James Addison
bd7d595c6b
html search: use a `Map` to collect file-term scores (#13060)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2024-10-24 19:29:56 +01:00
dependabot[bot]
70c253e968
Bump pyright to 1.1.386 (#13066) 2024-10-24 17:56:16 +01:00
dependabot[bot]
b409db1df2
Bump mypy to 1.13.0 (#13064) 2024-10-24 17:55:26 +01:00
James Addison
b75e695631
Write 'searchindex.js' using minimal JSON separators (#13062)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2024-10-24 17:54:41 +01:00
dependabot[bot]
8042eb633a
Bump mypy to 1.12.1 (#13053) 2024-10-21 06:15:16 +01:00
Rafael Fontenelle
a993a52f37
Fix locale_dirs default value in documentation (#13052) 2024-10-21 01:04:37 +01:00
Adam Turner
41c405c1a5 Use f-strings in `CheckExternalLinksBuilder.process_result()` 2024-10-21 00:15:32 +01:00
James Addison
d3dd8e43cb
Use structural pattern matching to handle linkcheck result statuses (#13049)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2024-10-21 00:11:20 +01:00
Adam Turner
bf77a4087a
Use `_StrPath in sphinx.util.i18n` (#13050) 2024-10-20 22:03:24 +01:00
Adam Turner
cb5318bdc8
Use `_StrPath in sphinx.theming` (#13048) 2024-10-20 20:15:42 +01:00
James Addison
88f560c761
Use a `StrEnum` to record linkcheck status codes (#13043)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2024-10-20 18:56:22 +01:00
Adam Turner
285908aa07
Use `_StrPath` in HTMLBuilder (#13045) 2024-10-20 01:46:52 +01:00
Adam Turner
08f8e05519 Reduce verbosity in builddoc.yml 2024-10-20 00:30:27 +01:00
Adam Turner
10f6b6bb09 Cache the result of `_file_checksum()` 2024-10-19 21:37:38 +01:00
Adam Turner
3c6ccd38c9 Use `shutil.copy2()` on Windows for better performance 2024-10-19 21:36:49 +01:00
Adam Turner
2ebb995784 Refactor `CDomain.clear_doc()` 2024-10-19 21:35:50 +01:00
Adam Turner
af694d5ae9 Improve the performance of `StandardDomain.clear_doc()` 2024-10-19 21:33:28 +01:00
Adam Turner
95e7092d92 Improve the performance of `PythonDomain.clear_doc()` 2024-10-19 21:33:28 +01:00
Adam Turner
e41617850f Define `_StatusUnknown and _URIProperties{Unknown}` 2024-10-19 20:57:58 +01:00
Adam Turner
3dc73cbdf4 Use pathlib for the Jieba default dict path 2024-10-19 20:49:48 +01:00
Adam Turner
d773a43f59
Codify linkcheck status codes into a `Literal` (#13040) 2024-10-19 20:44:21 +01:00