forked from stebrech/accessible-pdf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
114 lines (114 loc) · 2.7 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
module.exports = {
siteMetadata: {
title: 'Accessible PDF',
description: 'How to create PDF/UA compliant documents',
author: 'Stefan Brechbühl',
siteUrl: 'https://accessible-pdf.info'
},
plugins: [
`gatsby-plugin-image`,
`gatsby-plugin-sharp`,
`gatsby-transformer-sharp`,
`gatsby-remark-images`,
`gatsby-plugin-react-helmet`,
`gatsby-plugin-anchor-links`,
`gatsby-plugin-sitemap`,
`gatsby-plugin-catch-links`,
`gatsby-plugin-netlify`,
{
resolve: `gatsby-plugin-mdx`,
options: {
gatsbyRemarkPlugins: [
`gatsby-remark-responsive-iframe`,
{
resolve: `gatsby-remark-autolink-headers`,
options: {
icon: false,
}
},
{
resolve: `gatsby-remark-images`,
options: {
maxWidth: 1080,
quality: 90,
linkImagesToOriginal: false,
}
},
{
resolve: `gatsby-remark-table-of-contents`,
options: {
exclude: "Table of Contents",
tight: false,
fromHeading: 2,
toHeading: 3,
className: "toc"
}
}
],
}
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `pages`,
path: `${__dirname}/src/pages`
}
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `basics`,
path: `${__dirname}/content/basics`
}
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `tutorials`,
path: `${__dirname}/content/tutorials`
}
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `pages`,
path: `${__dirname}/content/pages`
}
},
{
resolve: `gatsby-theme-i18n`,
options: {
defaultLang: `en`,
configPath: require.resolve(`./i18n/config.json`),
locales: `en de`,
},
},
{
resolve: `gatsby-theme-i18n-react-intl`,
options: {
defaultLocale: `./i18n/en.json`,
},
},
{
resolve: 'gatsby-plugin-matomo',
options: {
siteId: '2',
matomoUrl: 'https://stats.pixelstrol.ch',
siteUrl: 'https://accessible-pdf.info'
}
},
{
resolve: `gatsby-plugin-manifest`,
options: {
name: 'Accessible PDF',
short_name: 'PDFa11y',
start_url: '/',
background_color: '#f1f3f5',
theme_color: '#099268',
display: 'minimal-ui',
icon: 'static/images/logo_accessiblePDF_square.png',
},
},
'gatsby-plugin-offline',
],
}