Delete `/macros` dir from Docs site (#15068)

Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
pull/15105/head
Glenn Jocher 3 months ago committed by GitHub
parent 5880e18fa7
commit b546724ecd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 6
      docs/build_docs.py

@ -178,6 +178,12 @@ def update_docs_html():
if any(script):
update_html_head(script)
# Delete the /macros directory from the built site
macros_dir = SITE / "macros"
if macros_dir.exists():
print(f"Removing /macros directory from site: {macros_dir}")
shutil.rmtree(macros_dir)
def convert_plaintext_links_to_html(content):
"""Convert plaintext links to HTML hyperlinks in the main content area only."""

Loading…
Cancel
Save