-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
93 lines (92 loc) · 2.58 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
/* eslint-disable @typescript-eslint/no-var-requires */
const path = require('path');
const remarkSlug = require('remark-slug');
module.exports = {
siteMetadata: {
title: 'Gatsby Docs',
description: 'Prisma CRUD system generator for database-backed GraphQL servers.',
author: 'Ahmed Elywa',
},
plugins: [
'gatsby-plugin-styled-components',
{
resolve: `gatsby-plugin-layout`,
options: {
component: require.resolve(`./src/Layouts/index.tsx`),
},
},
'gatsby-plugin-typescript',
{
resolve: 'gatsby-plugin-mdx',
options: {
decks: [],
defaultLayouts: {
default: path.resolve('./src/components/MdxLayout.tsx'),
},
extensions: ['.mdx', '.md'],
remarkPlugins: [remarkSlug],
gatsbyRemarkPlugins: [
{
resolve: 'gatsby-plugin-mdx-code-demo-oah',
options: {
demoComponent: path.resolve('./src/components/ExampleLayout'),
},
},
{
resolve: 'gatsby-remark-prismjs',
options: {
classPrefix: 'language-',
inlineCodeMarker: {
tsx: 'tsx',
prisma: 'prisma',
},
aliases: {},
languageExtensions: [
{
language: 'prisma',
extend: 'javascript',
definition: {
keyword: /(enum|model|generator|datasource)/,
'class-name': {
pattern: /^(\w+)(\s)(\w+)|(\s)[A-Z](\w+)/gm,
lookbehind: true,
},
},
insertBefore: {
'class-name': {
annotation: {
pattern: /(^|[^.])@+\w+/,
lookbehind: true,
},
constant: /\b[A-Z](?:[A-Z_]|\dx?)*\b/,
},
},
},
],
},
},
],
},
},
'gatsby-plugin-react-helmet',
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'images',
path: `${__dirname}/src/images`,
},
},
'gatsby-transformer-sharp',
'gatsby-plugin-sharp',
{
resolve: 'gatsby-plugin-manifest',
options: {
name: 'oah-ui',
short_name: 'OAH',
start_url: '/dashboard',
display: 'minimal-ui',
icon: 'src/images/OAH.png', // This path is relative to the root of the site.
},
},
],
};