User Manual: Remove old files for when deploying #7
@ -216,7 +216,8 @@ def deliver(builder: ManualBuilder) -> None:
|
|||||||
# Sync html files
|
# Sync html files
|
||||||
source_path = f"{builder.build_path}/{doc_format}/{locale}/"
|
source_path = f"{builder.build_path}/{doc_format}/{locale}/"
|
||||||
dest_path = f"{connect_id}:{version_remote_path}/"
|
dest_path = f"{connect_id}:{version_remote_path}/"
|
||||||
worker.utils.rsync(source_path, dest_path, exclude_paths=[".doctrees"])
|
# Exclude zip files so `--delete` does not delete existing archives
|
||||||
|
worker.utils.rsync(source_path, dest_path, exclude_paths=[".doctrees", ".*zip"], delete=True, delete_path_check=docs_remote_path)
|
||||||
|
|
||||||
# Create links
|
# Create links
|
||||||
if builder.track_id == "vdev":
|
if builder.track_id == "vdev":
|
||||||
|
Loading…
Reference in New Issue
Block a user