diff options
author | Christian Clauss <cclauss@me.com> | 2021-09-08 03:15:25 +0300 |
---|---|---|
committer | Christian Clauss <cclauss@me.com> | 2021-09-08 03:15:25 +0300 |
commit | 86583c578c807d449e3a9d5ee56b1e7081340629 (patch) | |
tree | 4275417d693382f62120d6f07cd9021a1b84252f /sphinx/util | |
parent | 336605b8e4b14c5da9f4d872fb730dc6894edb77 (diff) |
Fix typos discovered by codespell
Diffstat (limited to 'sphinx/util')
-rw-r--r-- | sphinx/util/docutils.py | 4 | ||||
-rw-r--r-- | sphinx/util/i18n.py | 2 | ||||
-rw-r--r-- | sphinx/util/smartypants.py | 2 | ||||
-rw-r--r-- | sphinx/util/typing.py | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/sphinx/util/docutils.py b/sphinx/util/docutils.py index 5a2732027..047a0faa6 100644 --- a/sphinx/util/docutils.py +++ b/sphinx/util/docutils.py @@ -413,7 +413,7 @@ class SphinxRole: class ReferenceRole(SphinxRole): """A base class for reference roles. - The reference roles can accpet ``link title <target>`` style as a text for + The reference roles can accept ``link title <target>`` style as a text for the role. The parsed result; link title and target will be stored to ``self.title`` and ``self.target``. """ @@ -514,7 +514,7 @@ def new_document(source_path: str, settings: Any = None) -> nodes.document: __document_cache__ = docutils.utils.new_document(source_path) if settings is None: - # Make a copy of ``settings`` from cache to accelerate instansiation + # Make a copy of ``settings`` from cache to accelerate instantiation settings = copy(__document_cache__.settings) # Create a new instance of nodes.document using cached reporter diff --git a/sphinx/util/i18n.py b/sphinx/util/i18n.py index f7298e2e8..e82e33f57 100644 --- a/sphinx/util/i18n.py +++ b/sphinx/util/i18n.py @@ -129,7 +129,7 @@ def docname_to_domain(docname: str, compaction: Union[bool, str]) -> str: return docname -# date_format mappings: ustrftime() to bable.dates.format_datetime() +# date_format mappings: ustrftime() to babel.dates.format_datetime() date_format_mappings = { '%a': 'EEE', # Weekday as locale’s abbreviated name. '%A': 'EEEE', # Weekday as locale’s full name. diff --git a/sphinx/util/smartypants.py b/sphinx/util/smartypants.py index 2ba4bb38c..05d3b03bf 100644 --- a/sphinx/util/smartypants.py +++ b/sphinx/util/smartypants.py @@ -361,7 +361,7 @@ def educate_tokens(text_tokens: Iterable[Tuple[str, str]], text = smartquotes.educateSingleBackticks(text, language) if do_quotes: - # Replace plain quotes to prevent converstion to + # Replace plain quotes to prevent conversion to # 2-character sequence in French. context = prev_token_last_char.replace('"', ';').replace("'", ';') text = educateQuotes(context + text, language)[1:] diff --git a/sphinx/util/typing.py b/sphinx/util/typing.py index cf4318cda..c0a038420 100644 --- a/sphinx/util/typing.py +++ b/sphinx/util/typing.py @@ -2,7 +2,7 @@ sphinx.util.typing ~~~~~~~~~~~~~~~~~~ - The composit types for Sphinx. + The composite types for Sphinx. :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. |