From 7777c183509c942105df66ff73de79075a5ee951 Mon Sep 17 00:00:00 2001 From: Harshal Sheth Date: Fri, 17 Nov 2023 18:14:32 -0500 Subject: [PATCH] add missing file --- metadata-ingestion/src/datahub/utilities/docs_build.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 metadata-ingestion/src/datahub/utilities/docs_build.py diff --git a/metadata-ingestion/src/datahub/utilities/docs_build.py b/metadata-ingestion/src/datahub/utilities/docs_build.py new file mode 100644 index 0000000000000..18cb3629516ba --- /dev/null +++ b/metadata-ingestion/src/datahub/utilities/docs_build.py @@ -0,0 +1,9 @@ +from typing import TYPE_CHECKING + +try: + # Via https://stackoverflow.com/a/65147676 + if not TYPE_CHECKING and __sphinx_build__: + IS_SPHINX_BUILD = True + +except NameError: + IS_SPHINX_BUILD = False