@@ -108,10 +108,10 @@ def __init__(self, *, base_dir: Path, encoding: str, **kwargs: Any) -> None:
108
108
109
109
def get_options (self , local_options : Mapping [str , Any ]) -> Dict [str , Any ]:
110
110
"""Combine the default options with the local options.
111
-
111
+
112
112
Arguments:
113
113
local_options: The options provided in Markdown pages.
114
-
114
+
115
115
Returns:
116
116
The combined options.
117
117
"""
@@ -184,13 +184,13 @@ def update_env(self, config: Dict[Any, Any]) -> None:
184
184
185
185
def get_aliases (self , identifier : str ) -> Tuple [str , ...]:
186
186
"""Get the aliases of the given identifier.
187
-
187
+
188
188
Aliases are used to register secondary URLs in mkdocs-autorefs,
189
189
to make sure cross-references work with any location of the same object.
190
-
190
+
191
191
Arguments:
192
192
identifier: The identifier to get aliases for.
193
-
193
+
194
194
Returns:
195
195
A tuple of aliases for the given identifier.
196
196
"""
@@ -201,7 +201,12 @@ def get_aliases(self, identifier: str) -> Tuple[str, ...]:
201
201
return data .path .as_posix (), * (p .signature .name for p in data .procedures )
202
202
203
203
204
- def get_handler (* , encoding : str = "latin1" , tool_config : MkDocsConfig | None = None , ** kwargs : Any ) -> VbaHandler :
204
+ def get_handler (
205
+ * ,
206
+ encoding : str = "latin1" ,
207
+ tool_config : MkDocsConfig | None = None ,
208
+ ** kwargs : Any ,
209
+ ) -> VbaHandler :
205
210
"""
206
211
Get a new `VbaHandler`.
207
212
@@ -216,5 +221,9 @@ def get_handler(*, encoding: str = "latin1", tool_config: MkDocsConfig | None =
216
221
Returns:
217
222
An instance of `VbaHandler`.
218
223
"""
219
- base_dir = Path (getattr (tool_config , "config_file_path" , None ) or "./mkdocs.yml" ).resolve ().parent
224
+ base_dir = (
225
+ Path (getattr (tool_config , "config_file_path" , None ) or "./mkdocs.yml" )
226
+ .resolve ()
227
+ .parent
228
+ )
220
229
return VbaHandler (base_dir = base_dir , encoding = encoding , ** kwargs )
0 commit comments