Skip to content

Commit 06c59d2

Browse files
authored
Merge pull request #9033 from stratakis/typos
Fix some local parameter names
2 parents d27bdce + 1b66532 commit 06c59d2

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

sphinx/builders/html/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1140,7 +1140,7 @@ def convert_html_js_files(app: Sphinx, config: Config) -> None:
11401140
config.html_js_files = html_js_files # type: ignore
11411141

11421142

1143-
def setup_js_tag_helper(app: Sphinx, pagename: str, templatexname: str,
1143+
def setup_js_tag_helper(app: Sphinx, pagename: str, templatename: str,
11441144
context: Dict, doctree: Node) -> None:
11451145
"""Set up js_tag() template helper.
11461146

sphinx/util/i18n.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,11 @@ def catalogs(self) -> Generator[CatalogInfo, None, None]:
116116
yield CatalogInfo(basedir, domain, self.encoding)
117117

118118

119-
def docname_to_domain(docname: str, compation: Union[bool, str]) -> str:
119+
def docname_to_domain(docname: str, compaction: Union[bool, str]) -> str:
120120
"""Convert docname to domain for catalogs."""
121-
if isinstance(compation, str):
122-
return compation
123-
if compation:
121+
if isinstance(compaction, str):
122+
return compaction
123+
if compaction:
124124
return docname.split(SEP, 1)[0]
125125
else:
126126
return docname

0 commit comments

Comments
 (0)