### 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.
package_filter: tuple[str]
    docs_only: bool
    spellcheck_only: bool
    packages_plus_all_providers: tuple[str]
    skip_environment_initialization: bool = False
    one_pass_only: bool = False
    github_actions = os.environ.get("GITHUB_ACTIONS", "false")
    @property
    def args_doc_builder(self) -> list[str]:
        doc_args = []
        if self.docs_only:
            doc_args.append("--docs-only")
        if self.spellcheck_only:
            doc_args.append("--spellcheck-only")
        if self.one_pass_only:
            doc_args.append("--one-pass-only")
        if AIRFLOW_BRANCH != "main":
            doc_args.append("--disable-provider-checks")
        if self.packages_plus_all_providers:
            providers = get_provider_name_from_short_hand(self.packages_plus_all_providers)
            for single_provider in providers:
                doc_args.extend(["--package-filter", single_provider])
        if self.package_filter:
            for single_filter in self.package_filter:
                doc_args.extend(["--package-filter", single_filter])
        return doc_args