@@ -197,7 +197,7 @@ def __init__(self, srcdir: str, confdir: Optional[str], outdir: str, doctreedir:
197197
198198 # notice for parallel build on macOS and py38+
199199 if sys .version_info > (3 , 8 ) and platform .system () == 'Darwin' and parallel > 1 :
200- logger .info (bold (__ ("For security reason , parallel mode is disabled on macOS and "
200+ logger .info (bold (__ ("For security reasons , parallel mode is disabled on macOS and "
201201 "python3.8 and above. For more details, please read "
202202 "https://github.com/sphinx-doc/sphinx/issues/6803" )))
203203
@@ -415,7 +415,7 @@ def connect(self, event: str, callback: Callable, priority: int = 500) -> int:
415415 :param event: The name of target event
416416 :param callback: Callback function for the event
417417 :param priority: The priority of the callback. The callbacks will be invoked
418- in the order of *priority* in asending .
418+ in order of *priority* (ascending) .
419419 :return: A listener ID. It can be used for :meth:`disconnect`.
420420
421421 .. versionchanged:: 3.0
@@ -493,7 +493,7 @@ def add_config_value(self, name: str, default: Any, rebuild: Union[bool, str],
493493 values accordingly.
494494
495495
496- :param name: The name of configuration value. It is recommended to be prefixed
496+ :param name: The name of the configuration value. It is recommended to be prefixed
497497 with the extension name (ex. ``html_logo``, ``epub_title``)
498498 :param default: The default value of the configuration.
499499 :param rebuild: The condition of rebuild. It must be one of those values:
@@ -539,10 +539,10 @@ def set_translator(self, name: str, translator_class: Type[nodes.NodeVisitor],
539539 """Register or override a Docutils translator class.
540540
541541 This is used to register a custom output translator or to replace a
542- builtin translator. This allows extensions to use custom translator
542+ builtin translator. This allows extensions to use a custom translator
543543 and define custom nodes for the translator (see :meth:`add_node`).
544544
545- :param name: The name of builder for the translator
545+ :param name: The name of the builder for the translator
546546 :param translator_class: A translator class
547547 :param override: If true, install the translator forcedly even if another translator
548548 is already installed as the same name
@@ -606,11 +606,11 @@ def add_enumerable_node(self, node: Type[Element], figtype: str,
606606 using :rst:role:`numref`.
607607
608608 :param node: A node class
609- :param figtype: The type of enumerable nodes. Each figtypes have individual numbering
610- sequences. As a system figtypes, ``figure``, ``table`` and
611- ``code-block`` are defined. It is able to add custom nodes to these
612- default figtypes. It is also able to define new custom figtype if new
613- figtype is given.
609+ :param figtype: The type of enumerable nodes. Each figtype has individual numbering
610+ sequences. As system figtypes, ``figure``, ``table`` and
611+ ``code-block`` are defined. It is possible to add custom nodes to
612+ these default figtypes. It is also possible to define new custom
613+ figtype if a new figtype is given.
614614 :param title_getter: A getter function to obtain the title of node. It takes an
615615 instance of the enumerable node, and it must return its title as
616616 string. The title is used to the default title of references for
@@ -629,7 +629,7 @@ def add_enumerable_node(self, node: Type[Element], figtype: str,
629629 def add_directive (self , name : str , cls : Type [Directive ], override : bool = False ) -> None :
630630 """Register a Docutils directive.
631631
632- :param name: The name of directive
632+ :param name: The name of the directive
633633 :param cls: A directive class
634634 :param override: If true, install the directive forcedly even if another directive
635635 is already installed as the same name
@@ -755,9 +755,9 @@ def add_role_to_domain(self, domain: str, name: str, role: Union[RoleFunction, X
755755 Like :meth:`add_role`, but the role is added to the domain named
756756 *domain*.
757757
758- :param domain: The name of target domain
759- :param name: A name of role
760- :param role: A role function
758+ :param domain: The name of the target domain
759+ :param name: The name of the role
760+ :param role: The role function
761761 :param override: If true, install the role forcedly even if another role is already
762762 installed as the same name
763763
@@ -773,8 +773,8 @@ def add_index_to_domain(self, domain: str, index: Type[Index], override: bool =
773773
774774 Add a custom *index* class to the domain named *domain*.
775775
776- :param domain: The name of target domain
777- :param index: A index class
776+ :param domain: The name of the target domain
777+ :param index: The index class
778778 :param override: If true, install the index forcedly even if another index is
779779 already installed as the same name
780780
@@ -942,8 +942,8 @@ def add_js_file(self, filename: str, priority: int = 500, **kwargs: Any) -> None
942942 Add *filename* to the list of JavaScript files that the default HTML
943943 template will include in order of *priority* (ascending). The filename
944944 must be relative to the HTML static path , or a full URI with scheme.
945- If the priority of JavaScript file is the same as others, the JavaScript
946- files will be included in order of the registration. If the keyword
945+ If the priority of the JavaScript file is the same as others, the JavaScript
946+ files will be included in order of registration. If the keyword
947947 argument ``body`` is given, its value will be added between the
948948 ``<script>`` tags. Extra keyword arguments are included as attributes of
949949 the ``<script>`` tag.
@@ -971,7 +971,7 @@ def add_js_file(self, filename: str, priority: int = 500, **kwargs: Any) -> None
971971 * - 800
972972 - default priority for :confval:`html_js_files`
973973
974- A JavaScript file can be added to the specific HTML page when on extension
974+ A JavaScript file can be added to the specific HTML page when an extension
975975 calls this method on :event:`html-page-context` event.
976976
977977 .. versionadded:: 0.5
@@ -993,8 +993,8 @@ def add_css_file(self, filename: str, priority: int = 500, **kwargs: Any) -> Non
993993 Add *filename* to the list of CSS files that the default HTML template
994994 will include in order of *priority* (ascending). The filename must be
995995 relative to the HTML static path, or a full URI with scheme. If the
996- priority of CSS file is the same as others, the CSS files will be
997- included in order of the registration. The keyword arguments are also
996+ priority of the CSS file is the same as others, the CSS files will be
997+ included in order of registration. The keyword arguments are also
998998 accepted for attributes of ``<link>`` tag.
999999
10001000 Example::
@@ -1022,15 +1022,15 @@ def add_css_file(self, filename: str, priority: int = 500, **kwargs: Any) -> Non
10221022 * - 800
10231023 - default priority for :confval:`html_css_files`
10241024
1025- A CSS file can be added to the specific HTML page when on extension calls
1025+ A CSS file can be added to the specific HTML page when an extension calls
10261026 this method on :event:`html-page-context` event.
10271027
10281028 .. versionadded:: 1.0
10291029
10301030 .. versionchanged:: 1.6
10311031 Optional ``alternate`` and/or ``title`` attributes can be supplied
1032- with the *alternate* (of boolean type ) and *title* (a string)
1033- arguments. The default is no title and *alternate* = ``False``. For
1032+ with the arguments *alternate* (a Boolean ) and *title* (a string).
1033+ The default is no title and *alternate* = ``False``. For
10341034 more information, refer to the `documentation
10351035 <https://mdn.io/Web/CSS/Alternative_style_sheets>`__.
10361036
@@ -1051,7 +1051,7 @@ def add_latex_package(self, packagename: str, options: str = None,
10511051 r"""Register a package to include in the LaTeX source code.
10521052
10531053 Add *packagename* to the list of packages that LaTeX source code will
1054- include. If you provide *options*, it will be taken to `\usepackage`
1054+ include. If you provide *options*, it will be taken to the `\usepackage`
10551055 declaration. If you set *after_hyperref* truthy, the package will be
10561056 loaded after ``hyperref`` package.
10571057
@@ -1087,7 +1087,7 @@ def add_autodocumenter(self, cls: Any, override: bool = False) -> None:
10871087
10881088 Add *cls* as a new documenter class for the :mod:`sphinx.ext.autodoc`
10891089 extension. It must be a subclass of
1090- :class:`sphinx.ext.autodoc.Documenter`. This allows to auto-document
1090+ :class:`sphinx.ext.autodoc.Documenter`. This allows auto-documenting
10911091 new types of objects. See the source of the autodoc module for
10921092 examples on how to subclass :class:`Documenter`.
10931093
@@ -1140,10 +1140,10 @@ def add_source_suffix(self, suffix: str, filetype: str, override: bool = False)
11401140 """Register a suffix of source files.
11411141
11421142 Same as :confval:`source_suffix`. The users can override this
1143- using the setting.
1143+ using the config setting.
11441144
11451145 If *override* is True, the given *suffix* is forcedly installed even if
1146- a same suffix is already installed.
1146+ the same suffix is already installed.
11471147
11481148 .. versionadded:: 1.8
11491149 """
@@ -1204,8 +1204,8 @@ def add_html_math_renderer(self, name: str,
12041204 def add_message_catalog (self , catalog : str , locale_dir : str ) -> None :
12051205 """Register a message catalog.
12061206
1207- :param catalog: A name of catalog
1208- :param locale_dir: The base path of message catalog
1207+ :param catalog: The name of the catalog
1208+ :param locale_dir: The base path of the message catalog
12091209
12101210 For more details, see :func:`sphinx.locale.get_translation()`.
12111211
@@ -1216,7 +1216,7 @@ def add_message_catalog(self, catalog: str, locale_dir: str) -> None:
12161216
12171217 # ---- other methods -------------------------------------------------
12181218 def is_parallel_allowed (self , typ : str ) -> bool :
1219- """Check parallel processing is allowed or not.
1219+ """Check whether parallel processing is allowed or not.
12201220
12211221 :param typ: A type of processing; ``'read'`` or ``'write'``.
12221222 """
0 commit comments