-
Notifications
You must be signed in to change notification settings - Fork 3
/
gatsby-config.js
118 lines (115 loc) · 3.86 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
const path = require("path");
const { isNil } = require("lodash");
module.exports = {
siteMetadata: {
title: `UnitTestBot`,
description: `Unit tests generation tool`,
author: `UnitTestBot`,
backend_host: `https://utbot.org`, // `http://127.0.0.1:10000`,
github_utbot: `https://github.com/UnitTestBot`,
discussions_utbot: `https://github.com/orgs/UnitTestBot/discussions`,
download_java_from_github_link: "",
download_java_marketplace_link: "",
donwload_cpp_from_github_link: "",
demo_video_java_link: "",
demo_video_cpp_link: "",
},
plugins: [
`gatsby-plugin-preact`,
"gatsby-theme-docz",
`gatsby-plugin-react-helmet`,
`gatsby-plugin-image`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/images`,
},
},
`gatsby-transformer-remark`,
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `gatsby-starter-default`,
short_name: `starter`,
start_url: `/`,
background_color: `#663399`,
theme_color: `#663399`,
display: `minimal-ui`,
icon: `src/images/utbot-logo-without-text.png`, // This path is relative to the root of the site.
},
},
{
resolve: "gatsby-plugin-alias-imports",
options: {
alias: {
docz: path.resolve(__dirname, "src/docz-proxy.js"),
"@docz": require.resolve("docz"),
},
},
},
{
resolve: "gatsby-plugin-lunr",
options: {
languages: [
{
name: "en",
filterNodes: node =>
!isNil(node.frontmatter) && !isNil(node.frontmatter.name),
},
],
fields: [
{ name: "name", store: true, attributes: { boost: 20 } },
{ name: "description", store: true, attributes: { boost: 10 } },
{ name: "content", store: true, attributes: { boost: 15 } },
{ name: "route", store: true },
],
// A function for filtering nodes. () => true by default
filterNodes: node =>
!isNil(node.frontmatter) && !isNil(node.frontmatter.name),
// How to resolve each field's value for a supported node type
resolvers: {
// For any node of type MarkdownRemark, list how to resolve the fields' values
MarkdownRemark: {
name: node => node.frontmatter.name,
description: node => node.frontmatter.description,
content: node => node.rawMarkdownBody,
route: node => node.frontmatter.route,
},
},
},
},
{
resolve: `@gatsby-contrib/gatsby-plugin-elasticlunr-search`,
options: {
// Fields to index
fields: [`name`, `description`, `content`, `route`],
// How to resolve each field`s value for a supported node type
resolvers: {
// For any node of type MarkdownRemark, list how to resolve the fields` values
MarkdownRemark: {
name: node => node.frontmatter.name,
description: node => node.frontmatter.description,
content: node => node.rawMarkdownBody,
route: node => node.frontmatter.route,
},
},
// Optional filter to limit indexed nodes
// filter: (node, getNode) => node.frontmatter.tags !== "exempt",
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `markdown`,
path: `${__dirname}/src/docs/`,
},
},
`gatsby-plugin-gatsby-cloud`,
// this (optional) plugin enables Progressive Web App + Offline functionality
// To learn more, visit: https://gatsby.dev/offline
// `gatsby-plugin-offline`,
],
};