-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…ial-configuration Gatsby initial configuration
- Loading branch information
Showing
8 changed files
with
13,808 additions
and
3,433 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
/* | ||
* Copyright (C) 2018-present Arctic Ice Studio <[email protected]> | ||
* Copyright (C) 2018-present Sven Greb <[email protected]> | ||
* | ||
* Project: Nord Docs | ||
* Repository: https://github.com/arcticicestudio/nord-docs | ||
* License: MIT | ||
*/ | ||
|
||
/** | ||
* @file The Gatsby configuration. | ||
* @author Arctic Ice Studio <[email protected]> | ||
* @author Sven Greb <[email protected]> | ||
* @see https://gatsbyjs.org/docs/gatsby-config | ||
* @since 0.1.0 | ||
*/ | ||
|
||
const { metadataNord, metadataNordDocs } = require("./src/data/project"); | ||
const { sourceInstanceTypes } = require("./src/config/internal/nodes"); | ||
const { | ||
BASE_DIR_CONTENT, | ||
BASE_DIR_ASSETS_IMAGES, | ||
BASE_DIR_CONFIG, | ||
BASE_DIR_PAGES | ||
} = require("./src/config/internal/constants"); | ||
const { BASE_PUBLIC_URL } = require("./src/config/routes/constants"); | ||
|
||
module.exports = { | ||
siteMetadata: { | ||
nord: { ...metadataNord }, | ||
...metadataNordDocs | ||
}, | ||
plugins: [ | ||
"gatsby-plugin-react-helmet", | ||
"gatsby-plugin-catch-links", | ||
"gatsby-plugin-remove-trailing-slashes", | ||
"gatsby-plugin-no-sourcemaps", | ||
"gatsby-transformer-yaml", | ||
{ | ||
resolve: "gatsby-plugin-canonical-urls", | ||
options: { | ||
siteUrl: `${BASE_PUBLIC_URL}` | ||
} | ||
}, | ||
{ | ||
resolve: "gatsby-source-filesystem", | ||
options: { | ||
name: "images", | ||
path: `${__dirname}/${BASE_DIR_ASSETS_IMAGES}` | ||
} | ||
}, | ||
{ | ||
resolve: "gatsby-source-filesystem", | ||
options: { | ||
name: `${sourceInstanceTypes.blog.id}`, | ||
path: `${__dirname}/${BASE_DIR_CONTENT}/${sourceInstanceTypes.blog.path}/` | ||
} | ||
}, | ||
{ | ||
resolve: "gatsby-source-filesystem", | ||
options: { | ||
name: "config", | ||
path: `${__dirname}/${BASE_DIR_CONFIG}/` | ||
} | ||
}, | ||
{ | ||
resolve: "gatsby-source-filesystem", | ||
options: { | ||
name: `${sourceInstanceTypes.docs.id}`, | ||
path: `${__dirname}/${BASE_DIR_CONTENT}/${sourceInstanceTypes.docs.path}/` | ||
} | ||
}, | ||
{ | ||
resolve: "gatsby-source-filesystem", | ||
options: { | ||
name: "pages", | ||
path: `${__dirname}/${BASE_DIR_PAGES}/` | ||
} | ||
} | ||
] | ||
}; |
Oops, something went wrong.