docs/exts/airflow_intersphinx.py
#
#
import os
import time
from typing import Any, Dict
from provider_yaml_utils import load_package_data  
from sphinx.application import Sphinx
CURRENT_DIR = os.path.dirname(__file__)
ROOT_DIR = os.path.abspath(os.path.join(CURRENT_DIR, os.pardir, os.pardir))
DOCS_DIR = os.path.join(ROOT_DIR, 'docs')
DOCS_PROVIDER_DIR = os.path.join(ROOT_DIR, 'docs')
S3_DOC_URL = "http://apache-airflow-docs.s3-website.eu-central-1.amazonaws.com"
IS_RTD = os.environ.get('READTHEDOCS') == 'True'
def _create_init_py(app, config):
    del app
    
    intersphinx_mapping = getattr(config, 'intersphinx_mapping', None) or {}
    providers_mapping = _generate_provider_intersphinx_mapping()
    intersphinx_mapping.update(providers_mapping)
    config.intersphinx_mapping = intersphinx_mapping
def _generate_provider_intersphinx_mapping():