class_docstr: Documentation builder for Airflow Docs Publishing.
code: def _build_dir(self) -> str:
      if self.is_versioned:
          version = "stable"
          return f"{DOCS_DIR}/_build/docs/{self.package_name}/{version}"
      else:
          return f"{DOCS_DIR}/_build/docs/{self.package_name}"
  
file_path: airflow/dev/breeze/src/airflow_breeze/utils/docs_publisher.py
imports: from __future__ import annotations
  import os
  import shutil
  from pathlib import Path
  from airflow_breeze.global_constants import get_airflow_version
  from airflow_breeze.utils.console import Output, get_console
  from airflow_breeze.utils.helm_chart_utils import chart_version
  from airflow_breeze.utils.packages import get_provider_packages_metadata, get_short_package_name
  from airflow_breeze.utils.publish_docs_helpers import pretty_format_path
label_desc: Use image node_id 3 for calling the DocsPublisher obj's underlying member method code with example usage: obj._build_dir() and returns: DOCS_DIR, str, self, str, version, DOCS_DIR, str, self