From 1dec3062e45359ce1697af1ca3c0cc3660071ef4 Mon Sep 17 00:00:00 2001 From: "Lumberbot (aka Jack)" <39504233+meeseeksmachine@users.noreply.github.com> Date: Thu, 30 May 2024 20:30:26 +0200 Subject: [PATCH] fix(backport): Use str object for jupyterlite-sphinx jupyterlite_dir config (#2501) * Backport PR https://github.com/scikit-hep/pyhf/pull/2458 * To avoid warning WARNING: The config value `jupyterlite_dir` has type `PosixPath`, defaults to `str`. use a str for the jupyterlite-sphinx v0.13.0+ jupyterlite_dir config option. Co-authored-by: Matthew Feickert --- docs/conf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 06ead2b2a7..60ab7b974d 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -531,5 +531,5 @@ def setup(app): linkcheck_retries = 50 # JupyterLite configuration -# Use Path as jupyterlite-sphinx expects PosixPath -jupyterlite_dir = Path("lite") +# jupyterlite-sphinx v0.13.0+ expects str +jupyterlite_dir = str(Path("lite"))