From 984b3765693b2bb8816bb054023f89de7309faff Mon Sep 17 00:00:00 2001 From: Agriya Khetarpal <74401230+agriyakhetarpal@users.noreply.github.com> Date: Wed, 7 Aug 2024 20:43:12 +0530 Subject: [PATCH] Sphinx 7, 8 compat --- jupyterlite_sphinx/jupyterlite_sphinx.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jupyterlite_sphinx/jupyterlite_sphinx.py b/jupyterlite_sphinx/jupyterlite_sphinx.py index 9385165..366b0e9 100644 --- a/jupyterlite_sphinx/jupyterlite_sphinx.py +++ b/jupyterlite_sphinx/jupyterlite_sphinx.py @@ -609,7 +609,7 @@ def run(self): def _process_docstring_examples(app: Sphinx, docname: str, source: List[str]) -> None: - source_path: str = app.env.doc2path(docname) + source_path: os.PathLike = Path(app.env.doc2path(docname)) if source_path.suffix == ".py": source[0] = insert_try_examples_directive(source[0])