File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -57,14 +57,12 @@ def process_repo(repo, destination_directory):
57
57
print (f"Found tutorial(s) { tutorials } " )
58
58
for t in tutorials :
59
59
shutil .copy (t , destination_directory )
60
- shutil .copy (f"{ repo } /{ os .path .splitext (t )[ 0 ] } .html" , destination_directory )
60
+ shutil .copy (f"{ repo } /{ os .path .basename (t )} .html" , destination_directory )
61
61
if len (tutorials ) > 1 :
62
62
print ("More than 1 tutorial found; treating this as a book" )
63
63
shutil .copy (f"{ repo } /index.html" , destination_directory )
64
64
# copy images (plots) in notebook for faster page loading
65
- shutil .copy (
66
- f"{ repo } /_images/*.png" , os .path .join (destination_directory , "nboutput" )
67
- )
65
+ shutil .copy (f"{ repo } /_images/*.png" , f"{ destination_directory } /nboutput" )
68
66
69
67
70
68
if __name__ == "__main__" :
You can’t perform that action at this time.
0 commit comments