Skip to content

Commit 0751cc3

Browse files
fix: ensure app.builder.outdir is a Path object (#565)
Co-authored-by: pyansys-ci-bot <[email protected]>
1 parent b1b71bf commit 0751cc3

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

doc/changelog.d/565.miscellaneous.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
fix: ensure app.builder.outdir is a Path object

src/ansys_sphinx_theme/search/fuse_search.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"""Module for generating search indices."""
2424

2525
import json
26+
from pathlib import Path
2627
import re
2728

2829
from docutils import nodes
@@ -147,6 +148,6 @@ def create_search_index(app, exception):
147148
search_index.build_sections()
148149
search_index_list.extend(search_index.indices)
149150

150-
search_index_path = app.builder.outdir / "_static" / "search.json"
151+
search_index_path = Path(app.builder.outdir) / "_static" / "search.json"
151152
with search_index_path.open("w", encoding="utf-8") as index_file:
152153
json.dump(search_index_list, index_file, ensure_ascii=False, indent=4)

0 commit comments

Comments
 (0)