From f6c12a347597ae3895158bd6d30ee72b763d3005 Mon Sep 17 00:00:00 2001 From: "Alan D. Snow" Date: Thu, 8 Sep 2022 20:28:16 -0500 Subject: [PATCH] DOC: Add PYPROJ_HTML_THEME environment variable (#1139) --- docs/conf.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 9e88f13ef..66ba52e34 100755 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,4 +1,5 @@ -from importlib.metadata import version as pkg_version +import importlib.metadata +import os # Sphinx extensions extensions = [ @@ -35,7 +36,7 @@ copyright = "2006-2018, Jeffrey Whitaker; 2019-2022, Open source contributors" author = "Jeffrey Whitaker" -version = release = pkg_version("pyproj") +version = release = importlib.metadata.version("pyproj") exclude_patterns = ["_build", "Thumbs.db", ".DS_Store", "**.ipynb_checkpoints"] @@ -51,7 +52,7 @@ # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. # -html_theme = "furo" +html_theme = os.getenv("PYPROJ_HTML_THEME", "furo") html_logo = "media/logo.png" html_favicon = "media/icon.png"