forked from chromaui/learnstorybook.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
132 lines (131 loc) · 3.07 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
const isDeployPreview = process.env.CONTEXT === 'deploy-preview';
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: 6.5,
tutorialStatus: {
'intro-to-storybook': {
react: {
de: 5.3,
en: 6.5,
es: 5.3,
fr: 6.1,
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: 5.3,
es: 5.3,
},
vue: {
en: 6.5,
es: 6.1,
fr: 5.3,
pt: 5.3,
'zh-CN': 6.3,
},
angular: {
en: 6.5,
ja: 6.3,
es: 6.3,
pt: 5.3,
},
svelte: {
en: 6.5,
es: 5.3,
},
ember: {
en: 6.3,
},
},
'design-systems-for-developers': {
react: {
en: 6.5,
ko: 6.4,
pt: 5.3,
'zh-CN': 6.3,
},
},
'visual-testing-handbook': {
react: {
en: 6.5,
es: 6.5,
ko: 6.5,
},
},
'create-an-addon': {
react: {
en: 6.5,
fr: 6.5,
es: 6.5,
ko: 6.5,
},
},
'ui-testing-handbook': {
react: {
en: 6.5,
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`,
...(process.env.GOOGLE_ANALYTICS_TRACKING_ID && !isDeployPreview
? [
{
resolve: 'gatsby-plugin-google-analytics',
options: {
trackingId: process.env.GOOGLE_ANALYTICS_TRACKING_ID,
head: true,
},
},
]
: []),
],
};