in scripts/copy_druid_docs.py [0:0]
def is_it_latest(druid_version, source_directory, destination_directory_latest):
is_latest = input(f"Is {druid_version} going to be the highest version available for download? If yes, the docs will also be used for 'latest'. (y/n) ").lower()
if is_latest == 'y':
print("Also copying the docs to docs/latest.")
subprocess.run(["rsync", "--delete", "--recursive", f"{source_directory}/docs/", destination_directory_latest])
if os.path.exists(f"{destination_directory_latest}/_bin"):
shutil.rmtree(f"{destination_directory_latest}/_bin")
do_the_replace(destination_directory_latest, druid_version)
elif is_latest == 'n':
print("Not copying the docs to docs/latest")
else:
print("Enter y or n to make a choice")