Skip to content

Commit

Permalink
Trying to fix the ModuleNotFoundError bug
Browse files Browse the repository at this point in the history
`No module named 'unidecode'` when building documentation on `Readthedocs`.
  • Loading branch information
HeaTTheatR committed Jan 19, 2024
1 parent b2e9109 commit c709657
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/sources/_extensions/autoapi_kivymd.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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("/")
Expand Down

0 comments on commit c709657

Please sign in to comment.