Skip to content

Commit 991b626

Browse files
committed
ci: investigations
1 parent 9ea74ce commit 991b626

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

doc/source/conf.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import os
2+
import sys
23
from glob import glob
34
from datetime import datetime
45

@@ -313,3 +314,13 @@ def reset_servers(gallery_conf, fname, when):
313314

314315
# A list of files that should not be packed into the epub file.
315316
epub_exclude_files = ["search.html"]
317+
318+
319+
def verify_meilisearch_is_active(app):
320+
MEILISEARCH_PUBLIC_API_KEY = os.getenv("MEILISEARCH_PUBLIC_API_KEY", None)
321+
if not MEILISEARCH_PUBLIC_API_KEY:
322+
sys.stderr.write("Could not find MEILISEARCH_PUBLIC_API_KEY")
323+
sys.exit(1)
324+
325+
def setup(app):
326+
app.connect("builder-inited", verify_meilisearch_is_active)

0 commit comments

Comments
 (0)