11from __future__ import annotations
22
3- from collections .abc import Mapping , Sequence
3+ from collections .abc import Mapping , MutableMapping , Sequence
44from typing import Any
55
6+ from markdown import Extension
7+ from mkdocs .config .defaults import MkDocsConfig
68from mkdocstrings import BaseHandler , HandlerOptions
79
810from . import inventory
911from .collector import CrystalCollector
1012from .renderer import CrystalRenderer
1113
12- __version__ = "0.3.8 "
14+ __version__ = "0.3.9 "
1315
1416
1517class CrystalHandler (CrystalCollector , CrystalRenderer , BaseHandler ):
@@ -22,15 +24,17 @@ def __init__(
2224 * ,
2325 theme : str ,
2426 custom_templates : str | None = None ,
25- config : Mapping [str , Any ] | None = None ,
26- ** kwargs : Any ,
27+ mdx : Sequence [str | Extension ],
28+ mdx_config : Mapping [str , Any ],
29+ handler_config : MutableMapping [str , Any ],
30+ tool_config : MkDocsConfig ,
2731 ) -> None :
28- config = config or {}
29- BaseHandler .__init__ (self , theme = theme , custom_templates = custom_templates , ** kwargs )
32+ BaseHandler .__init__ (
33+ self , theme = theme , custom_templates = custom_templates , mdx = mdx , mdx_config = mdx_config
34+ )
3035 CrystalCollector .__init__ (
3136 self ,
32- crystal_docs_flags = config .get ("crystal_docs_flags" , ()),
33- source_locations = config .get ("source_locations" , {}),
37+ ** handler_config ,
3438 )
3539
3640 def get_options (self , local_options : Mapping [str , Any ]) -> HandlerOptions :
0 commit comments