### 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.
"""Get list of all available packages to build."""
    all_providers_yaml = load_package_data()
    provider_package_names = [
        provider["package-name"] for provider in all_providers_yaml if not provider.get("suspended")
    ]
    return [
        "apache-airflow",
        "docker-stack",
        *provider_package_names,
        "apache-airflow-providers",
        "helm-chart",
    ]
def process_package_filters(available_packages: list[str], package_filters: list[str] | None):
    """Filters the package list against a set of filters.
    A packet is returned if it matches at least one filter. The function keeps the order of the packages.
    """
    if not package_filters:
        return available_packages
    invalid_filters = [
        f for f in package_filters if not any(fnmatch.fnmatch(p, f) for p in available_packages)
    ]
    if invalid_filters:
        raise SystemExit(
            f"Some filters did not find any package: {invalid_filters}, Please check if they are correct."
        )
    return [p for p in available_packages if any(fnmatch.fnmatch(p, f) for f in package_filters)]
def pretty_format_path(path: str, start: str) -> str: