Skip to content

Commit 55e4d20

Browse files
committed
fix: Clean up searchindex when build runs
1 parent 1c21b7c commit 55e4d20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sphinx_sqlite3fts/events.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def _disable_search(app: Sphinx):
1818
app.builder.search = False
1919

2020
def _generate_search_html(app: Sphinx):
21-
(Path(app.builder.outdir) / "searchindex.js").touch()
21+
(Path(app.builder.outdir) / "searchindex.js").write_text("")
2222
app.builder.globalcontext.update(
2323
{
2424
"search_language_stop_words": "[]",

0 commit comments

Comments
 (0)