def copy_markdown_file()

in scripts/unified-docs/script.py [0:0]


def copy_markdown_file(src_file, dst_file):

    if not os.path.exists(dst_file):
        os.makedirs(os.path.dirname(dst_file), exist_ok=True)
        shutil.copy2(src_file, dst_file)
        print(f"Copied {src_file} to {dst_file}")
    else:
        print(f"Skipped {dst_file} (already exists)")