From bf89a900a3ea1e7469ac86c88564c80fd0fa3d2c Mon Sep 17 00:00:00 2001 From: Marius Vikhammer Date: Tue, 14 Sep 2021 18:02:19 +0800 Subject: [PATCH] docs: fix docs not being able to be built locally due to missing env variable. --- docs/conf_common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/conf_common.py b/docs/conf_common.py index c055657a71..c7640dcba0 100644 --- a/docs/conf_common.py +++ b/docs/conf_common.py @@ -362,7 +362,7 @@ html_static_path = ['../_static'] # Output file base name for HTML help builder. htmlhelp_basename = 'ReadtheDocsTemplatedoc' -google_analytics_id = os.environ['CI_GOOGLE_ANALYTICS_ID'] +google_analytics_id = os.environ.get('CI_GOOGLE_ANALYTICS_ID', None) # -- Options for LaTeX output ---------------------------------------------