class_docstr: Documentation builder for Airflow Docs Publishing.
code: def _current_version(self):
      if not self.is_versioned:
          raise Exception("This documentation package is not versioned")
      if self.package_name == "apache-airflow":
          return get_airflow_version()
      if self.package_name.startswith("apache-airflow-providers-"):
          provider = get_provider_packages_metadata().get(
              get_short_package_name(self.package_name)
          )
          return provider["versions"][0]
      if self.package_name == "helm-chart":
          return chart_version()
      return Exception(f"Unsupported package: {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 4 for calling the DocsPublisher obj's underlying member method code with example usage: obj._current_version() and returns: Exception, get_airflow_version, provider, chart_version