From c70965799e645a2743522c9bf5979e45b91f100e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=98=D0=B2=D0=B0=D0=BD=D0=BE=D0=B2=20=D0=AE=D1=80=D0=B8?= =?UTF-8?q?=D0=B9?= Date: Fri, 19 Jan 2024 12:41:39 +0300 Subject: [PATCH] Trying to fix the `ModuleNotFoundError` bug `No module named 'unidecode'` when building documentation on `Readthedocs`. --- docs/sources/_extensions/autoapi_kivymd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/sources/_extensions/autoapi_kivymd.py b/docs/sources/_extensions/autoapi_kivymd.py index 0ea5b18b6..86c76655c 100644 --- a/docs/sources/_extensions/autoapi_kivymd.py +++ b/docs/sources/_extensions/autoapi_kivymd.py @@ -15,7 +15,7 @@ import autoapi import sphinx -import unidecode +# import unidecode from autoapi.directives import NestedParse from autoapi.extension import LOGGER from autoapi.extension import setup as autoapi_setup @@ -41,7 +41,7 @@ def PythonPythonMapper_pathname(self: PythonPythonMapper): slug = self.summary except AttributeError: return os.path.join(*self.name.split(".")) - slug = unidecode.unidecode(slug) + # slug = unidecode.unidecode(slug) slug = slug.lower() slug = re.sub(r"[^\w\./]+", "-", slug).strip("-") slug_split = slug.split("/")