File tree 1 file changed +9
-0
lines changed
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -308,6 +308,7 @@ def display_class(buf: Buf, fnc: dict):
308
308
def main ():
309
309
structures = {}
310
310
files = []
311
+ summary_file = []
311
312
# Scan
312
313
for mod_full_filepath in glob .glob (os .path .join (LIBS_DIR , '**' , '*.yaka' ), recursive = True ):
313
314
# print("<!-- parsing", Colors.cyan(mod_full_filepath), "-->")
@@ -337,32 +338,40 @@ def main():
337
338
if header in PREFIXES :
338
339
print (PREFIXES [header ])
339
340
print (Colors .cyan ("## " ) + Colors .blue (yaksha_mod ))
341
+ summary_file .append (header )
340
342
print ("```yaksha" )
341
343
342
344
for f in structures [yaksha_mod ]["macros" ]:
343
345
buf = Buf ()
344
346
display_mac (buf , f )
345
347
display_comment (buf , f )
346
348
print (buf .build_color ())
349
+ summary_file .append (buf .build ())
347
350
348
351
for f in structures [yaksha_mod ]["global_consts" ]:
349
352
buf = Buf ()
350
353
display_param (buf , f )
351
354
display_comment (buf , f )
352
355
print (buf .build_color ())
356
+ summary_file .append (buf .build ())
353
357
354
358
for f in structures [yaksha_mod ]["classes" ]:
355
359
buf = Buf ()
356
360
display_class (buf , f )
357
361
print (buf .build_color ())
362
+ summary_file .append (buf .build ())
358
363
359
364
for f in structures [yaksha_mod ]["functions" ]:
360
365
buf = Buf ()
361
366
display_function (buf , f )
362
367
print (buf .build_color ())
368
+ summary_file .append (buf .build ())
363
369
364
370
print ("```" )
365
371
print ()
366
372
373
+ with open (os .path .join (OUTPUT_DIR , "docs.yaka" ), "w+" , encoding = "utf-8" ) as h :
374
+ h .write ("\n " .join (summary_file ))
375
+
367
376
if __name__ == "__main__" :
368
377
main ()
You can’t perform that action at this time.
0 commit comments