Skip to content

Commit

Permalink
Merge pull request #201 from agriyakhetarpal/sphinx7,8-compat
Browse files Browse the repository at this point in the history
Restore backwards compatibility with Sphinx <8
  • Loading branch information
Carreau authored Aug 8, 2024
2 parents fe05a1d + 984b376 commit 450a81d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jupyterlite_sphinx/jupyterlite_sphinx.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])

Expand Down

0 comments on commit 450a81d

Please sign in to comment.