Commit Graph

19846 Commits

Author SHA1 Message Date
Adam Turner
f0dbe8180d Merge branch '6.1.x'
# Conflicts:
#	CHANGES
#	sphinx/__init__.py
2023-01-06 16:30:42 +00:00
Adam Turner
77aaa8696a Bump to 6.1.1 final 2023-01-05 16:58:09 +00:00
Adam Turner
476c115b0e
Suppress `ValueError in apply_source_workaround` (#11092) 2023-01-05 16:56:27 +00:00
Adam Turner
c80d656caf Bump version 2023-01-05 16:42:49 +00:00
Adam Turner
6e6b9ad451 Bump version 2023-01-05 13:21:52 +00:00
Adam Turner
4e1004a9c5 Bump to 6.1.0 final 2023-01-05 12:23:09 +00:00
Adam Turner
a2176d47b5 Fix deprecation warnings 2023-01-05 12:17:54 +00:00
Adam Turner
2c104e9838 Merge branch '6.0.x'
# Conflicts:
#	CHANGES
2023-01-05 12:07:18 +00:00
Adam Turner
a27d262ffe Bump to 6.0.1 final 2023-01-05 11:58:30 +00:00
Adam Turner
821569ea8a Add note for Pygments 2023-01-05 11:56:41 +00:00
Julien Schueller
222d366ead
imgmath: Fix relative file path (#10965) 2023-01-05 11:54:32 +00:00
danieleades
c499f66012
Add SIM113 lint (#11057)
SIM113: Use ``enumerate``
2023-01-05 11:45:29 +00:00
jgart
0fbd8afc05
Add missing default arguments in sphinx-apidoc.rst (#11084)
Add the missing default arguments to two CLI flags, ``-l`` and ``-d``
2023-01-05 11:44:02 +00:00
danieleades
f89f94354e
Remove flake8 plugins in favour of Ruff (#11085)
Remove flake8-comprehensions and flake8-bugbear in favour of Ruff.

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2023-01-05 11:40:52 +00:00
danieleades
04791156db
Suppress lint failures from Ruff 0.0.211 (#11086)
Ruff has added new SIM lints which sphinx has not implemented.

This suppresses those lints (matching the flake8-simplify config).
2023-01-05 11:38:29 +00:00
Adam Turner
223bb317a7 Updated CHANGES for Sphinx 6.1.0 2023-01-04 17:10:33 +00:00
Adam Turner
463a69664c Cache doctrees between reading and writing phases 2023-01-04 14:39:40 +00:00
Adam Turner
a9b0f2708b Cache doctrees more efficiently 2023-01-04 05:46:23 +00:00
Adam Turner
f4ab9adf77 Move XML Name pattern to `epub3` 2023-01-03 22:36:54 +00:00
Adam Turner
5eb79c126a Move exception formatting utilities to `sphinx.util.exceptions` 2023-01-03 22:09:30 +00:00
Adam Turner
081d72b2f7 Deprecate `path_stabilize via deprecated_alias` 2023-01-03 21:40:29 +00:00
Jean-François B
2b2c62aa78 Fix #11074: Can't change sphinxnote to use sphinxheavybox 2023-01-03 20:19:32 +01:00
Adam Turner
3b3ce9cf7b Move HTTP-date formatting utils to utils.http_date 2023-01-03 19:02:38 +00:00
Adam Turner
8c5e7013ea Move console output utilities to `sphinx.util.display`
- Merge `old_status_iterator` into ``status_iterator``.
  ``old_status_iterator`` was deprecated in version 1.6.
2023-01-03 18:37:20 +00:00
Adam Turner
1b887e4c5c Update ruff configuration 2023-01-03 18:37:20 +00:00
Jean-François B
27cf496eaf Trim duplicate in sphinxlatexadmonitions.sty latex code 2023-01-03 19:34:52 +01:00
Jean-François B
bfd95dadf2 Fix #6744: support for seealso directive should be via an environment 2023-01-03 18:58:39 +01:00
Jean-François B
08ca934fff Add 6.1.0 section to CHANGES 2023-01-03 17:29:14 +01:00
Adam Turner
29e12ec4db
Document `typing.NewType` as a class (#10700) 2023-01-02 18:57:04 +00:00
Tim Hoffmann
ec26c2f874
Document autosummary template variable "objtype" (#11044) 2023-01-02 18:38:17 +00:00
danieleades
94e6e3917f
De-glob mypy whitelist for 'sphinx.domains.*' (#11064)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2023-01-02 18:32:44 +00:00
danieleades
256e521807
Shrink mypy whitelist for 'util.nodes' module (#11061) 2023-01-02 17:55:53 +00:00
Adam Turner
77a02cf696
Use PEP 604 display for `typing.Optional and typing.Union` (#11072) 2023-01-02 17:49:18 +00:00
Adam Turner
dc3f22a370 Make MyPy happy 2023-01-02 17:41:28 +00:00
Adam Turner
b32841e153 Move tasks into parallel writing 2023-01-02 17:41:13 +00:00
Adam Turner
087522cf79 Rewrite IndexBuilder loading 2023-01-02 17:40:38 +00:00
Adam Turner
4c44f22009 Use `re` flags 2023-01-02 17:39:35 +00:00
Adam Turner
bc262cc8f1 Cosmetic refactor of `_entries_from_toctree` 2023-01-02 17:39:17 +00:00
Adam Turner
085a293357 Don't re-read doctrees from disk unnecessarily
Cache the loaded doctree and deepcopy on return
2023-01-02 17:38:19 +00:00
hofmandl1
b26b9ba971
Add faster `TocTree._toctree_copy` method (#10988)
As in the standalone html builder the navigation is flattened out for
every single html page, the code needs to create a specialised
toctree for every html page. Previously this was done by deep-copying
the complete navigation toctree and then stripping out the parts not
needed on the particular page. With this change the code only
(deep)-copies the needed parts of the toctree avoiding unnecessary
copying and throwing-away. The performance improvements seems to be
smaller for smaller page counts and get bigger the more pages are
involved.

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2023-01-02 10:46:56 +00:00
Philip Meier
6037ec3b9b
Use `finally` to terminate parallel processes (#10952) 2023-01-02 09:22:45 +00:00
danieleades
cc8f697a9b
Address SIM103 lints (#11052)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2023-01-02 09:21:32 +00:00
danieleades
dbf36f8b37
Shrink 'any-generics' whitelist for 'writers' module (#10867)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2023-01-02 05:29:46 +00:00
danieleades
c2e278520e
Add SIM905 lint (#11055)
This lints for use of a list of strings instead of splitting a constant string on whitespace
2023-01-02 05:02:42 +00:00
danieleades
2759c2c76b
Use `any` to find elements in iterable (#11053) 2023-01-02 04:52:46 +00:00
Harrissou Sant-anna
da6a20d50b
Fix typos in usage/configuration.rst (#10834) 2023-01-02 04:48:53 +00:00
Adam Turner
4032070e81
Run pyupgrade (#11070) 2023-01-02 00:01:14 +00:00
Rotzbua
ede68fa423
Remove obsolete HTML keyword `link rel="shortcut"` (#11069)
The link relationship keyword `shortcut` does not appear in the HTML 5 specification [1].

It was used by historic browsers (i.e. Internet Explorer 6) which Sphinx no longer supports.

[1]: HTML5 Specification, 4.6.7.8 Link type "icon", https://html.spec.whatwg.org/#rel-icon
2023-01-01 22:18:13 +00:00
Frazer McLean
5841080319
Clarify licence in Sphinx's metadata (#10956)
Disambiguate which BSD license is used in a computer-parsable form.
2023-01-01 22:12:55 +00:00
Adam Turner
14a9289d78 Use PEP 604 types 2023-01-01 20:48:39 +00:00