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.
1 parent f155e02 commit 3633ed1Copy full SHA for 3633ed1
jupyter_sphinx/ast.py
@@ -2,6 +2,7 @@
2
3
import os
4
import json
5
+import pathlib
6
7
import docutils
8
from docutils.parsers.rst import Directive, directives
@@ -403,6 +404,8 @@ def run(self):
403
404
output_dir = sphinx_abs_dir(self.env)
405
download_file = self.target + ext
406
reftarget=os.path.realpath(os.path.join(output_dir, download_file))
407
+ # touch the path, so that it can be found by the download collector
408
+ pathlib.Path(reftarget).touch()
409
node = download_reference(self.rawtext, reftarget=reftarget)
410
self.set_source_info(node)
411
title = self.title if self.has_explicit_title else download_file
0 commit comments