Commit Graph

20404 Commits

Author SHA1 Message Date
Vinay Sajip
f0c25a0ada
Raise a useful error if `theme.conf` doesn't exist (#11671) 2023-09-14 11:49:41 +01:00
Adam Turner
655bd15749 Adorn top-level files with a '.rst' suffix 2023-09-14 11:08:17 +01:00
Adam Turner
42f2c9fe98 Emend various problems in CHANGES
- Ensure the line-length constraint is met
- Consistently capitalise Sphinx and Docutils
- Ensure ``True``, ``False``, and ``None`` are marked-up as literal text
- Mark up various code snippets as literal text
2023-09-14 10:37:36 +01:00
Nikita Sobolev
1bd261c3a0
Fix a typo in the `:final:` option for methods (#11670) 2023-09-14 09:50:49 +01:00
Hugo van Kemenade
359edc34fc
Use the Python 3 `print()` function in the documentation (#11683) 2023-09-14 09:45:20 +01:00
Adam Turner
024347c285 Bump version 2023-09-14 09:24:55 +01:00
Adam Turner
cf7d2759af Bump to 7.2.6 final 2023-09-13 23:57:27 +01:00
Matt Wozniski
43d69755df
Leverage `importlib.reload` for reloading modules (#11679)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2023-09-13 22:58:35 +01:00
Adam Turner
13da5d7b2f Inline makecmd in make mode 2023-09-13 03:30:14 +01:00
Adam Turner
3d0110a95a Enable test_cython on Python 3.12 2023-09-13 03:07:19 +01:00
Adam Turner
22759fb945 Bump version 2023-09-13 02:09:27 +01:00
Adam Turner
fcc38997f1 Bump to 7.2.5 final 2023-08-30 22:55:02 +01:00
Adam Turner
2a631f97ef Restore support for YYYY copyright lines 2023-08-30 22:51:23 +01:00
Adam Turner
2730cc3353 Remove double spaces in CHANGES 2023-08-30 22:24:09 +01:00
Adam Turner
ff18318613
Add an `'include-read'` event (#11657) 2023-08-30 22:21:16 +01:00
James Braza
74329d9c51
Fail better in `ExceptionDocumenter.can_document_member` (#11660)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2023-08-30 18:49:27 +00:00
Adam Turner
7d046a862f
Allow `?config=... in mathjax_path` (#11659) 2023-08-30 19:35:29 +01:00
Albert Y. Shih
4692208fde
Fix two relative link bugs in inheritance diagrams (#11634)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2023-08-30 18:44:37 +01:00
Adam Turner
ca0fc7aa86 Add git .mailmap file 2023-08-29 21:14:42 +01:00
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
Benjamin Cabé
e494baa9dd
Recommend correct replacement names for deprecated APIs (#11655) 2023-08-29 17:07:27 +01:00
Adam Turner
123690abd0 Rephrase the CHANGES entry for GH-11649 2023-08-28 12:37:06 +01:00
Dmitry Shachnev
3e943d9e79
Resolve all paths in the include directive (#11650)
Because pytest's base tmp_path is also in /tmp, ``source`` here is relative path,
and thus is not properly converted to doc name.

So the test fails because `sources_reported` dict has a key like
``../../../pytest/pytest-0/directive-include/baz/baz``,
and ``assert "baz/baz" in sources_reported`` fails.

Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
2023-08-28 04:33:42 +00: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
1567281287
autodoc: Fix UnboundLocalError in `filter_members` (#11651) 2023-08-28 04:35:26 +01: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
c503c90090
Improve `pathlib` type annotations (#11646) 2023-08-26 10:13:13 +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
511e4070aa Implement `bool()` for string paths 2023-08-23 22:58:47 +01:00
Adam Turner
494de7327f Implement `hash()` for string paths 2023-08-23 22:52:00 +01:00
Adam Turner
2986aa113c Override special methods for string paths 2023-08-23 22:45:58 +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
02cb02ccfb Fix invocation of `python -m sphinx build` 2023-08-22 01:14:18 +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
github-actions[bot]
ea4a73e148
[bot]: Update message catalogues (#11612)
Co-authored-by: AA-Turner <AA-Turner@users.noreply.github.com>
2023-08-17 17:55:10 +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
Kyle Sunden
8512855776 Fix signature of docutils include_source monkeypatch (#11610) 2023-08-17 17:31:53 +01:00
Adam Turner
e1d9068c60 Bump version 2023-08-17 17:31:53 +01:00