docs/exts/airflow_intersphinx.py
if domain == 'py':
                from sphinx.domains.python import PythonDomain
                role_name = PythonDomain.object_types[object_type].roles[0]
            elif domain == 'std':
                from sphinx.domains.std import StandardDomain
                role_name = StandardDomain.object_types[object_type].roles[0]
            else:
                role_name = object_type
            return role_name
        def inspect_main(inv_data, name) -> None:
            try:
                for key in sorted(inv_data or {}):
                    for entry, _ in sorted(inv_data[key].items()):
                        domain, object_type = key.split(":")
                        role_name = domain_and_object_type_to_role(domain, object_type)
                        print(f":{role_name}:`{name}:{entry}`")
            except ValueError as exc:
                print(exc.args[0] % exc.args[1:])
            except Exception as exc:  
                print('Unknown error: %r' % exc)
        provider_mapping = _generate_provider_intersphinx_mapping()
        for key, value in provider_mapping.copy().items():
            provider_mapping[key] = (key, value)
        inv_dict = fetch_inventories(provider_mapping)
        for name, inv_data in inv_dict.items():
            inspect_main(inv_data, name)
    import logging
    logging.basicConfig(level=logging.DEBUG)
    main()