From 2dac58eb3a1ee9ebf91c445ba2c27abe09030300 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20Mart=C3=ADnez?= <28702884+jorgepiloto@users.noreply.github.com> Date: Wed, 23 Oct 2024 12:40:16 +0200 Subject: [PATCH] fix: ensure it is a path object --- src/ansys_sphinx_theme/search/fuse_search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ansys_sphinx_theme/search/fuse_search.py b/src/ansys_sphinx_theme/search/fuse_search.py index 37176d6b..4e6539ac 100644 --- a/src/ansys_sphinx_theme/search/fuse_search.py +++ b/src/ansys_sphinx_theme/search/fuse_search.py @@ -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)