From be58a9a4f1572a27602751ea2de998d20a9c5aa5 Mon Sep 17 00:00:00 2001 From: Don Setiawan Date: Wed, 13 Dec 2023 08:25:49 -0800 Subject: [PATCH] ci: Add matplotlib import in RTD pre_build (#128) --- .readthedocs.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.readthedocs.yml b/.readthedocs.yml index e1ab16a6..597cc5de 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -30,6 +30,9 @@ build: pre_build: # Generate the Sphinx configuration for this Jupyter Book so it builds. - "jupyter-book config sphinx docs/source/" + # Create font cache ahead of jupyter book + - 'python -c "import matplotlib.pyplot as plt"' + # Get the API documentation dynamically - "sphinx-apidoc -f -o docs/source/ src/caustics/" python: