-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtest-screenshot.js
68 lines (66 loc) · 1.98 KB
/
test-screenshot.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
const path = require('path');
const { screenshot } = require('./gatsby/generate-image');
/*
This file is used for development for the SEO image generation only.
*/
(async function run() {
try {
await screenshot(
{
nodes: [
// {
// title: 'TypeScript for React Developer',
// slug: 'c',
// dateTime: 'Sat, 14 Dec 2019 9:30 AM',
// venue: 'RiggitPlus',
// instructors: [
// {
// image: 'https://github.com/malcolm-kee.png',
// name: 'Malcolm Kee',
// },
// ],
// icon: 'https://malcolm-misc.s3-ap-southeast-1.amazonaws.com/durian-react.png',
// },
{
title: 'KL React Test Meetup 2022',
slug: 'c',
icon: 'https://malcolm-misc.s3-ap-southeast-1.amazonaws.com/durian-react.png',
dateTime: 'Sat, 14 August 2022 9:30 AM',
venue: 'My Home',
talks: [
{
title: 'Lorem ipsum, dolor sit amet consectetur adipisicing',
speakerName: 'Malcolm Kee',
speakerImages: ['https://github.com/malcolm-kee.png'],
},
{
title: 'Microfrontend with React',
speakerName: 'Malcolm Kee and Matthew Yong',
speakerImages: [
'https://github.com/malcolm-kee.png',
'https://github.com/matt-writes-code.png',
],
},
{
title: 'Getting Started with Web Development',
speakerName: 'Awesome Speaker',
},
],
},
],
reporter: console,
skipIfExists: false,
},
{
template: path.resolve(
__dirname,
'og-image-template',
'meetup-compact.html'
),
}
);
} catch (e) {
console.error(`caught error`);
console.error(e);
}
})();