forked from Hacker0x01/docs.hackerone.com
-
Notifications
You must be signed in to change notification settings - Fork 1
/
gatsby-config.js
106 lines (106 loc) · 2.81 KB
/
gatsby-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
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
module.exports = {
siteMetadata: {
title: 'HackerOne Platform Documentation',
siteUrl: 'https://docs.hackerone.com',
description: 'Get instant answers to the most common questions and learn how to use HackerOne.',
author: {
name: 'HackerOne',
},
},
plugins: [
'gatsby-plugin-react-helmet',
'gatsby-plugin-sass',
'gatsby-plugin-sharp',
'gatsby-transformer-sharp',
'gatsby-plugin-sitemap',
'gatsby-plugin-layout',
'gatsby-plugin-slug',
{
resolve: 'gatsby-source-filesystem',
options: {
path: `${__dirname}/docs/`,
name: "docs",
},
},
{
resolve: 'gatsby-plugin-sri',
options: {
hash: 'sha384'
},
},
{
resolve: `gatsby-plugin-csp`,
options: {
disableOnDev: true,
mergeScriptHashes: false,
mergeStyleHashes: false,
mergeDefaultDirectives: true,
directives: {
"script-src": "'self' 'unsafe-eval' 'unsafe-inline' www.google-analytics.com cdn.jsdelivr.net *.algolia.net *.algolianet.com",
"style-src": "'self' 'unsafe-inline' cdn.jsdelivr.net",
"connect-src": "'self' www.google-analytics.com fbhzv4f2nk7b.statuspage.io *.algolia.net *.algolianet.com",
"frame-src": "www.youtube-nocookie.com"
}
}
},
{
resolve: `gatsby-plugin-google-analytics`,
options: {
trackingId: "UA-49905813-10",
head: false,
anonymize: true,
respectDNT: true,
forceSSL: true,
transport: "beacon",
},
},
{
resolve: 'gatsby-transformer-remark',
options: {
plugins: [
{
resolve: 'gatsby-remark-autolink-headers',
options: {
offsetY: 68,
},
},
{
resolve: 'gatsby-remark-images',
options: {
maxWidth: 500,
linkImagesToOriginal: false
},
},
],
},
},
{
resolve: '@fec/gatsby-plugin-advanced-feed',
options: {
feeds: [
{
title: 'HackerOne Platform Changelog',
description: "See what's changed or new in HackerOne.",
link: 'https://docs.hackerone.com/changelog',
id: 'https://docs.hackerone.com/changelog',
createLinkInHead: /^\/changelog/,
match: '^/changelog/',
output: {
rss2: '/changelog/rss.xml',
atom: '/changelog/atom.xml',
json: '/changelog/feed.json',
},
},
],
},
},
{
resolve: 'gatsby-plugin-algolia-docsearch',
options: {
apiKey: "acfb7def12803db2cd4ac0539b2b571a",
indexName: "hackerone",
inputSelector: "#algolia-doc-search",
},
},
],
};