Skip to content

Commit 4a3907b

Browse files
committed
Merge branch 'develop-custom-head-event' into develop
2 parents 37cf99f + 2732280 commit 4a3907b

File tree

18 files changed

+100
-18
lines changed

18 files changed

+100
-18
lines changed

cloud/functions/src/crawlers/bdxio/crawler.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ export const BDXIO_CRAWLER: CrawlerKind<typeof BDXIO_PARSER> = {
268268
title: descriptor.title,
269269
days: descriptor.days as Day[],
270270
headingTitle: descriptor.headingTitle,
271+
headingSubTitle: descriptor.headingSubTitle,
271272
headingBackground: descriptor.headingBackground,
272273
description: descriptor.description,
273274
keywords: descriptor.keywords,

cloud/functions/src/crawlers/camping-des-speakers/crawler.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ export const CAMPING_DES_SPEAKERS_CRAWLER: CrawlerKind<typeof CAMPING_DES_SPEAKE
145145
title: descriptor.title,
146146
days: descriptor.days,
147147
headingTitle: descriptor.headingTitle,
148+
headingSubTitle: descriptor.headingSubTitle,
148149
headingBackground: descriptor.headingBackground,
149150
description: descriptor.description || "",
150151
keywords: descriptor.keywords,

cloud/functions/src/crawlers/codeurs-en-seine/crawler.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ export const CODEURS_EN_SEINE_CRAWLER: CrawlerKind<typeof CODEURS_EN_SEINE_PARSE
264264
title: descriptor.title,
265265
days: descriptor.days as Day[],
266266
headingTitle: descriptor.headingTitle,
267+
headingSubTitle: descriptor.headingSubTitle,
267268
headingBackground: descriptor.headingBackground,
268269
description: descriptor.description,
269270
keywords: descriptor.keywords,

cloud/functions/src/crawlers/crawler-parsers.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,17 @@ export const EVENT_THEME_PARSER = z.object({
5454
secondaryContrastHex: HEX_COLOR_PARSER,
5555
tertiaryHex: HEX_COLOR_PARSER,
5656
tertiaryContrastHex: HEX_COLOR_PARSER
57-
})
57+
}),
58+
headingCustomStyles: z.object({
59+
title: z.string().nullable(),
60+
subTitle: z.string().nullable(),
61+
banner: z.string().nullable(),
62+
}).optional().nullable().default(null),
63+
headingSrcSet: z.array(z.object({
64+
url: z.string(),
65+
descriptor: z.string().regex(/\d(?:w|x)/)
66+
})).min(1).optional().nullable().default(null),
67+
customGoogleFontFamilies: z.array(z.string()).optional().nullable().default(null),
5868
})
5969

6070
export const SOCIAL_MEDIA_TYPE = z.union([
@@ -178,6 +188,7 @@ export const EVENT_FEATURES_CONFIG_PARSER = z.object({
178188

179189
export const EVENT_DESCRIPTOR_PARSER = LISTABLE_EVENT_PARSER.extend({
180190
headingTitle: z.string(),
191+
headingSubTitle: z.string().optional().nullable().default(null),
181192
headingBackground: z.string().optional().nullable().default(null),
182193
features: EVENT_FEATURES_CONFIG_PARSER,
183194
talkFormats: z.array(THEMABLE_TALK_FORMAT_PARSER),

cloud/functions/src/crawlers/devoxx-scala/crawler.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@ export const DEVOXX_SCALA_CRAWLER: CrawlerKind<typeof DEVOXX_SCALA_DESCRIPTOR_PA
284284
const eventDescriptor: FullEvent['conferenceDescriptor'] = {
285285
...eventInfo,
286286
headingTitle: descriptor.headingTitle,
287+
headingSubTitle: descriptor.headingSubTitle,
287288
headingBackground: descriptor.headingBackground,
288289
features: descriptor.features,
289290
talkFormats: Array.from(themedTalkFormatsByIdAndDuration.values()),

cloud/functions/src/crawlers/devoxx/crawler.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ Please, unless event id is made configurable at cfp.dev level, you should rather
175175
const eventDescriptor: FullEvent['conferenceDescriptor'] = {
176176
...eventInfo,
177177
headingTitle: descriptor.headingTitle,
178+
headingSubTitle: descriptor.headingSubTitle,
178179
headingBackground: descriptor.headingBackground,
179180
features: descriptor.features,
180181
talkFormats: eventTalkFormats,

cloud/functions/src/crawlers/jugsummercamp/crawler.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ export const JUG_SUMMERCAMP_CRAWLER: CrawlerKind<typeof JUG_SUMMERCAMP_PARSER> =
135135
title: descriptor.title,
136136
days: descriptor.days,
137137
headingTitle: descriptor.headingTitle,
138+
headingSubTitle: descriptor.headingSubTitle,
138139
headingBackground: descriptor.headingBackground,
139140
description: descriptor.description || "",
140141
keywords: descriptor.keywords,

cloud/functions/src/crawlers/la-product-conf/crawler.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,7 @@ export const LA_PRODUCT_CONF_CRAWLER: CrawlerKind<typeof LA_PRODUCT_CONF_DESCRIP
248248
title: descriptor.title,
249249
days: descriptor.days as Day[],
250250
headingTitle: descriptor.headingTitle,
251+
headingSubTitle: descriptor.headingSubTitle,
251252
headingBackground: descriptor.headingBackground,
252253
description: descriptor.description,
253254
keywords: descriptor.keywords,

cloud/functions/src/crawlers/openplanner/crawler.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,7 @@ export const OPENPLANNER_CRAWLER: CrawlerKind<typeof OPENPLANNER_DESCRIPTOR_PARS
302302
logoUrl: descriptor.logoUrl || openPlannerSchedule.logoUrl,
303303
backgroundUrl: descriptor.backgroundUrl || openPlannerSchedule.backgroundUrl,
304304
headingTitle: descriptor.headingTitle || openPlannerSchedule.headingTitle,
305+
headingSubTitle: descriptor.headingSubTitle || openPlannerSchedule.headingSubTitle,
305306
headingBackground: descriptor.headingBackground || openPlannerSchedule.headingBackground,
306307
talkFormats: formats,
307308
talkTracks: tracks,

cloud/functions/src/crawlers/single-file/crawler.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ export const SINGLE_FILE_CRAWLER: CrawlerKind<typeof SINGLE_FILE_DESCRIPTOR_PARS
143143
conferenceDescriptor: {
144144
...eventInfo,
145145
headingTitle: descriptor.headingTitle,
146+
headingSubTitle: descriptor.headingSubTitle,
146147
headingBackground: descriptor.headingBackground,
147148
features: descriptor.features,
148149
talkFormats: descriptor.talkFormats,

0 commit comments

Comments
 (0)