Skip to content

Commit

Permalink
DOC: Add PYPROJ_HTML_THEME environment variable (#1139)
Browse files Browse the repository at this point in the history
  • Loading branch information
snowman2 committed Sep 9, 2022
1 parent 1799a5e commit f6c12a3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from importlib.metadata import version as pkg_version
import importlib.metadata
import os

# Sphinx extensions
extensions = [
Expand Down Expand Up @@ -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"]

Expand All @@ -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"

Expand Down

0 comments on commit f6c12a3

Please sign in to comment.