docs: fix docs not being able to be built locally due to missing env variable.

This commit is contained in:
Marius Vikhammer 2021-09-14 18:02:19 +08:00
parent b501ebe138
commit bf89a900a3

View File

@ -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 ---------------------------------------------