Skip to content

Commit

Permalink
fix: ensure it is a path object
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgepiloto authored Oct 23, 2024
1 parent 814de3c commit 2dac58e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ansys_sphinx_theme/search/fuse_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,6 @@ def create_search_index(app, exception):
search_index.build_sections()
search_index_list.extend(search_index.indices)

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

0 comments on commit 2dac58e

Please sign in to comment.