1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
Description: Fix for docs
Remove import version from pip + replace
sphinxcontrib.napoleon with sphinx.ext.napoleon.
Forwarded: not-needed
Author: Yogeswaran Umasankar <yogu@debian.org>
Last-Update: 2024-08-19
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -29,7 +29,10 @@ copyright = f"2019-{datetime.datetime.no
author = "Andrzej Klajnert"
# The full version, including alpha/beta/rc tags
-release = pkg_resources.get_distribution("pip").version
+try:
+ release = pkg_resources.get_distribution("pip").version
+except pkg_resources.DistributionNotFound:
+ release = "unknown"
# -- General configuration ---------------------------------------------------
@@ -39,7 +42,7 @@ release = pkg_resources.get_distribution
# ones.
extensions = [
- "sphinxcontrib.napoleon",
+ "sphinx.ext.napoleon",
"sphinx.ext.autodoc",
"sphinx_autodoc_typehints",
]
|