We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c93f802 + d2b2a68 commit 8673c6fCopy full SHA for 8673c6f
src/jupyterlite_sphinx.py
@@ -127,6 +127,13 @@ class RetroliteDirective(SphinxDirective):
127
128
def run(self):
129
notebook = self.arguments[0]
130
+
131
+ # If we didn't get an absolute path,
132
+ # try to find the Notebook relatively to the source
133
+ if not os.path.isabs(notebook):
134
+ source_location = os.path.dirname(self.get_source_info()[0])
135
+ notebook = os.path.join(source_location, notebook)
136
137
notebook_name = os.path.basename(notebook)
138
139
width = self.options.get("width", "100%")
0 commit comments