Commit Graph
20020 Commits
Author SHA1 Message Date
aaron-cooper 0eeb34caf8 Consider duplicate names when using image post transforms (#11113)
Closes: #11110
2023-04-03 08:44:20 +02:00
Jean-François B 6809ca7d04 Fix error message wording in builders/latex/transforms.py
And make it and the two other ones there translatable strings.
Using .format for the f-string.
2023-04-01 00:02:18 +02:00
Jean-François B 40ec190353 Update CHANGES for PR #11276
The initial formulation was wrong, as the bug did not break PDF
builds, but created wrong links
2023-03-31 19:31:35 +02:00
Jean-François B 89a4cdb673 Let the #11276 test actually be one which would have failed earlier 2023-03-31 19:27:54 +02:00
Adam Turner 15553da9c8 Resolve lint errors from Ruff 0.0.260 2023-03-31 17:52:51 +01:00
Adam Turner f019b89c05 Run Ruff linting with a known-to-work version
This means that CI tests will only fail if the 'known good' version
fails. If the latest version of Ruff fails, perhaps due to new
checks, CI will not fail overall, but the failures from the latest
version will be reported.
2023-03-31 17:52:29 +01:00
Jean-François B 1397cb90f4 Update CHANGES
This is only to relaunch Windows CI which has a problem seen already in
the past with test_gettext_dont_rebuild_mo.  I don't understand why this
happens on Windows and can't test directly on Windows.
2023-03-31 18:38:04 +02:00
Jean-François B 8f6ad4a3e5 Fix #11274: external links may break PDF build if under \sphinxupquote 2023-03-31 18:19:35 +02:00
Jean-François B 8f1698f7db Ignore SIM910 for time being to appease flake8-simplify 0.20.0 2023-03-31 17:36:47 +02:00
Jean-François B 3e6d56adc0 Pin to ruff==0.0.259 (provisory)
This is because I would like CI to succeed for a while in order to merge
some LaTeX patch.
2023-03-31 17:18:29 +02:00
Jean-François B 8f9bac9c4f LaTeX: rename `\sphinxnotetitle into \sphinxstylenotetitle` (etc)
Follow-up to #11266.  Using \sphinxstyle prefix looked a posteriori
better, for coherency, although it is a bit long.
2023-03-27 15:21:06 +02:00
Jean-François B 64bf782d60 Update CHANGES 2023-03-27 12:25:44 +02:00
Jean-François B 7cdd9b2679 LaTeX: let \sphinxremovefinalcolon work also if no colon in input 2023-03-27 12:21:26 +02:00
Dimitri Papadopoulos 669bcc0a19 Fix typos found by codespell 2023-03-27 07:22:07 +02:00
Jean-François B 7144f4924a LaTeX: add \sphinxnotetitle et al.
In passing I reverted some deprecation I had added at 6bf40599e to some
internals of the sphinxadmonition environment, as it does not look that
pressing anyhow and the redundant namings of two colors in particular
may nevertheless prove useful to user \renewcommand's, as they avoid to
have to refer to \spx@noticetype.
2023-03-26 23:57:04 +02:00
Jean-François B a7949d4290 LaTeX: let mark-up for seealso directive use explicit colon (fix #11264) 2023-03-26 23:57:04 +02:00
Jean-François B 321f886097 Provis. ignore onerror depr. warn when install. DocUtils with 3.12-dev 2023-03-26 23:52:55 +02:00
Hugo van Kemenade 318914fff2 Fix syntax in `:manpage:` role example (#11249) 2023-03-24 01:36:58 +00:00
Adam Turner c7d7f2951d Remove `sphinx.locale.setlocale` 2023-03-24 01:30:44 +00:00
Adam Turner 7d928b3e79 Increase `test_linkcheck` timeouts 2023-03-24 01:07:25 +00:00
Adam Turner e3567bfb16 Update CHANGES for Sphinx 6.2.0 2023-03-24 01:05:15 +00:00
Adam Turner f5c957597d Normalise spelling of Sphinx versions 2023-03-24 00:44:33 +00:00
Adam Turner 97f07ca83c Speed up `test_linkcheck` 2023-03-24 00:29:27 +00:00
Adam Turner 9df3b59e00 Resolve lint errors from Ruff 0.0.259 2023-03-23 21:58:49 +00:00
Dmitry Shachnev 54f531e978 Remove obsolete workarounds in `doc/conf.py` (#11250)
Loading jQuery is not needed since January 2023:
https://github.com/readthedocs/readthedocs.org/pull/9861

And exposing app.{info,warn,debug} is not needed since September 2018:
https://github.com/readthedocs/readthedocs-sphinx-ext/pull/51
2023-03-23 21:42:28 +00:00
Benjamin Balder Bach eda388a506 Docs: Add a link to sphinx-extensions (#11260) 2023-03-23 08:33:16 +01:00
Rafael Fontenelle 036b69b9bb Add missing quotes in html 4 deprecation text 2023-03-21 21:01:23 +01:00
Jean-François B a07e1ffb27 LaTeX: comment applied workaround to pict2e 0.4b breaking ellipse.sty 2023-03-20 10:34:35 +01:00
Jean-François B ec25892dd9 LaTeX: doc updates
modified:   doc/latex.rst
2023-03-20 10:34:15 +01:00
Jean-François B 8ed2c6708d LaTeX: update doc, trim unneeded extra examples 2023-03-20 00:10:31 +01:00
Jean-François B baba5d3119 LaTeX: unneeded 4 code lines from #11254 trimmed
At some point after having inserted these extras I had ensured that rx
and ry where either both zero or both positive, making them unneeded.
2023-03-19 22:38:49 +01:00
Jean-François B 8289444c18 Update CHANGES for PR #11254 2023-03-19 21:59:04 +01:00
Jean-François B de60cd8618 LaTeX: support elliptical corners in rounded boxes 2023-03-19 21:47:03 +01:00
Jean-François B f78d86554c LaTeX: remove more-or-less obsolete doc 2023-03-19 21:23:06 +01:00
Jean-François B cf6273a6b1 LaTeX: fix nits with some mark-up in doc and code comment 2023-03-19 19:09:08 +01:00
Jean-François B c951f5f639 Update CHANGES 2023-03-19 18:39:45 +01:00
Jean-François B b433d4cb9d LaTeX: warn about \sphinxbox addstrut default possibly changed at 7.0.0 2023-03-19 18:33:13 +01:00
Jean-François B 6bf40599e2 LaTeX: add <prefix>_{TeXcolor,TeXextras} options
And add <type>TextColor and <type>TeXextras for <type>=hint, important,
note, tip for variants which do not trigger for sphinxheavybox but
still uses sphinxlightbox (suitably enhanced).

Similar named TeXcolor and TeXextras options for \sphinxbox.
2023-03-19 18:29:09 +01:00
Jean-François B 0194aae8a5 LaTeX: refactor some internals related to color names 2023-03-19 18:28:40 +01:00
Jean-François B 4d7347cf1b LaTeX: reset options in nested \sphinxbox'es 2023-03-19 18:28:37 +01:00
Adam Turner 2ee7d0f678 Resolve lint errors from Ruff 0.0.257 2023-03-18 14:59:20 +00:00
Adam Turner 17d4dfa7fb Remove useless compatability imports
This exposed names at ``sphinx.builders.html.sphinxcontrib.serializinghtml``,
etc, which offers no benefit. This was originally broken in commit
9dfbfbf16b, four years ago.
2023-03-17 21:32:52 +00:00
Adam Turner 69066d0bb7 Split `sphinx.application.builtin_extensions` into groups
This is a preparatory step for when eventually the ``sphinxcontrib``
extensions are no longer loaded by default.
2023-03-17 21:22:19 +00:00
Adam Turner 075986c508 Miscellaneous `intersphinx` refactors
- Refactor usage of ``inventories.cache`` in ``load_mappings()``
- Iterate once over ``cached_vals``
- Avoid a line continuation character in ``_resolve_reference()``
2023-03-17 17:43:44 +00:00
Adam Turner 3d2114214b Improve static typing in `intersphinx` et al 2023-03-17 17:43:23 +00:00
Adam Turner ae9008b128 Require Docutils 0.18.1 or greater
``Node.findall()`` was introduced in `Docutils 0.18.1`__

__ https://docutils.sourceforge.io/RELEASE-NOTES.html#release-0-18-1-2021-12-23
2023-03-17 17:32:30 +00:00
Adam Turner 2902c6c55b Deprecate legacy `intersphinx_mapping` format (#11247)
This format was made obsolete in Sphinx 1.0, but never formally deprecated.
2023-03-17 16:41:22 +00:00
Jeremy Maitin-Shepard 7a4ce71f6b Include source in highlighting warnings (#11150)
If pygments fails to lex a source string as the specified highlight
language, Sphinx prints a warning.  Previously, that warning did not
include the actual source text, although it does include location
information.

However, in some cases the location information may be missing, there
may be multiple highlighted literals on the same line, or the rST is
automatically generated somehow.  In such cases, it can be difficult
to determine the source text that led to the error.

With this change, the source text is included in the warning.
2023-03-17 15:32:27 +00:00
danieleadesanddaniel.eades 2f03886d55 Remove deprecated code in `sphinx.builders.linkcheck` (#11089)
Co-authored-by: daniel.eades <daniel.eades@hotmail.com>
2023-03-17 15:24:38 +00:00
github-actions[bot]andAA-Turner c8f5e14488 [bot]: Update message catalogues (#10889)
Co-authored-by: AA-Turner <AA-Turner@users.noreply.github.com>
2023-03-17 15:18:36 +00:00