Skip to content

Commit

Permalink
Merge pull request #199 from agriyakhetarpal/compatibility-with-sphinx-8
Browse files Browse the repository at this point in the history
Fix compatibility with Sphinx 8
  • Loading branch information
steppi authored Aug 6, 2024
2 parents 0b0bc58 + 13a3631 commit 84537b0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions jupyterlite_sphinx/jupyterlite_sphinx.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import shutil
import glob
import re
from typing import Dict, Any
from typing import Dict, Any, List

from pathlib import Path

Expand Down Expand Up @@ -608,9 +608,9 @@ def run(self):
return [content_container_node, notebook_container, script_node]


def _process_docstring_examples(app, docname, source):
source_path = app.env.doc2path(docname)
if source_path.endswith(".py"):
def _process_docstring_examples(app: Sphinx, docname: str, source: List[str]) -> None:
source_path: str = app.env.doc2path(docname)
if source_path.suffix == ".py":
source[0] = insert_try_examples_directive(source[0])


Expand Down

0 comments on commit 84537b0

Please sign in to comment.