-
Notifications
You must be signed in to change notification settings - Fork 2
/
gatsby-config.js
42 lines (40 loc) · 982 Bytes
/
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
const title = process.env.TITLE || 'Cloud-Native Toolkit';
const trackingId = process.env.ANALYTICS_ID || "";
const gitRepo = process.env.GITHUB_REPOSITORY || 'ibm-garage-cloud/ibm-cloudnative-journey';
const pathPrefix = '/' + gitRepo.split('/')[1].toLowerCase();
module.exports = {
siteMetadata: {
title,
description: 'Cloud-Native Learning Journey',
keywords: 'IBM,cloud-native,learning,activation',
},
pathPrefix,
plugins: [
{
resolve: 'gatsby-theme-carbon',
options: {
isSearchEnabled: true,
repository: {
baseUrl:
`https://github.com/${gitRepo}`,
subDirectory: '/',
},
},
},
'gatsby-transformer-json',
{
resolve: `gatsby-source-filesystem`,
options: {
name: 'data',
path: './src/data'
},
},
{
resolve: `gatsby-plugin-google-analytics`,
options: {
trackingId,
head:true
},
},
]
};