Skip to content

Commit ad7460d

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

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/ansys_sphinx_theme/__init__.py

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

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

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

0 commit comments

Comments
 (0)