Delete /macros dir from Docs site (#15068)

Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
This commit is contained in:
Glenn Jocher 2024-08-09 17:21:23 +02:00 committed by GitHub
parent 5880e18fa7
commit b546724ecd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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