Description: Fix for docs
 Fix for unable to find module changelogd during build,
 define the path + import version locally instead of pip.
Forwarded: not-needed
Author: Yogeswaran Umasankar <yogu@debian.org>
Last-Update: 2024-07-30

--- a/docs/conf.py
+++ b/docs/conf.py
@@ -16,6 +16,9 @@ from pathlib import Path
 
 import pkg_resources
 
+import os
+import sys
+sys.path.insert(0, os.path.abspath(".."))
 from changelogd import changelogd
 
 ROOT_PATH = Path(__file__).parents[1]
@@ -27,7 +30,8 @@ copyright = "2020, Andrzej Klajnert"
 author = "Andrzej Klajnert"
 
 # The full version, including alpha/beta/rc tags
-release = pkg_resources.get_distribution("pip").version
+from changelogd import __version__
+release = __version__
 
 
 # -- General configuration ---------------------------------------------------
