Skip to content

Commit 0b0a7c3

Browse files
authored
Fix Sagemaker tutorial examples' links
Previous implementation generated urls of this shape `https://github.com/huggingface/hub-docs/tree/{BRANCH_NAME}/{root}` while the correct one is "https://github.com/huggingface/hub-docs/tree/{BRANCH_NAME}/docs/sagemaker/{root}" Signed-off-by: DWarez <dario.salvati@huggingface.co>
1 parent e3c9945 commit 0b0a7c3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/sagemaker/scripts/auto-generate-examples.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def replacement(match):
102102
print("No relative paths found in the processed file.")
103103

104104
# Calculate the example URL
105-
example_url = f"https://github.com/huggingface/hub-docs/tree/{BRANCH_NAME}/{root}"
105+
example_url = f"https://github.com/huggingface/hub-docs/tree/{BRANCH_NAME}/docs/sagemaker/{root}"
106106
if file.__contains__("sagemaker-notebook"):
107107
example_url += "/sagemaker-notebook.ipynb"
108108

0 commit comments

Comments
 (0)