Adam Turner
1a47e3a8be
Fix `test_missing_reference` on Windows
2023-08-12 04:23:48 +01:00
Adam Turner
8111a3a211
Fix `test_html_inventory` on Windows
2023-08-12 04:23:33 +01:00
Adam Turner
a392f4d5f4
Fix `test_graphviz_svg_html` on Windows
2023-08-12 02:57:55 +01:00
Adam Turner
4b082f7dbf
Inline `css_tag and js_tag`
2023-08-12 02:38:44 +01:00
Adam Turner
58b628263f
Deprecate `css_files and script_files` ( #11582 )
2023-08-12 00:46:44 +00:00
Adam Turner
1db8cba339
Move CSS and JS file objects to `builders.html._assets`
2023-08-12 01:10:49 +01:00
Adam Turner
f07715e4cc
Make DOCUMENTATION_OPTIONS `const`
2023-08-12 00:50:20 +01:00
Adam Turner
8e730ae303
Move the content root marker to the `<html>` element
2023-08-12 00:50:10 +01:00
Adam Turner
818895a158
Placate `isort`
2023-08-12 00:27:13 +01:00
Adam Turner
42a6546404
Move `_file_checksum() to sphinx.builders.html._assets`
2023-08-12 00:20:00 +01:00
Adam Turner
44a7820cd9
Raise an error when local asset files contain a `?`
2023-08-11 22:07:07 +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
b91d763db8
Fix PT011 (`pytest.raises(ValueError)` is too broad)
2023-08-10 13:11:25 +01:00
Adam Turner
78976662d9
Fix PT003 (implied `scope='function'`)
2023-08-10 13:11:25 +01:00
Adam Turner
fb5b80c340
Fix PT007 (use lists in `pytest.mark.parametrize`)
2023-08-10 13:11:24 +01:00
Adam Turner
02e011e4ff
Fix PT006 (use tuples in `pytest.mark.parametrize`)
2023-08-10 13:00:48 +01:00
Adam Turner
976dd07ffe
Require Pygments 2.14 or later ( #11576 )
2023-08-10 11:35:45 +00:00
Adam Turner
8cabf08668
Cache the docname<->filename map in `Project` instances ( #11575 )
2023-08-10 12:25:38 +01:00
Adam Turner
4dd2ed4bde
Spring-clean `test_build_gettext` ( #11573 )
2023-08-10 09:20:48 +00:00
Adam Turner
6f5a99a05d
Refactor `sphinx.environment.adapters.TocTree` ( #11565 )
2023-08-09 15:43:26 +01:00
Adam Turner
8cd677f929
Add a new test for `_file_checksum`
2023-08-07 21:51:25 +01:00
Adam Turner
85ffb3b0fd
Fix `test_assets_order` for Pygments 2.16
2023-08-07 21:51:05 +01:00
Adam Turner
083d573b7c
Fix `test_dark_style` for Pygments 2.16
2023-08-07 21:04:14 +01:00
Adam Turner
062a2e1d05
Set codec error handler for git hash detection
2023-08-05 03:50:52 +01:00
Adam Turner
43ab23a61f
Merge branch '7.1.x'
...
# Conflicts:
# CHANGES
# sphinx/__init__.py
2023-08-02 02:58:30 +01:00
Adam Turner
320d0b631c
Bump to 7.1.2 final
2023-08-02 02:56:30 +01:00
Adam Turner
4862da883f
Bump version
2023-08-02 01:55:23 +01:00
Adam Turner
629b862cde
Spring-clean `sphinx.testing.utils` ( #11534 )
2023-07-28 23:24:13 +01:00
Adam Turner
1cfb68d8be
Consistently name the object description options ( #11533 )
...
* The directive option ``:noindex:`` was renamed to ``:no-index:``.
* The directive option ``:noindexentry:`` was renamed to ``:no-index-entry:``.
* The directive option ``:nocontentsentry:`` was renamed to ``:no-contents-entry:``.
The previous names are retained as aliases, but will be deprecated
and removed in a future version of Sphinx (9.0 or later).
2023-07-28 22:30:26 +01:00
Adam Turner
ff20efcd7e
Tweaks to `doctest_show_successes` ( #11535 )
2023-07-28 22:29:04 +01:00
Adam Turner
c9f0e67cca
Add `sphinx.util.index_entries` ( #11528 )
2023-07-28 07:41:10 +01:00
Adam Turner
d779a1c53e
Move `split_full_qualified_name() to ext.autosummary.generate`
2023-07-28 06:29:45 +01:00
Adam Turner
58585a7c0a
Unify `get_full_modname`
2023-07-28 06:27:46 +01:00
Adam Turner
7cce00aa7d
Refactor `sphinx.util.inspect` and tests ( #11527 )
2023-07-28 02:05:40 +01:00
Adam Turner
c9d4a1a204
Correctly copy extentionless template files
2023-07-28 00:49:53 +01:00
Adam Turner
49d8304670
Start using `pathlib.Path and deprecate sphinx.testing.path` ( #11526 )
2023-07-28 00:39:12 +01:00
Adam Turner
7d16dc0cac
Use `time.strftime` for date formatting in the EUPB builder ( #11525 )
...
When ``language`` is hardcoded to English, we can avoid the indirection of
``sphinx.util.i18n.format_date`` and Babel.
2023-07-27 22:11:15 +01:00
Adam Turner
a01e1a21ac
Merge branch '7.1.x'
...
# Conflicts:
# CHANGES
# sphinx/__init__.py
# sphinx/config.py
2023-07-27 21:38:35 +01:00
Adam Turner
d8d73c16b8
Bump to 7.1.1 final
2023-07-27 21:35:23 +01:00
Adam Turner
a54e630a21
[internationalisation] Update message catalogues
2023-07-27 21:34:26 +01:00
Adam Turner and Bénédikt Tran
8452300d54
Fix multi-line copyright when `SOURCE_DATE_EPOCH` is set ( #11524 )
...
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com >
2023-07-27 21:27:14 +01:00
Adam Turner
fe08cec019
bump version
2023-07-27 20:20:33 +01:00
Adam Turner
cb6d568715
Enable `strict-optional` for several more modules ( #11523 )
...
This enables mypy's ``strict-optional`` mode for:
* ``sphinx.builders.html``
* ``sphinx.builders.latex``
* ``sphinx.domains.python``
* ``sphinx.domains.std``
* ``sphinx.environment``
* ``sphinx.ext.apidoc``
* ``sphinx.ext.autodoc``
* ``sphinx.ext.autodoc.importer``
* ``sphinx.ext.autosummary``
* ``sphinx.ext.autosummary.generate``
* ``sphinx.ext.inheritance_diagram``
* ``sphinx.ext.intersphinx``
* ``sphinx.ext.imgmath``
* ``sphinx.ext.mathjax``
* ``sphinx.ext.napoleon.docstring``
* ``sphinx.registry``
* ``sphinx.writers.latex``
2023-07-27 20:17:35 +01:00
Adam Turner
5cf3dce36e
Deprecate `md5 and sha1 wrappers in sphinx.util` ( #11512 )
2023-07-25 02:29:28 +01:00
Adam Turner
f804da4b45
Add changelog entry for removal of Python 3.8 support
2023-07-25 02:09:21 +01:00
Adam Turner
ad61e41157
Drop support for Python 3.8 ( #11511 )
2023-07-25 02:07:23 +01:00
Adam Turner
80ec979861
Bump version
2023-07-24 23:49:56 +01:00
Adam Turner
e560f6334a
Bump to 7.1.0 final
2023-07-24 20:34:10 +01:00
Adam Turner and Manuel Kaufmann
066e0fabc6
Add translation progress information ( #11509 )
...
Co-authored-by: Manuel Kaufmann <humitos@gmail.com >
2023-07-24 20:19:31 +01:00
Adam Turner
0882914d5c
Target PyPI in create-release.yml
2023-07-24 16:52:37 +01:00
Adam Turner
21fbee5e83
Fix OIDC token payload
2023-07-24 16:42:36 +01:00
Adam Turner
1a403e4f9a
Add informational log messaging
2023-07-24 16:39:15 +01:00
Adam Turner
258b0ea9fc
Revert "Switch to using `github.request`"
...
This reverts commit f9c89e5d84 .
2023-07-24 16:30:36 +01:00
Adam Turner
f9c89e5d84
Switch to using `github.request`
2023-07-24 16:08:01 +01:00
Adam Turner
52c7f66ce1
Use the correct token minting URL for TestPyPI
2023-07-24 15:40:25 +01:00
Adam Turner
6079f28faa
Install twine in PyPI publish workflow
2023-07-24 15:26:17 +01:00
Adam Turner
3d43b9efdb
Fix github-script syntax in create-release.yml
2023-07-24 15:20:28 +01:00
Adam Turner
a539ce78f5
Add GitHub Actions environment; fix variable names
2023-07-24 15:12:46 +01:00
Adam Turner
c161e9c286
Publish releases to PyPI
...
Implement the PyPI trusted publisher OIDC flow within GitHub Actions.
2023-07-24 14:58:06 +01:00
Adam Turner
5c31195e91
Include the translated string in babel error messages
2023-07-24 13:33:12 +01:00
Adam Turner
1437d2a746
Reduce heading underline length for "Testing"
2023-07-24 13:00:29 +01:00
Adam Turner
dc14b4288e
Update CHANGES for Sphinx 7.1.0
2023-07-24 12:51:58 +01:00
Adam Turner
914c317a1e
Provide timezone information in `datetime.fromtimestamp`
...
Python 3.12 has deprecated ``datetime.utcfromtimestamp``,
use timezone-aware datetime objects instead.
2023-07-24 12:40:28 +01:00
Adam Turner
e4d1477c05
Test with Python 3.13 alpha releases ( #11507 )
2023-07-24 11:46:14 +01:00
Adam Turner
24b4d65a02
Re-structure index entry processing ( #11505 )
2023-07-24 03:17:29 +01:00
Adam Turner
f5aadc1c3f
Remove "Release signatures" section of the README
...
PyPI has stopped supporting signed releases.
https://blog.pypi.org/posts/2023-05-23-removing-pgp/
2023-07-23 23:17:46 +01:00
Adam Turner
ae866b1289
Avoid deprecated `Node.traverse method in test_node_translated_attribute`
2023-07-23 21:33:15 +01:00
Adam Turner
aabcda94cf
Add more information for the `test_gettext_dont_rebuild_mo` test ( #11500 )
2023-07-23 00:32:27 +01:00
Adam Turner
d71c781187
Re-structure the `linkcheck` builder ( #11499 )
...
Re-organise and re-structure the ``linkcheck`` builder:
- All functions defined within functions are factored out into top-level functions or class methods
- Classes and methods have been re-arranged (Builder, PostTransform, Checker, Worker)
- TLS verification on ``sphinx.util.requests`` has been changed to not pass the ``Config`` object all the way down
- The ``Hyperlink`` object now stores the document path
- ``BuildEnvironment`` and ``Config`` objects are used to extract properties and are not stored as class attributes
2023-07-23 00:01:41 +01:00
Adam Turner
ce140e8155
Introduce artificial delay into `test_gettext_dont_rebuild_mo`
2023-07-20 21:51:08 +01:00
Adam Turner
571becb6af
Re-instate the footnote-reference class
2023-07-14 07:50:12 +01:00
Adam Turner
0858c3b841
Resolve `mypy` warnings
2023-07-14 07:06:46 +01:00
Adam Turner
7c8eda24a1
Resolve `sphinx-lint` warnings
2023-07-14 06:55:18 +01:00
Adam Turner
de3aa8a318
Replace non-functional Bitbucket URLs
...
- ``sphinx-contrib`` has moved to GitHub
- Replace personal project links with links to the Bitbucket archive
2023-07-14 06:52:25 +01:00
Adam Turner
d3c91f9512
Refactor `status_iterator`
2023-05-15 10:43:55 +01:00
Adam Turner
d8d7fed993
Don't add colours to messagelog
...
We need to remove colours later for display, so it is pointless to add them.
2023-05-15 10:20:31 +01:00
Adam Turner
00eeea3d9b
Simplify `make clean`
2023-05-13 01:17:35 +01:00
Adam Turner
343e149398
Merge branch '7.0.x'
...
# Conflicts:
# CHANGES
# sphinx/__init__.py
2023-05-12 22:57:09 +01:00
Adam Turner
d48cc783b6
Bump to 7.0.1 final
2023-05-12 22:48:41 +01:00
Adam Turner
749af9561e
Bump version
2023-05-12 13:57:37 +01:00
Adam Turner
c73628dfca
Accept a version tuple in `app.require_sphinx()`
2023-05-11 13:50:45 +01:00
Adam Turner
ae206694e6
html builder: Append CRC32 checksum to asset URIs ( #11415 )
2023-05-11 05:19:31 +01:00
Adam Turner
706f5f9cc8
Warn on deprecated Python-specific index types ( #11412 )
2023-05-09 22:57:39 +01:00
Adam Turner
db546189ce
Support Docutils 0.20 ( #11411 )
2023-05-09 21:00:04 +01:00
Adam Turner
8942a1dddf
Test with Docutils 0.20
2023-05-09 19:24:18 +01:00
Adam Turner
2b1c106bbf
Update documentation workflow
...
- Add 'workflow_dispatch' target
- Force output to use colour
- Print traceback on error
- Use parallel building
2023-05-09 16:51:52 +01:00
Adam Turner
ba7408209e
Change concurrency groups for GitHub workflows
...
This means that 'push' triggered workflows are not cancelled.
2023-04-29 22:44:55 +01:00
Adam Turner
b546879539
Bump version
2023-04-29 22:26:43 +01:00
Adam Turner
d568b2f4f7
Bump to 7.0.0 final
2023-04-29 22:25:57 +01:00
Adam Turner
ff79edf353
Remove `jsdump` references post removal
2023-04-28 22:50:01 +01:00
Adam Turner
1a5133ac39
Bump to 7.0.0rc1 final
2023-04-28 12:30:48 +01:00
Adam Turner
5795fc7f9f
Update `sphinx.deprecation` for Sphinx 7.0 ( #11386 )
2023-04-28 12:10:13 +01:00
Adam Turner
6202087f91
Add a note to CHANGES for PR 11385
2023-04-28 12:04:41 +01:00
Adam Turner
ad473730a3
Remove HTML 4 support ( #11385 )
2023-04-28 11:32:12 +01:00
Adam Turner
3e3251d3ba
Remove `HTMLTranslator and html5_ready from sphinx.builders.html` ( #11383 )
2023-04-28 11:01:14 +01:00
Adam Turner
77fd819a09
Remove deprecated `LaTeXTranslator.docclasses` attribute ( #11382 )
2023-04-28 10:50:57 +01:00
Adam Turner
4be56f3b7d
Remove deprecated `style` key for HTML templates ( #11381 )
2023-04-28 10:41:59 +01:00
Adam Turner
49027a9ae6
Autosummary: Always emit grouped `ImportError` exceptions ( #11380 )
2023-04-28 10:32:04 +01:00
Adam Turner
a464c5851d
Make the `env argument to Builder` subclasses required ( #11379 )
2023-04-28 10:25:57 +01:00