From 96c37da4df248de1e32fc108afb072a2aea4679e Mon Sep 17 00:00:00 2001 From: Christian Ledermann Date: Sun, 29 Oct 2023 16:51:11 +0000 Subject: [PATCH] add path to sphinx configuration --- docs/conf.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index 4f6f7022..f14d98ff 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -3,14 +3,20 @@ # # For the full list of built-in configuration values, see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html +import sys +from pathlib import Path + +sys.path.insert(0, str(Path(__file__).resolve().parent)) # -- Project information ----------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information +from pygeoif import about # noqa: E402 + project = "pygeoif" copyright = "2023, Christian Ledermann" # noqa: A001 author = "Christian Ledermann" -release = "1.2" +release = about.__version__ # -- General configuration --------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration