From c427edb0bddba4366e71cd9dca7e70faad18346a Mon Sep 17 00:00:00 2001
From: Dimitri Papadopoulos Orfanos
<3234522+DimitriPapadopoulos@users.noreply.github.com>
Date: Fri, 8 Nov 2024 13:11:42 +0100
Subject: [PATCH] Emend spelling errors (#13113)
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
---
sphinx/texinputs/sphinxlatexadmonitions.sty | 2 +-
sphinx/util/_pathlib.py | 2 +-
tests/test_extensions/test_ext_intersphinx_cache.py | 2 +-
tests/test_intl/test_intl.py | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/sphinx/texinputs/sphinxlatexadmonitions.sty b/sphinx/texinputs/sphinxlatexadmonitions.sty
index 76fef5a8c..051990359 100644
--- a/sphinx/texinputs/sphinxlatexadmonitions.sty
+++ b/sphinx/texinputs/sphinxlatexadmonitions.sty
@@ -32,7 +32,7 @@
% sphinxlatexshadowbox.sty, and handles both "with icon" and "without
% icon" situations).
%
-% The sphinxlightbox environment is kept for backward compatiblity, for user
+% The sphinxlightbox environment is kept for backward compatibility, for user
% custom code which used it via custom definitions done in preamble or via
% raw latex directive.
% MEMO: here is for example how sphinxnote was formerly defined:
diff --git a/sphinx/util/_pathlib.py b/sphinx/util/_pathlib.py
index b44fec302..31b47ce5a 100644
--- a/sphinx/util/_pathlib.py
+++ b/sphinx/util/_pathlib.py
@@ -3,7 +3,7 @@
Instances of _StrPath should not be constructed except in Sphinx itself.
Consumers of Sphinx APIs should prefer using ``pathlib.Path`` objects
where possible. _StrPath objects can be treated as equivalent to ``Path``,
-save that ``_StrPath.replace`` is overriden with ``str.replace``.
+save that ``_StrPath.replace`` is overridden with ``str.replace``.
To continue treating path-like objects as strings, use ``os.fspath``,
or explicit string coercion.
diff --git a/tests/test_extensions/test_ext_intersphinx_cache.py b/tests/test_extensions/test_ext_intersphinx_cache.py
index 72d942846..047589b7f 100644
--- a/tests/test_extensions/test_ext_intersphinx_cache.py
+++ b/tests/test_extensions/test_ext_intersphinx_cache.py
@@ -295,7 +295,7 @@ def test_load_mappings_cache_revert_update(tmp_path):
app2.build()
app2.cleanup()
- # switch back to old url (re-use 'old_item')
+ # switch back to old url (reuse 'old_item')
confoverrides3 = BASE_CONFIG | {'intersphinx_mapping': old_project.record}
app3 = SphinxTestApp('dummy', srcdir=tmp_path, confoverrides=confoverrides3)
app3.build()
diff --git a/tests/test_intl/test_intl.py b/tests/test_intl/test_intl.py
index 21e7b3019..19808f6d5 100644
--- a/tests/test_intl/test_intl.py
+++ b/tests/test_intl/test_intl.py
@@ -1569,7 +1569,7 @@ def test_additional_targets_should_be_translated(app):
# [literalblock.txt]
result = (app.outdir / 'literalblock.html').read_text(encoding='utf8')
- # basic literal bloc should be translated
+ # basic literal block should be translated
expected_expr = (
'THIS IS\n'
'LITERAL BLOCK'