forked from prisma/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlostpixel.config.js
40 lines (37 loc) · 1 KB
/
lostpixel.config.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
module.exports = {
pageShots: {
pagesJsonUrl: 'http://172.17.0.1:9000/lost-pixel.json',
baseUrl: 'http://172.17.0.1:9000',
mask: [{ selector: 'span.gatsby-resp-image-background-image' }],
},
lostPixelProjectId: 'clb5ek3mm1772001qqg7yban38',
apiKey: process.env.LOST_PIXEL_API_KEY,
compareConcurrency: 10,
shotConcurrency: 10,
threshold: 10,
beforeScreenshot: async (page) => {
await page.addStyleTag({
content: `iframe {
visibility: hidden;
}
/* do not show underline animation */
#toc-holder a {
background-size: 0 !important;
background-image: none !important;
}
/* skip image display within section */
section img {
visibility: hidden;
}
/* hide cookie banner */
#onetrust-consent-sdk {
display: none;
}
/* reset menu item alignment */
#sidebar-holder li a {
vertical-align: baseline;
}
`,
})
},
}