Skip to content

Commit 0f48c90

Browse files
fix: rename project name
1 parent e43656d commit 0f48c90

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/ansys_sphinx_theme/__init__.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -532,9 +532,11 @@ def add_tooltip_after_build(app: Sphinx, exception):
532532
return
533533

534534
outdir = pathlib.Path(app.outdir)
535-
project_name = f"{app.config.html_short_title} home" or None
536-
if not project_name:
537-
project_name = f"{app.config.project} home" or "Package Home"
535+
if not app.config.html_short_title and not app.config.project:
536+
project_name = "Package Home"
537+
538+
else:
539+
project_name = f"{app.config.html_short_title} home" or f"{app.config.project} home"
538540

539541
for html_file in outdir.rglob("*.html"):
540542
text = html_file.read_text(encoding="utf-8")

0 commit comments

Comments
 (0)