forked from aws-otel/aws-otel.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
171 lines (170 loc) · 4.7 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
require("dotenv").config({
path: `.env.${process.env.NODE_ENV}`,
})
module.exports = {
// pathPrefix: "/",
siteMetadata: {
title: 'AWS Open Distro for OpenTelemetry',
siteTitle: `AWS Open Distro for OpenTelemetry`,
defaultTitle: `AWS Open Distro for OpenTelemetry`,
siteTitleShort: `AWS Distro OpenTelemetry`,
siteDescription: `Technical documentation for AWS Open Distro for OpenTelemetry`,
siteAuthor: `Amazon AWS Observability`,
// siteImage: `/banner.png`,
siteLanguage: `en`,
themeColor: `#F5A880`,
basePath: `/`,
siteUrl: `https://www.aws-otel.github.io`,
},
plugins: [
{
resolve: `gatsby-plugin-google-analytics`,
options: {
trackingId: 'UA-180925204-1',
}
},
{
resolve: `gatsby-source-github-contributors`,
options: {
repo: "aws-observability/aws-otel-test-framework",
token: process.env.GH_API_KEY,
}
},
{
resolve: `gatsby-source-github-contributors`,
options: {
repo: "aws-observability/aws-otel-collector",
token: process.env.GH_API_KEY,
}
},
{
resolve: `gatsby-source-github-contributors`,
options: {
repo: "aws-observability/aws-otel-java-instrumentation",
token: process.env.GH_API_KEY,
}
},
{
resolve: `gatsby-source-github-contributors`,
options: {
repo: "aws-observability/aws-otel-js",
token: process.env.GH_API_KEY,
}
},
{
resolve: `gatsby-source-github-contributors`,
options: {
repo: "aws-observability/aws-otel-community",
token: process.env.GH_API_KEY,
}
},
{
resolve: `gatsby-source-github-contributors`,
options: {
repo: "aws-observability/aws-otel-playground",
token: process.env.GH_API_KEY,
}
},
`gatsby-transformer-yaml`,
{
resolve: `gatsby-source-filesystem`,
options: {
path: `./src/content/Announcements`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
path: `./src/content/BlogPosts`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
path: `./src/content/Downloads`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
path: `${__dirname}/src/content/`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
path: `${__dirname}/src/docs/`,
},
},
{
resolve: `@gatsby-contrib/gatsby-plugin-elasticlunr-search`,
options: {
// Fields to index
fields: [`title`, `description`, `path`, `html`, `searchIndex`],
// How to resolve each field`s value for a supported node type
resolvers: {
// For any node of type MarkdownRemark, list how to resolve the fields` values
Mdx: {
title: node => node.frontmatter.title,
description: node => node.frontmatter.description,
path: node => node.frontmatter.path,
html: node => node.internal.content,
},
SiteContentYaml: {
title: node => node.title,
description: node => node.description,
path: node => node.path,
searchIndex: node => node.searchIndex,
},
BlogPostsYaml: {
title: node => node.title,
description: node => node.description,
path: node => node.path,
searchIndex: node => node.searchIndex,
},
AnnouncementsYaml: {
title: node => node.title,
description: node => node.description,
path: node => node.path,
searchIndex: node => node.searchIndex,
}
},
},
},
'gatsby-plugin-resolve-src',
'gatsby-plugin-react-helmet',
'gatsby-plugin-offline',
'gatsby-plugin-sass',
'gatsby-plugin-material-ui',
{
resolve: `@rocketseat/gatsby-theme-docs`,
options: {
basePath: `/docs`,
configPath: `src/config`,
docsPath: `src/docs`,
githubUrl: `https://github.com/rocketseat/gatsby-themes`,
baseDir: `examples/gatsby-theme-docs`,
},
},
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `AWS Distro for OpenTelemetry`,
short_name: `AWS Distro for OTel`,
start_url: `/`,
background_color: `#ffffff`,
display: `standalone`,
icon: `static/favicon-32x32.png`,
},
},
`gatsby-plugin-sitemap`,
`gatsby-plugin-remove-trailing-slashes`,
{
resolve: `gatsby-plugin-canonical-urls`,
options: {
siteUrl: `https://aws-otel.github.io/`,
},
},
`gatsby-plugin-offline`,
],
};