Skip to content

Commit cb9426c

Browse files
authored
Merge pull request #158 from Carreau/error-man
Raise informative error message when building man on older sphinx
2 parents a0903f5 + bbdc68b commit cb9426c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

jupyterlite_sphinx/jupyterlite_sphinx.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,13 @@ def __init__(
135135

136136
iframe_src = f'{prefix}/{app_path}{f"?{options}" if options else ""}'
137137

138+
if "iframe_src" in attributes:
139+
if attributes["iframe_src"] != iframe_src:
140+
raise ValueError(
141+
f'Two different values of iframe_src {attributes["iframe_src"]=},{iframe_src=}, try upgrading sphinx to v 7.2.0 or more recent'
142+
)
143+
del attributes["iframe_src"]
144+
138145
super().__init__(rawsource, *children, iframe_src=iframe_src, **attributes)
139146

140147

0 commit comments

Comments
 (0)