Fix Docs edit button links (#18932)

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
pull/18917/head^2
Glenn Jocher 4 weeks ago committed by GitHub
parent d92ef73265
commit 765facc5d7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 11
      docs/build_docs.py

@ -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

Loading…
Cancel
Save