@@ -255,19 +255,20 @@ def _warn(msg: str, type_: WarningSubtypes) -> None:
255255 progress .console .print (f"[yellow]Warning[/yellow] { msg } [{ type_ .value } ]" )
256256
257257 config = Config ()
258-
258+
259259 # Always use FernRenderer
260260 from autodoc2 .render .fern_ import FernRenderer
261+
261262 render_class = FernRenderer
262-
263+
263264 for mod_name in to_write :
264265 progress .update (task , advance = 1 , description = mod_name )
265266 content = "\n " .join (
266267 render_class (db , config , warn = _warn ).render_item (mod_name )
267268 )
268-
269+
269270 # Use hyphens in filenames to match Fern slugs
270- filename = mod_name .replace ('.' , '-' ).replace ('_' , '-' )
271+ filename = mod_name .replace ("." , "-" ).replace ("_" , "-" )
271272 out_path = output / (filename + render_class .EXTENSION )
272273 paths .append (out_path )
273274 if out_path .exists () and out_path .read_text ("utf8" ) == content :
@@ -286,17 +287,21 @@ def _warn(msg: str, type_: WarningSubtypes) -> None:
286287 # Validate all links
287288 console .print ("[bold]Validating links...[/bold]" )
288289 validation_results = renderer_instance .validate_all_links (str (output ))
289-
290+
290291 if validation_results ["errors" ]:
291- console .print (f"[red]❌ { len (validation_results ['errors' ])} link errors found:[/red]" )
292+ console .print (
293+ f"[red]❌ { len (validation_results ['errors' ])} link errors found:[/red]"
294+ )
292295 for error in validation_results ["errors" ]:
293296 console .print (f" [red]• { error } [/red]" )
294-
297+
295298 if validation_results ["warnings" ]:
296- console .print (f"[yellow]⚠️ { len (validation_results ['warnings' ])} link warnings:[/yellow]" )
299+ console .print (
300+ f"[yellow]⚠️ { len (validation_results ['warnings' ])} link warnings:[/yellow]"
301+ )
297302 for warning in validation_results ["warnings" ]:
298303 console .print (f" [yellow]• { warning } [/yellow]" )
299-
304+
300305 if not validation_results ["errors" ] and not validation_results ["warnings" ]:
301306 console .print ("[green]✅ All links validated successfully![/green]" )
302307
0 commit comments