diff --git a/docs/build_docs.py b/docs/build_docs.py index 11133983..a0ce5b91 100644 --- a/docs/build_docs.py +++ b/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."""