Commit Graph

6075 Commits

Author SHA1 Message Date
Matt Wozniski
8248be31db autodoc: Reset `sys.modules` on partial import failure (#11645)
If importing with ``TYPE_CHECKING is True`` fails, reset the state of ``sys.modules``
so that the attempt with ``TYPE_CHECKING is False`` may succeed.

Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2023-08-29 20:05:41 +01:00
Adam Turner
123690abd0 Rephrase the CHANGES entry for GH-11649 2023-08-28 12:37:06 +01:00
Adam Turner
3037f8599c Bump version 2023-08-28 05:16:01 +01:00
Adam Turner
3256f1f220 Bump to 7.2.4 final 2023-08-28 05:16:00 +01:00
Dmitry Shachnev
2f025a4b22 linkcheck: Fix conversion from UTC time to the UNIX epoch (#11649)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2023-08-28 03:39:13 +00:00
Adam Turner
5e88b9f886 Fix the MoveModuleTargets transform (#11647)
This resolves a regression introduced in GH-10478
(commit 97d2c5da2f).
2023-08-26 09:30:28 +00:00
Shengyu Zhang
694fcee13d Fix markup in CHANGES (#11639) 2023-08-26 10:15:17 +01:00
Adam Turner
bf339b123e Bump version 2023-08-26 09:54:01 +01:00
Adam Turner
2f6ea1422b Bump to 7.2.3 final 2023-08-23 23:17:19 +01:00
Adam Turner
07b87e9512 Update CHANGES for 7.2.3 2023-08-23 21:19:34 +01:00
Adam Turner
6b17dd1b28 Support string methods on path objects (#11619) 2023-08-23 19:33:56 +01:00
Adam Turner
a73fb59a71 Support positional-only parameters in classmethods (#11635) 2023-08-23 19:33:16 +01:00
Adam Turner
6183b6abee Require sphinxcontrib-serializinghtml 1.1.9 or later 2023-08-21 00:28:26 +01:00
Zack Cerza
1e16f21019 Fix regression in `autodoc.Documenter.parse_name` (#11613)
If the assert statement added in GH-11523 fails,
the build fails and the user only sees
``assert matched is not None``.
With this change, the user gets a proper warning message
containing the name of the offending module,
and the build will succeed.

Signed-off-by: Zack Cerza <zack@redhat.com>
Co-authored-by: Zack Cerza <zack@redhat.com>
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2023-08-20 22:33:36 +00:00
Adam Turner
5d929d9778 Bump version 2023-08-18 18:07:45 +01:00
Adam Turner
ed84d63e6f Bump to 7.2.2 final 2023-08-17 17:56:38 +01:00
Adam Turner
e47846a812 Fix `:noindex: for PyModule and JSModule` 2023-08-17 17:54:30 +01:00
Adam Turner
b2fc47fe3d Add CHANGES entry for renaming the `StateMachine.insert_input()` parameter 2023-08-17 17:33:27 +01:00
Adam Turner
0835c3e8ea Fix regression in `SingleFileHTMLBuilder._get_local_toctree` 2023-08-17 17:31:53 +01:00
Adam Turner
49dc0dd399 Fix asset class string interface membership testing 2023-08-17 17:31:53 +01:00
Adam Turner
e1d9068c60 Bump version 2023-08-17 17:31:53 +01:00
Adam Turner
441a9e4d62 Bump to 7.2.1 final 2023-08-17 16:00:59 +01:00
Adam Turner
ec31853730 Restore `TocTree.get_toctree_ancestors()` 2023-08-17 15:53:30 +01:00
Adam Turner
0c22d9c9ff Restore hidden pass-through calls when adding asset files 2023-08-17 15:48:43 +01:00
Adam Turner
ab71cc5156 Restore and deprecate the str interface to the asset classes 2023-08-17 15:47:22 +01:00
Adam Turner
ff15b6f3b2 Bump version 2023-08-17 15:26:20 +01:00
Adam Turner
da9f8a5c33 Bump to 7.2.0 final 2023-08-17 04:29:41 +01:00
Bénédikt Tran
76658c49a9 Fix `sphinx.ext.autodoc.preserve_defaults` (#11550)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2023-08-17 01:19:25 +00:00
Lukas Engelter
4dee162990 Fix layout issues in the agogo theme for smaller viewports (#11594)
Co-authored-by: Lukas Engelter <lukas.engelter@netgo.de>
2023-08-17 01:30:56 +01:00
Adam Turner
ddf8a8e7d4 Add CHANGES entry for GH-11533 2023-08-16 23:27:51 +01:00
Adam Turner
2b9ee41f27 Consolidate `sys.argv` handling 2023-08-16 23:22:14 +01:00
Stephen Finucane
53a930f8c7 Fix C coverage support in `sphinx.ext.coverage` (#11591) 2023-08-15 14:50:15 +01:00
Bénédikt Tran
19018f01b6 Improve SigElementFallbackTransform fallback logic. (#11311)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2023-08-15 14:25:25 +01:00
picnixz
2656f34848 Fix rendering of `Literal` annotations with enum values (#11517)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2023-08-14 23:33:57 +01:00
Riccardo Mori
137b3adce1 Make stringify_annotation recursive on builtins with args (#11570)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2023-08-14 19:28:12 +01:00
Halldor Fannar
0bad447070 Emit "source-read" events for files read via the `include` directive (#11510)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
Co-authored-by: picnixz <10796600+picnixz@users.noreply.github.com>
2023-08-14 16:02:04 +01:00
Dmitry Shachnev
449020ec3d Highlight all search terms on the search results page (#10930)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2023-08-12 06:57:34 +00:00
picnixz
af38180a14 Allow inline links in first line of Google style docstrings (#11316) 2023-08-12 07:24:28 +01:00
Adam Turner
7d8df06e19 Relax Pygments parsing on lexing failures 2023-08-12 06:27:16 +01:00
Adam Turner
7e9a2066c2 Be more ephemeral (in anchor link title text) 2023-08-12 05:30:38 +01:00
Adam Turner
0e2ba0a1e4 Add CHANGES entry for GH-11546 2023-08-12 05:00:41 +01:00
Adam Turner
b3e3c1add9 Raise an error if `graphviz_dot` is falsy 2023-08-12 04:58:20 +01:00
Adam Turner
58b628263f Deprecate `css_files and script_files` (#11582) 2023-08-12 00:46:44 +00:00
Eric Larson
7758e01623 Provide the reason why a document is out of date in all cases (#11572) 2023-08-11 00:12:44 +01:00
Adam Turner
e7cd97e9f4 Correct a typo in CHANGES (c.f. #10938) 2023-08-10 23:24:12 +01:00
Adam Turner
177565584a Tighten Pytest configuration (#11577) 2023-08-10 20:48:04 +01:00
Adam Turner
976dd07ffe Require Pygments 2.14 or later (#11576) 2023-08-10 11:35:45 +00:00
alvinhochun
c52d55ebd7 Exclude substitution definitions from the `gettext` builder (#9846)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2023-08-10 10:01:25 +01:00
Albert Y. Shih
3e30fa36a2 Fix missing and broken links in inheritance diagrams (#10614)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2023-08-08 20:32:58 +01:00
grayjk
ac2b7599d2 autosummary: Extract summary line after "e.g." (#11196)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2023-08-07 22:20:30 +01:00