### Body

Same as https://github.com/apache/airflow/issues/33876 but for `publish-docs` command.

### Committer

- [X] I acknowledge that I am a maintainer/committer of the Apache Airflow project.
array_of_args = []
    for key, value in build_args.items():
        array_of_args.append("--build-arg")
        array_of_args.append(f"{key}={value}")
    return array_of_args
def alias_image(image_from: str, image_to: str):
    get_console().print(f"[info]Creating {image_to} alias for {image_from}[/]")
    run_command(
        ["regctl", "image", "copy", "--force-recursive", "--digest-tags", image_from, image_to],
    )
def run_docs_publishing(
    package_name: str,
    airflow_site_directory: str,
    override_versioned: bool,
    verbose: bool,
    output: Output | None,
) -> tuple[int, str]:
    builder = PublishDocsBuilder(package_name=package_name, output=output, verbose=verbose)
    builder.publish(override_versioned=override_versioned, airflow_site_dir=airflow_site_directory)
    return (
        0,
        f"Docs published: {package_name}",
    )
PUBLISHING_DOCS_PROGRESS_MATCHER = r"Publishing docs|Copy directory"
def run_publish_docs_in_parallel(