@@ -46,38 +46,6 @@ type BannerType = {
4646// ];
4747
4848const BANNERS : BannerType [ ] = [
49- {
50- // Match the homepage
51- appearsOn : [ '^/$' ] ,
52- text : 'This is a banner for the homepage' ,
53- linkURL : 'https://sentry.io/' ,
54- linkText : 'RSVP' ,
55- } ,
56- // javascript -> Astro example
57- {
58- appearsOn : [ '^/platforms/javascript/guides/astro/' ] ,
59- text : 'This banner appears on the Astro guide' ,
60- linkURL : 'https://sentry.io/thought-leadership' ,
61- linkText : 'Get webinarly' ,
62- } ,
63- // example with an expiration date
64- {
65- appearsOn : [ '^/platforms/javascript/guides/aws-lambda/' ] ,
66- text : "This banner should appear on the AWS Lambda guide, but won't because it's expired" ,
67- linkURL : 'https://sentry.io/thought-leadership' ,
68- linkText : 'Get webinarly' ,
69- expiresOn : '2024-01-01T00:00:00Z' ,
70- } ,
71- // generic javascript example
72- {
73- // we can constrain it to the javascript platform page only
74- // by adding a more specific regex ie '^/platforms/javascript/$'
75- appearsOn : [ '^/platforms/javascript/' ] ,
76- text : 'This banner appears on the JavaScript platform page and all subpages' ,
77- linkURL : 'https://sentry.io/thought-leadership' ,
78- linkText : 'Get webinarly' ,
79- } ,
80-
8149 /// ⚠️ KEEP THIS LAST BANNER ACTIVE FOR DOCUMENTATION
8250 // check it out on `/contributing/pages/banners/`
8351 {
0 commit comments