@@ -22,6 +22,7 @@ const AEP_LOC = process.env.AEP_LOCATION || "";
2222const AEP_LINTER_LOC = process . env . AEP_LINTER_LOC || "" ;
2323const AEP_OPENAPI_LINTER_LOC = process . env . AEP_OPENAPI_LINTER_LOC || "" ;
2424const AEP_COMPONENTS = process . env . AEP_COMPONENTS_LOC || "" ;
25+ const AEP_EDITION_2026 = process . env . AEP_EDITION_2026 || "" ;
2526
2627// Logging functions
2728function logFolderDetection ( ) {
@@ -79,6 +80,19 @@ function logFolderDetection() {
7980 ) ;
8081 }
8182
83+ if ( AEP_EDITION_2026 ) {
84+ console . log ( `✓ AEP Edition 2026 folder found: ${ AEP_EDITION_2026 } ` ) ;
85+ if ( fs . existsSync ( AEP_EDITION_2026 ) ) {
86+ console . log ( ` - Path exists and is accessible` ) ;
87+ } else {
88+ console . log ( ` - ⚠️ Path does not exist` ) ;
89+ }
90+ } else {
91+ console . log (
92+ `✗ AEP Edition 2026 folder not configured (AEP_EDITION_2026 environment variable)` ,
93+ ) ;
94+ }
95+
8296 console . log ( "" ) ;
8397}
8498
@@ -642,4 +656,30 @@ if (AEP_COMPONENTS != "") {
642656 }
643657}
644658
659+ if ( AEP_EDITION_2026 != "" ) {
660+ console . log ( "=== Processing AEP Edition 2026 ===" ) ;
661+ // Build out AEPs from the 2026 edition
662+ const aep_folders_2026 = await getFolders (
663+ path . join ( AEP_EDITION_2026 , "aep/general/" ) ,
664+ ) ;
665+ for ( var folder of aep_folders_2026 ) {
666+ try {
667+ const files = readAEP ( folder ) ;
668+ const aep = buildAEP ( files , folder ) ;
669+
670+ // Write to aep-2026 directory instead of root
671+ aep . contents . frontmatter . slug = aep . id . toString ( ) ;
672+ const filePath = path . join ( "src/content/docs/aep-2026" , `${ aep . id } .mdx` ) ;
673+ writeFile ( filePath , aep . contents . build ( ) ) ;
674+
675+ console . log ( `✓ Processed AEP-${ aep . id } for 2026 edition` ) ;
676+ } catch ( e ) {
677+ console . log ( `AEP ${ folder } failed with error ${ e } ` ) ;
678+ }
679+ }
680+ console . log ( "✅ AEP Edition 2026 processing complete\n" ) ;
681+ } else {
682+ console . log ( "ℹ️ AEP Edition 2026 repo not configured, skipping...\n" ) ;
683+ }
684+
645685writeSidebar ( sidebar , "sidebar.json" ) ;
0 commit comments