From 168a2ef5e7663a5fdf9dcd47d4f46038503d2f35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Mazzucotelli?= Date: Tue, 31 Oct 2023 19:30:41 +0100 Subject: [PATCH] fixup! Make extension paths relative to config file --- src/mkdocstrings_handlers/python/handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mkdocstrings_handlers/python/handler.py b/src/mkdocstrings_handlers/python/handler.py index 71594968..169546fd 100644 --- a/src/mkdocstrings_handlers/python/handler.py +++ b/src/mkdocstrings_handlers/python/handler.py @@ -263,9 +263,9 @@ def collect(self, identifier: str, config: Mapping[str, Any]) -> CollectorItem: parser_name = final_config["docstring_style"] parser_options = final_config["docstring_options"] parser = parser_name and Parser(parser_name) - extensions = self.normalize_extension_paths(final_config.get("extensions", [])) if unknown_module: + extensions = self.normalize_extension_paths(final_config.get("extensions", [])) loader = GriffeLoader( extensions=load_extensions(extensions), search_paths=self._paths,