1- import { UnparsedApexBundle , UnparsedCustomObjectBundle , UnparsedSourceBundle } from '../../shared/types' ;
1+ import {
2+ UnparsedApexBundle ,
3+ UnparsedCustomObjectBundle ,
4+ UnparsedSourceBundle ,
5+ UnparsedTriggerBundle ,
6+ } from '../../shared/types' ;
27import { generateDocs as gen , MarkdownGeneratorConfig } from '../generate-docs' ;
38import { referenceGuideTemplate } from '../templates/reference-guide' ;
49
@@ -12,6 +17,19 @@ export function unparsedApexBundleFromRawString(raw: string, rawMetadata?: strin
1217 } ;
1318}
1419
20+ export function unparsedTriggerBundleFromRawString ( meta : {
21+ rawContent : string ;
22+ filePath : string ;
23+ name ?: string ;
24+ } ) : UnparsedTriggerBundle {
25+ return {
26+ type : 'trigger' ,
27+ name : meta . name ?? 'TestTrigger' ,
28+ filePath : meta . filePath ,
29+ content : meta . rawContent ,
30+ } ;
31+ }
32+
1533export function unparsedObjectBundleFromRawString ( meta : {
1634 rawContent : string ;
1735 filePath : string ;
@@ -32,6 +50,7 @@ export function generateDocs(bundles: UnparsedSourceBundle[], config?: Partial<M
3250 customObjectVisibility : [ 'public' ] ,
3351 defaultGroupName : 'Miscellaneous' ,
3452 customObjectsGroupName : 'Custom Objects' ,
53+ triggersGroupName : 'Triggers' ,
3554 sortAlphabetically : false ,
3655 referenceGuideTemplate : referenceGuideTemplate ,
3756 linkingStrategy : 'relative' ,
0 commit comments