forked from ArcBlock/abtnode-docs
-
Notifications
You must be signed in to change notification settings - Fork 1
/
gatsby-config.js
43 lines (41 loc) · 1.11 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
require('dotenv').config();
const path = require('path');
const { version } = require('./package.json');
module.exports = {
plugins: [
{
resolve: require.resolve('@arcblock/www'),
},
{
resolve: require.resolve('@arcblock/gatsby-theme-docs'),
options: {
version: `v${version}`,
official: true,
disableI18n: false,
sourceDirs: [path.resolve(__dirname, 'src')],
siteMetadata: {
title: 'ABT Node',
description: 'ABT Node Documentation',
logoUrl: '/abtnode/',
sidebarWidth: 360,
},
algoliaSearch: {
enabled: process.env.NODE_ENV === 'production',
appId: process.env.GATSBY_ALGOLIA_APP_ID,
adminKey: process.env.GATSBY_ALGOLIA_ADMIN_KEY,
searchKey: process.env.GATSBY_ALGOLIA_SEARCH_KEY,
indexName: process.env.GATSBY_ALGOLIA_INDEX_NAME,
},
navItems: [],
extraPlugins: [],
},
},
// Speed up netlify build
{
resolve: 'gatsby-plugin-netlify-cache',
options: {
cachePublic: true,
},
},
],
};