From a5ece63e11e278c308d638a653e1d09ce649350f Mon Sep 17 00:00:00 2001 From: Jorge Martinez Date: Tue, 6 Feb 2024 09:38:29 +0100 Subject: [PATCH] ci: investigations --- doc/source/conf.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/doc/source/conf.py b/doc/source/conf.py index 05169d6363..bc3aac099d 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -313,3 +313,12 @@ 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: + raise ValueError("Could not find MEILISEARCH_PUBLIC_API_KEY") + +def setup(app): + app.connect("builder-inited", verify_meilisearch_is_active)