Skip to content

Commit

Permalink
FIX: Name
Browse files Browse the repository at this point in the history
  • Loading branch information
larsoner committed Aug 7, 2024
1 parent 0982f8d commit e38db43
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sphinx/builders/html/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,18 +401,18 @@ def math_renderer_name(self) -> str | None:
return None

def get_outdated_docs(self) -> Iterator[str]:
old_info = path.join(self.outdir, '.buildinfo')
build_info_fname = path.join(self.outdir, '.buildinfo')
try:
with open(old_info, encoding="utf-8") as fp:
with open(build_info_fname, encoding="utf-8") as fp:
buildinfo = BuildInfo.load(fp)

if self.build_info != buildinfo:
logger.info(
bold(__("building [html]: ")) +
__("build_info mismatch, copying .buildinfo to .buildinfo.old")
)
shutil.copy(old_info, old_info + ".old")
with open(path.join(self.outdir, '.buildinfo'), 'w', encoding="utf-8") as fp:
shutil.copy(build_info_fname, build_info_fname + ".old")
with open(build_info_fname, 'w', encoding="utf-8") as fp:
self.build_info.dump(fp)
yield from self.env.found_docs
return
Expand Down

0 comments on commit e38db43

Please sign in to comment.