Add Exports in Docs

This commit is contained in:
Josef 2026-03-02 19:36:10 +01:00
parent 5876e44e5d
commit d0662fe91c
1 changed files with 26 additions and 1 deletions

View File

@ -51,7 +51,7 @@ namespace Rokojori.DocGenerator
foreach ( ExportAttribute export in exportAttributes )
{
if ( export.Hint == PropertyHint.None)
if ( export.Hint == PropertyHint.None )
{
result.Add( "Export" );
}
@ -65,6 +65,31 @@ namespace Rokojori.DocGenerator
}
}
var exportGroup = fieldInfo.GetCustomAttributes( typeof(ExportGroupAttribute), false);
foreach ( ExportGroupAttribute export in exportGroup )
{
var groupName = "ExportGroup( \"" + export.Name + "\"" ;
if ( export.Prefix != null )
{
groupName += ", \"" + export.Prefix + "\"";
}
groupName +=" )";
result.Add( groupName );
}
var exportCategory = fieldInfo.GetCustomAttributes( typeof(ExportCategoryAttribute), false);
foreach ( ExportCategoryAttribute export in exportCategory )
{
var categoryName = "ExportCategory( \"" + export.Name + "\" )" ;
result.Add( categoryName );
}
return result;
}