Simplify publish action (#15657)
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com> Signed-off-by: UltralyticsAssistant <web@ultralytics.com> Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
This commit is contained in:
parent
5624a4a95f
commit
277df6cb37
2 changed files with 64 additions and 51 deletions
|
|
@ -214,7 +214,7 @@ def convert_plaintext_links_to_html(content):
|
|||
|
||||
|
||||
def remove_macros():
|
||||
# Delete the /macros directory and sitemap.xml.gz from the built site
|
||||
"""Removes the /macros directory and related entries in sitemap.xml from the built site."""
|
||||
shutil.rmtree(SITE / "macros", ignore_errors=True)
|
||||
(SITE / "sitemap.xml.gz").unlink(missing_ok=True)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue