Commit Graph

21511 Commits

Author SHA1 Message Date
Adam Turner
a44293a3a8
Enable automatic formatting for `sphinx/pycode/` (#12965) 2024-10-04 15:33:19 +01:00
Adam Turner
c1d192e2c2
Enable automatic formatting for `sphinx/directives/` (#12964) 2024-10-04 15:33:10 +01:00
Adam Turner
b372b2f529
Enable automatic formatting for `sphinx/pygments_styles.py` (#12963) 2024-10-04 15:02:41 +01:00
Adam Turner
97fa70cce9
Enable automatic formatting for `sphinx/_cli/` (#12962) 2024-10-04 15:02:29 +01:00
Adam Turner
883faaa568
Check the number of arguments passed to `safe_getattr()` (#12961) 2024-10-04 14:37:05 +01:00
aiudirog
c3088ef1df
Fix call to `safe_getattr()` (#12959) 2024-10-04 14:30:38 +01:00
Adam Turner
7ece6fc1e7
Enable automatic formatting for `sphinx/util/` (#12957) 2024-10-04 14:14:55 +01:00
Adam Turner
be52db2bb3
Support placeholders for years in copyright (#12910) 2024-10-04 13:52:29 +01:00
Adam Turner
3677dd1bca Shorten `copyright` in the ChangesBuilder tests 2024-10-04 12:33:03 +01:00
Adam Turner
7195d9a662 Remove copyright and licence comments from theme asset files 2024-10-04 12:31:45 +01:00
Adam Turner
45273f292e Remove titles from theme assets 2024-10-04 12:27:26 +01:00
Adam Turner
2bc662f0f8 Shorten verbose metadata comments in templates 2024-10-04 12:20:51 +01:00
Adam Turner
dfa29f9d4a Add a missing word 2024-10-04 10:56:48 +01:00
James Addison
a84f7009ac
Restrict substitution of `copyright` years (#12516)
Only substitute copyright notice years with values from
``SOURCE_DATE_EPOCH`` for entries that match the current
system clock year, and disallow substitution of future years.

Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2024-10-04 10:48:47 +01:00
Adam Turner
5eb68b2bff Remove list of cross-reference roles 2024-10-03 22:20:55 +01:00
Adam Turner
5f3846f8c6
Improve testing for copyright year substitution (#12950) 2024-10-03 21:56:50 +01:00
danieleades
7546545876
Further improve typing in tests/ (#12816)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2024-10-03 20:17:40 +01:00
Adam Turner
b6f818f600
Add `stable_str()` (#12948)
Co-authored-by: Eric Larson <larson.eric.d@gmail.com>
2024-10-03 17:54:54 +01:00
Adam Turner
e5df455087
Move `stable_hash()` to a new private module (sphinx.util._serialise) (#12947) 2024-10-03 17:40:38 +01:00
Adam Turner
a11698d481
Replace `BuildEnvironment._update_config() with _config_status()` (#12946) 2024-10-03 17:31:53 +01:00
Tim Hoffmann
4080be1e82
Improve cross-reference documentation (#12944)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2024-10-03 15:58:37 +01:00
James Addison
80c4b65a2a
apidoc: Restore support for legacy '_t'-suffix template files (#12929)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2024-10-03 00:21:03 +01:00
Tim Hoffmann
b16e196a60
Improve `autodoc` docs (#12935)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2024-10-02 23:02:48 +00:00
Adam Turner
3d211368bd Remove "Licenses for incorporated software" 2024-10-02 16:47:09 +01:00
Tim Hoffmann
647863ed55
sphinx13: Use a background for inline literals (#12943) 2024-10-02 16:42:17 +01:00
Adam Turner
341b0417d5
fixup! "lint: typecheck docs/conf.py (#12697)" (#12933) 2024-10-01 14:41:04 +01:00
Adam Turner
702ba34aff
Restructure `autodoc` documentation (#12932) 2024-10-01 14:15:24 +01:00
Adam Turner
1e6067c93c Remove obsolete `cut_lines from conf.py` 2024-10-01 13:40:37 +01:00
James Addison
abb3ead01a
tests: text builder: resolve an ordering conflict between two section-number-related tests (#12868) 2024-09-28 19:23:25 +02:00
dependabot[bot]
4319c16f6a
Bump Ruff to 0.6.8 (#12921) 2024-09-28 14:30:20 +01:00
Adam Dangoor
88460f1c25
Remove unnecessary `# type` comments (#12925) 2024-09-28 14:29:33 +01:00
Adam Dangoor
26c30b5290
Add an initial pyright configuration (#12924)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2024-09-28 12:10:23 +01:00
khanxmetu
0a162fa8da
i18n: disable default smartquotes for zh_CN and zh_TW (#12875) 2024-09-28 00:18:54 +02:00
Adam Dangoor
5b8408aac7
Update tox lint to more closely match GitHub actions lint workflow (#12923) 2024-09-27 13:48:19 +01:00
Adam Dangoor
7487e764cb
Resolve a few mypy issues in tests (#12912)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2024-09-25 08:57:11 +01:00
dependabot[bot]
914f3f4e54
Bump Ruff to 0.6.7 (#12913) 2024-09-23 06:15:14 +01:00
Adam Dangoor
9a36cfcd0f
Enable `disallow_any_generics for sphinx.ext.napoleon` (#12911) 2024-09-23 06:15:00 +01:00
Adam Turner
de1379e23f
Use pathlib for `copy_asset_file` (#12908) 2024-09-22 08:02:58 +01:00
Adam Turner
45b7ebdc17
Allow using GMT in the HTML last updated format (#12907) 2024-09-22 07:55:09 +01:00
dependabot[bot]
cc85533b75
Bump Ruff to 0.6.6 (#12904) 2024-09-22 00:04:56 +01:00
Adam Dangoor
c65c7c979e
Enable `disallow_any_generics` in more files (#12906) 2024-09-22 00:04:40 +01:00
Adam Turner
76110c3ea0
Add `_DomainsContainer` for better static typing (#12783)
Co-authored-by: Daniel Eades <danieleades@hotmail.com>
2024-09-18 03:50:27 +01:00
James Addison
92f024e2bf
HTML search: adjustments to type-dependent CSS classnames and defaults (#12815)
Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com>
2024-09-18 03:40:20 +01:00
Stephen Finucane
bce70daf21
Restore 'noindex' support for the JavaScript and Python domains (#12844)
Signed-off-by: Stephen Finucane <stephen@that.guru>
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2024-09-18 03:37:12 +01:00
dependabot[bot]
832aabbc0b
Bump peter-evans/create-pull-request to 7.0 (#12860) 2024-09-18 03:30:58 +01:00
Adam Turner
7300f75ea2
Bump Ruff to 0.6.5 (#12898) 2024-09-18 03:28:26 +01:00
dependabot[bot]
2f2f06a930
Bump deadsnakes/action to 3.2.0 (#12872) 2024-09-18 03:28:13 +01:00
Miguel Castillón
61426f4678
Add PhaseFieldX to EXAMPLES.rst (#12830)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2024-09-18 03:02:47 +01:00
Matthias Geier
78287616b0
Enable parallel reading regardless of the number of documents (#12796)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2024-09-18 02:57:40 +01:00
Tim Hoffmann
3b9aa9cace
Format `literalinclude` directive options (#12780)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2024-09-18 02:55:14 +01:00