Skip to content

Commit

Permalink
ci: investigations
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgepiloto committed Feb 6, 2024
1 parent 9ea74ce commit 991b626
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
import sys
from glob import glob
from datetime import datetime

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

# A list of files that should not be packed into the epub file.
epub_exclude_files = ["search.html"]


def verify_meilisearch_is_active(app):
MEILISEARCH_PUBLIC_API_KEY = os.getenv("MEILISEARCH_PUBLIC_API_KEY", None)
if not MEILISEARCH_PUBLIC_API_KEY:
sys.stderr.write("Could not find MEILISEARCH_PUBLIC_API_KEY")
sys.exit(1)

def setup(app):
app.connect("builder-inited", verify_meilisearch_is_active)

0 comments on commit 991b626

Please sign in to comment.