Skip to content

Commit a5ece63

Browse files
committed
ci: investigations
1 parent 9ea74ce commit a5ece63

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

doc/source/conf.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,3 +313,12 @@ def reset_servers(gallery_conf, fname, when):
313313

314314
# A list of files that should not be packed into the epub file.
315315
epub_exclude_files = ["search.html"]
316+
317+
318+
def verify_meilisearch_is_active(app):
319+
MEILISEARCH_PUBLIC_API_KEY = os.getenv("MEILISEARCH_PUBLIC_API_KEY", None)
320+
if not MEILISEARCH_PUBLIC_API_KEY:
321+
raise ValueError("Could not find MEILISEARCH_PUBLIC_API_KEY")
322+
323+
def setup(app):
324+
app.connect("builder-inited", verify_meilisearch_is_active)

0 commit comments

Comments
 (0)