forked from chromaui/learnstorybook.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
135 lines (134 loc) · 3.24 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
const isDeployPreview = process.env.CONTEXT === 'deploy-preview';
const permalinkBase = isDeployPreview ? process.env.DEPLOY_PRIME_URL : 'https://storybook.js.org';
module.exports = {
flags: {
PRESERVE_WEBPACK_CACHE: true,
FAST_DEV: true,
QUERY_ON_DEMAND: true,
},
pathPrefix: `/tutorials`,
siteMetadata: {
title: 'Storybook Tutorials',
description:
'Learn how to develop UIs with components and design systems. Our in-depth frontend guides are created by Storybook maintainers and peer-reviewed by the open source community.',
permalink: `${permalinkBase}/tutorials`,
siteUrl: permalinkBase,
githubUrl: 'https://github.com/chromaui/learnstorybook.com',
contributeUrl: 'https://github.com/chromaui/learnstorybook.com/#contribute',
storybookVersion: 6.1,
tutorialStatus: {
'intro-to-storybook': {
react: {
de: 5.3,
en: 6.1,
es: 5.3,
fr: 6.1,
ja: 6.1,
ko: 6.1,
nl: 5.3,
pt: 5.3,
'zh-CN': 6.1,
'zh-TW': 5.3,
},
'react-native': {
en: 5.3,
es: 5.3,
},
vue: {
en: 6.1,
es: 5.3,
fr: 5.3,
pt: 5.3,
},
angular: {
en: 5.3,
es: 5.3,
pt: 5.3,
},
svelte: {
en: 6.1,
es: 5.3,
},
ember: {
en: 6.1,
},
},
'design-systems-for-developers': {
react: {
en: 6.1,
ko: 6.1,
pt: 5.3,
},
},
'visual-testing-handbook': {
react: {
en: 6.1,
},
},
'create-an-addon': {
react: {
en: 6.1,
},
},
},
},
plugins: [
{
resolve: 'gatsby-plugin-layout',
options: {
component: require.resolve(`./src/components/composite/AppLayout.js`),
},
},
'gatsby-plugin-react-helmet',
{
resolve: `gatsby-source-filesystem`,
options: {
name: `content`,
path: `${__dirname}/content/`,
},
},
`gatsby-plugin-sharp`,
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: [
`gatsby-remark-copy-linked-files`,
{
resolve: `gatsby-remark-images`,
options: {
quality: 100,
maxWidth: 800,
linkImagesToOriginal: false,
},
},
`gatsby-remark-code-titles`,
// A custom plugin in /plugins directory
`gatsby-remark-prefix-links`,
],
},
},
`gatsby-plugin-styled-components`,
`gatsby-plugin-sitemap`,
...(process.env.GOOGLE_ANALYTICS_TRACKING_ID && !isDeployPreview
? [
{
resolve: 'gatsby-plugin-google-analytics',
options: {
trackingId: process.env.GOOGLE_ANALYTICS_TRACKING_ID,
head: true,
},
},
]
: []),
...(process.env.FACEBOOK_PIXEL_ID && !isDeployPreview
? [
{
resolve: 'gatsby-plugin-facebook-pixel',
options: {
pixelId: process.env.FACEBOOK_PIXEL_ID,
},
},
]
: []),
],
};