-
Notifications
You must be signed in to change notification settings - Fork 439
/
gatsby-config.js
149 lines (148 loc) · 3.54 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
const isDeployPreview = process.env.CONTEXT === 'deploy-preview';
const isProduction = process.env.CONTEXT === 'production';
const permalinkBase = isDeployPreview ? process.env.DEPLOY_PRIME_URL : 'https://storybook.js.org';
module.exports = {
flags: {
FAST_DEV: 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: 8.3,
tutorialStatus: {
'intro-to-storybook': {
react: {
de: 5.3,
en: 8.3,
es: 6.5,
fr: 6.5,
it: 7.6,
ja: 6.5,
ko: 6.4,
nl: 5.3,
pt: 5.3,
'zh-CN': 6.1,
'zh-TW': 6.3,
ar: 6.3,
},
'react-native': {
en: 8.1,
es: 5.3,
pt: 7.6,
},
vue: {
en: 8.3,
es: 6.1,
fr: 5.3,
pt: 5.3,
it: 7.6,
'zh-CN': 6.5,
},
angular: {
en: 8.3,
ja: 6.3,
es: 6.3,
pt: 5.3,
},
svelte: {
en: 8.3,
es: 5.3,
},
ember: {
en: 6.3,
},
},
'design-systems-for-developers': {
react: {
en: 7.6,
ko: 6.4,
pt: 5.3,
'zh-CN': 6.3,
ja: 6.4,
},
},
'visual-testing-handbook': {
react: {
en: 8.3,
es: 6.5,
ko: 6.5,
},
},
'ui-testing-handbook': {
react: {
en: 8.3,
ko: 6.5,
},
},
},
},
plugins: [
'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-code-buttons-with-diff-support`,
`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-sitemap`,
...(isProduction
? [
{
resolve: `gatsby-plugin-plausible`,
options: {
domain: 'storybook.js.org',
},
},
]
: []),
...(process.env.GOOGLE_ANALYTICS_TRACKING_ID && !isDeployPreview
? [
{
resolve: 'gatsby-plugin-google-analytics',
options: {
trackingId: process.env.GOOGLE_ANALYTICS_TRACKING_ID,
head: true,
},
},
]
: []),
...(process.env.GOOGLE_TAG_TRACKING_ID && !isDeployPreview
? [
{
resolve: `gatsby-plugin-google-gtag`,
options: {
trackingIds: [process.env.GOOGLE_TAG_TRACKING_ID],
},
},
]
: []),
],
};