From 1d4a584b63f255ad995b763471c42b46cec96f3e Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Tue, 17 Oct 2023 09:42:13 -0400 Subject: [PATCH] docs: fix changelog gen --- docs/conf.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index de207c3..9c5a56a 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -56,8 +56,8 @@ # -- Changelog builder ------------------------------------------------------- - -sphinx_github_changelog_token = os.environ.get("GITHUB_API_TOKEN") +if "GITHUB_API_TOKEN" in os.environ: + sphinx_github_changelog_token = os.environ["GITHUB_API_TOKEN"] commit = os.environ.get("READTHEDOCS_GIT_COMMIT_HASH", "main") -code_url = "https://github.com/scientific-python/repo-review/blob" +code_url = "https://github.com/scikit-hep/uhi/blob"