Delete /macros dir from Docs site (#15068)
Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
This commit is contained in:
parent
5880e18fa7
commit
b546724ecd
1 changed files with 6 additions and 0 deletions
|
|
@ -178,6 +178,12 @@ def update_docs_html():
|
||||||
if any(script):
|
if any(script):
|
||||||
update_html_head(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):
|
def convert_plaintext_links_to_html(content):
|
||||||
"""Convert plaintext links to HTML hyperlinks in the main content area only."""
|
"""Convert plaintext links to HTML hyperlinks in the main content area only."""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue