Skip to content

Commit 450a81d

Browse files
authored
Merge pull request #201 from agriyakhetarpal/sphinx7,8-compat
Restore backwards compatibility with Sphinx <8
2 parents fe05a1d + 984b376 commit 450a81d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jupyterlite_sphinx/jupyterlite_sphinx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ def run(self):
609609

610610

611611
def _process_docstring_examples(app: Sphinx, docname: str, source: List[str]) -> None:
612-
source_path: str = app.env.doc2path(docname)
612+
source_path: os.PathLike = Path(app.env.doc2path(docname))
613613
if source_path.suffix == ".py":
614614
source[0] = insert_try_examples_directive(source[0])
615615

0 commit comments

Comments
 (0)