-
Notifications
You must be signed in to change notification settings - Fork 95
/
gatsby-config.js
36 lines (34 loc) · 1.05 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
const withDefault = require('@rocketseat/gatsby-theme-docs-core/util/with-default');
module.exports = (options) => {
const themeOptions = withDefault(options);
return {
siteMetadata: {
defaultTitle: `Rocket Docs by João Pedro Schmitz`,
siteTitle: `Rocket Docs`,
siteTitleShort: `Rocket Docs`,
siteDescription: `Easy to use Gatsby Theme to create documentation websites`,
siteUrl: `https://rocketdocs.netlify.app`,
siteAuthor: `@jpedroschmitz`,
siteImage: `/banner.png`,
siteLanguage: `en`,
basePath: themeOptions.basePath,
docsPath: themeOptions.docsPath,
},
plugins: [
{
resolve: `gatsby-source-filesystem`,
options: {
name: `homepage`,
path: themeOptions.homePath || `${__dirname}/src/text`,
},
},
{
resolve: `@rocketseat/gatsby-theme-docs-core`,
options: themeOptions,
},
`gatsby-plugin-catch-links`,
`gatsby-plugin-emotion`,
`gatsby-plugin-react-helmet`,
].filter(Boolean),
};
};