This repository has been archived by the owner on Mar 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
gatsby-config.js
73 lines (70 loc) · 1.91 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
// eslint-disable-next-line @typescript-eslint/no-var-requires
const path = require(`path`);
// eslint-disable-next-line @typescript-eslint/no-var-requires
require("dotenv").config({
path: `.env.${process.env.NODE_ENV || "dev"}`,
});
module.exports = {
plugins: [
`gatsby-plugin-typescript`,
`gatsby-plugin-react-helmet`,
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
{
options: {
matomoUrl: process.env.MATOMO_URL,
siteId: process.env.MATOMO_APPLICATION_ID,
siteUrl: process.env.SITE_URL,
},
resolve: "gatsby-plugin-matomo",
},
{
options: {
defaultLayouts: {
default: require.resolve("./src/layout/index.tsx"),
},
gatsbyRemarkPlugins: [
{
options: {
elements: [`h2`],
enableCustomId: true,
icon: false,
},
resolve: `gatsby-remark-autolink-headers`,
},
],
},
resolve: `gatsby-plugin-mdx`,
},
{
options: {
name: `images`,
path: path.join(__dirname, `static`, `images`),
},
resolve: `gatsby-source-filesystem`,
},
{
// If you want to use styled components you should change the injection order.
options: {
// stylesProvider: {
// injectFirst: true,
// },
},
resolve: "gatsby-plugin-material-ui",
},
// this (optional) plugin enables Progressive Web App + Offline functionality
// To learn more, visit: https://gatsby.dev/offline
// `gatsby-plugin-offline`,
],
siteMetadata: {
author: {
content: "Fabrique Numérique des Ministères Sociaux",
name: "Docs par Archifiltre",
},
description: `Visualisez et améliorez vos arborescences de fichiers !`,
social: {
github: "https://github.com/SocialGouv/archifiltre-docs",
},
title: `Docs par Archifiltre`,
},
};