Skip to content

Commit 5e2833a

Browse files
committed
Fix attachments
1 parent e48d0a3 commit 5e2833a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

build.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ def main():
3939
shutil.copytree('ipython', dst_path_ipynb,
4040
ignore=lambda src, names: [x for x in names if not x.endswith('.ipynb')])
4141

42+
shutil.copytree(os.path.join('ipython', 'attachments'),
43+
os.path.join(dst_path_ipynb, 'attachments'))
44+
4245
tags = parse_wiki_legacy_tags()
4346
titles, tags_new = generate_files(dst_path=dst_path)
4447

@@ -282,7 +285,7 @@ def convert_file(dst_path, fn, editors, created, modified):
282285
text = text[:m.start()] + text[m.end():]
283286

284287
text = text.replace('attachments/{0}/'.format(basename),
285-
'../_downloads/')
288+
'../_static/items/attachments/{0}/'.format(basename))
286289

287290
lines.extend(" " + x for x in text.splitlines())
288291
lines.append("")

0 commit comments

Comments
 (0)