mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #9033 from stratakis/typos
Fix some local parameter names
This commit is contained in:
@@ -1140,7 +1140,7 @@ def convert_html_js_files(app: Sphinx, config: Config) -> None:
|
||||
config.html_js_files = html_js_files # type: ignore
|
||||
|
||||
|
||||
def setup_js_tag_helper(app: Sphinx, pagename: str, templatexname: str,
|
||||
def setup_js_tag_helper(app: Sphinx, pagename: str, templatename: str,
|
||||
context: Dict, doctree: Node) -> None:
|
||||
"""Set up js_tag() template helper.
|
||||
|
||||
|
||||
@@ -116,11 +116,11 @@ class CatalogRepository:
|
||||
yield CatalogInfo(basedir, domain, self.encoding)
|
||||
|
||||
|
||||
def docname_to_domain(docname: str, compation: Union[bool, str]) -> str:
|
||||
def docname_to_domain(docname: str, compaction: Union[bool, str]) -> str:
|
||||
"""Convert docname to domain for catalogs."""
|
||||
if isinstance(compation, str):
|
||||
return compation
|
||||
if compation:
|
||||
if isinstance(compaction, str):
|
||||
return compaction
|
||||
if compaction:
|
||||
return docname.split(SEP, 1)[0]
|
||||
else:
|
||||
return docname
|
||||
|
||||
Reference in New Issue
Block a user