Add Exports in Docs
This commit is contained in:
parent
5876e44e5d
commit
d0662fe91c
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue