|
|
@ -169,11 +169,12 @@ def update_docs_html(): |
|
|
|
# Update 404 titles |
|
|
|
# Update 404 titles |
|
|
|
update_page_title(SITE / "404.html", new_title="Ultralytics Docs - Not Found") |
|
|
|
update_page_title(SITE / "404.html", new_title="Ultralytics Docs - Not Found") |
|
|
|
|
|
|
|
|
|
|
|
# Update edit links |
|
|
|
# Update edit button links |
|
|
|
update_subdir_edit_links( |
|
|
|
for subdir, docs_url in ( |
|
|
|
subdir="hub/sdk/", # do not use leading slash |
|
|
|
("hub/sdk/", "https://github.com/ultralytics/hub-sdk/tree/main/docs/"), # do not use leading slash |
|
|
|
docs_url="https://github.com/ultralytics/hub-sdk/tree/main/docs/", |
|
|
|
("compare/", "https://github.com/ultralytics/docs/tree/main/docs/en/compare/"), |
|
|
|
) |
|
|
|
): |
|
|
|
|
|
|
|
update_subdir_edit_links(subdir=subdir, docs_url=docs_url) |
|
|
|
|
|
|
|
|
|
|
|
# Convert plaintext links to HTML hyperlinks |
|
|
|
# Convert plaintext links to HTML hyperlinks |
|
|
|
files_modified = 0 |
|
|
|
files_modified = 0 |
|
|
|