@@ -29,7 +29,7 @@ export function generateMarkdown(summary, order) {
2929 }
3030 // Process meetingInfo
3131 if ( summary . meetingInfo ) {
32- const { date, name, host, documenter, peoplePresent, purpose, otherMediaLink, meetingVideoLink, mediaLink, miroBoardLink, transcriptLink, workingDocs, timestampedVideo } = summary . meetingInfo ;
32+ const { date, name, host, documenter, peoplePresent, purpose, googleSlides , townHallNumber , otherMediaLink, meetingVideoLink, mediaLink, miroBoardLink, transcriptLink, workingDocs, timestampedVideo } = summary . meetingInfo ;
3333
3434 // Add meeting information to markdown
3535 if ( name ) markdown += `- Type of meeting: ${ name } \n` ;
@@ -41,6 +41,7 @@ export function generateMarkdown(summary, order) {
4141 markdown += '\n' ;
4242 }
4343 if ( purpose ) markdown += `- Purpose: ${ purpose } \n` ;
44+ if ( townHallNumber ) markdown += `- Town Hall Number: ${ townHallNumber } \n` ; //townHallNumber
4445 if ( meetingVideoLink ) markdown += `- Meeting video: ${ meetingVideoLink } \n` ;
4546 if ( mediaLink ) markdown += `- Media link: ${ mediaLink } \n` ;
4647 if ( miroBoardLink ) markdown += `- Miro board: ${ miroBoardLink } \n` ;
@@ -49,7 +50,7 @@ export function generateMarkdown(summary, order) {
4950 //markdown += '\n';
5051
5152 // Process workingDocs
52- if ( workingDocs ) {
53+ if ( workingDocs && Array . isArray ( workingDocs ) && workingDocs . length > 0 ) {
5354 markdown += `- Working Docs:\n` ;
5455 workingDocs . forEach ( doc => {
5556 if ( doc . link ) {
@@ -89,7 +90,12 @@ export function generateMarkdown(summary, order) {
8990 } ) ;
9091
9192 markdown += `\n` ;
92- }
93+ }
94+
95+ if ( googleSlides ) {
96+ markdown += `\n#### Slides:\n` ;
97+ markdown += `{% embed url="${ googleSlides } " %}\n\n` ;
98+ }
9399 }
94100
95101 function getOrdinal ( n ) {
@@ -101,7 +107,7 @@ export function generateMarkdown(summary, order) {
101107 // Generic function to format items
102108 const formatItems = ( title , items , itemType ) => {
103109 let sectionContent = '' ;
104- if ( itemType === 'townHallUpdates' || itemType === 'narrative' || itemType === 'gameRules' ) {
110+ if ( itemType === 'townHallUpdates' || itemType === 'narrative' || itemType === 'gameRules' || itemType === 'townHallSummary' ) {
105111 if ( items . trim ( ) ) { // Check if narrative or gameRules are not empty
106112 sectionContent = `${ items } \n\n` ;
107113 }
@@ -146,6 +152,9 @@ export function generateMarkdown(summary, order) {
146152 case 'townHallUpdates' :
147153 if ( item . townHallUpdates ) formatItems ( "Town Hall Updates" , item . townHallUpdates , 'townHallUpdates' ) ;
148154 break ;
155+ case 'townHallSummary' :
156+ if ( item . townHallSummary ) formatItems ( "Town Hall Summary" , item . townHallSummary , 'townHallSummary' ) ;
157+ break ;
149158 case 'narrative' :
150159 if ( item . narrative ) formatItems ( "Narrative" , item . narrative , 'narrative' ) ;
151160 break ;
0 commit comments