docs/build_docs.py
"""
    If used in Github Action, creates an expandable group in the Github Action log.
    Otherwise, dispaly simple text groups.
    For more information, see:
    https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-commands-for-github-actions#grouping-log-lines
    """
    if os.environ.get('GITHUB_ACTIONS', 'false') != "true":
        print("#" * 20, title, "#" * 20)
        yield
        return
    print(f"::group::{title}")
    yield
    print("\033[0m")
    print("::endgroup::")
class AirflowDocsBuilder: