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])