Skip to content

Commit 88711a0

Browse files
committed
reach html
1 parent 3c9c8ed commit 88711a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deployment/installtutorials.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def process_repo(repo, destination_directory):
5757
print(f"Found tutorial(s) {tutorials}")
5858
for t in tutorials:
5959
shutil.copy(t, destination_directory)
60-
shutil.copy(f"{repo}/{os.path.basename(t)}.html", destination_directory)
60+
shutil.copy(f"{repo}/{os.path.splitext(os.path.basename(t))[0]}.html", destination_directory)
6161
if len(tutorials) > 1:
6262
print("More than 1 tutorial found; treating this as a book")
6363
shutil.copy(f"{repo}/index.html", destination_directory)

0 commit comments

Comments
 (0)