forked from shimada-toy-box/smarthr-design-system
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
103 lines (102 loc) · 2.87 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
require('dotenv').config({
path: '.env',
})
module.exports = {
siteMetadata: {
title: 'SmartHR Design System',
description: 'SmartHR Design Systemは、だれでも・効率よく・迷わずにSmartHRらしい表現をするためのデザインシステムです。',
siteUrl: 'https://smarthr.design',
author: '@smarthr',
ogimage: '/images/ogp.png',
},
plugins: [
{
resolve: 'gatsby-plugin-google-gtag',
options: {
trackingIds: ['G-HNCBKCD85V'],
pluginConfig: {
head: true,
respectDNT: true,
},
},
},
...(process.env.IS_TYPE_GEN ? ['gatsby-plugin-typegen'] : []),
'gatsby-plugin-react-helmet',
'gatsby-plugin-styled-components',
'gatsby-plugin-sharp',
{
resolve: 'gatsby-plugin-manifest',
options: {
name: 'SmartHR Design System',
short_name: 'SmartHR DS',
start_url: '/',
background_color: '#FFFFFF',
theme_color: '#00C4CC',
icon: 'src/images/favicon.svg',
},
},
{
resolve: 'gatsby-plugin-algolia',
options: require('./gatsby-plugin-algolia-config.js'),
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'articles',
path: `${__dirname}/content/articles`,
},
},
{
resolve: 'gatsby-plugin-mdx',
options: {
extensions: ['.mdx'],
defaultLayouts: {
defaults: require.resolve('./src/templates/article.tsx'),
},
gatsbyRemarkPlugins: [
{ resolve: require.resolve(`./src/plugins/gatsby-remark-index-id-header/index.js`) },
{
resolve: 'gatsby-remark-images',
options: {
quality: 90,
maxWidth: 1024,
disableBgImageOnAlpha: true,
disableBgImage: false,
},
},
{
resolve: `gatsby-remark-image-attributes`,
options: {
dataAttributes: true,
},
},
],
remarkPlugins: [require('remark-emoji')],
},
},
{
resolve: 'gatsby-source-airtable',
options: {
apiKey: process.env.AIRTABLE_API_KEY, // may instead specify via env, see below
concurrency: 5, // default, see using markdown and attachments for more information
tables: [
{
baseId: process.env.AIRTABLE_BASE_ID,
tableName: `用字用語:一覧`,
tableView: `design system表示用`,
},
{
baseId: process.env.AIRTABLE_BASE_ID,
tableName: `用字用語:理由`,
tableView: `design system表示用`,
},
{
baseId: process.env.AIRTABLE_BASE_ID,
tableName: `基本的な考え方や表記`,
tableView: `design system表示用`,
},
],
},
},
],
}