File tree Expand file tree Collapse file tree
mkdocstrings/handlers/crystal Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -317,13 +317,13 @@ def rel_id(self):
317317
318318 args = [arg ["external_name" ] for arg in d ["args" ]]
319319 if d .get ("splat_index" ) is not None :
320- args [d ["splat_index" ]] = "*" + args [ d [ "splat_index" ]]
320+ args [d ["splat_index" ]] = "*"
321321 if d .get ("double_splat" ):
322- args .append ("**" + d [ "double_splat" ][ "external_name" ] )
323- if d .get ("block_arg" ):
322+ args .append ("**" )
323+ if d .get ("block_arg" ) or d . get ( "yields" ) :
324324 args .append ("&" )
325325
326- return self .name + "(" + "," .join (args ) + ")"
326+ return self .name + ( "(" + "," .join (args ) + ")" if args else "" )
327327
328328 @property
329329 def abs_id (self ):
@@ -397,6 +397,10 @@ class DocMacro(DocMethod):
397397
398398 METHOD_ID_SEP = ":"
399399
400+ @property
401+ def rel_id (self ):
402+ return self .name
403+
400404 @property
401405 def kind (self ) -> str :
402406 return "macro"
You can’t perform that action at this time.
0 commit comments