-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgatsby-config.js
More file actions
120 lines (115 loc) · 3.78 KB
/
gatsby-config.js
File metadata and controls
120 lines (115 loc) · 3.78 KB
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
119
120
const dotenv = require('dotenv')
dotenv.config({
path: `.env`,
})
dotenv.config({
path: `.env.${process.env.NODE_ENV || 'development'}`,
override: true,
})
// Import data from separate modules
const peopleData = require('./src/data/site/people')
const projectsData = require('./src/data/site/projects')
const newsData = require('./src/data/site/news')
const softwareData = require('./src/data/site/software')
const menuData = require('./src/data/site/menu')
module.exports = {
pathPrefix: '/',
siteMetadata: {
title: `Computational Visualization Center`,
peopleCards: peopleData,
newsTiles: newsData,
projectTiles: projectsData,
softwareProjects: softwareData,
menuLinks: menuData,
description: `A cross-disciplinary effort to develop and improve the technologies for computational modeling, simulation, analysis, and visualization.`,
author: `cvc`,
siteUrl: `https://cvc-lab.github.io/`,
},
plugins: [
// Using Gatsby Head API instead of react-helmet
// `gatsby-plugin-react-helmet`,
`gatsby-plugin-typescript`,
`gatsby-plugin-image`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/images`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `videos`,
path: `${__dirname}/src/videos`,
},
},
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: `markdown`,
path: `${__dirname}/src/markdown`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `data`,
path: `${__dirname}/src/data/`,
},
},
`gatsby-transformer-csv`,
`gatsby-transformer-remark`,
`gatsby-remark-copy-linked-files`,
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: [
{
resolve: `gatsby-remark-images`,
options: {
maxWidth: 800,
// Removed the path option as it's not valid for gatsby-remark-images
},
},
{
resolve: 'gatsby-remark-static-images',
},
{
resolve: `gatsby-remark-copy-linked-files`,
},
{
resolve: `gatsby-remark-katex`,
options: {
// Add any KaTeX options from https://github.com/KaTeX/KaTeX/blob/master/docs/options.md here
strict: `ignore`,
},
},
{
resolve: 'gatsby-remark-embed-video',
options: {
related: false, //Optional: Will remove related videos from the end of an embedded YouTube video.
noIframeBorder: true, //Optional: Disable insertion of <style> border: 0
loadingStrategy: 'lazy', //Optional: Enable support for lazy-load offscreen iframes. Default is disabled.
urlOverrides: [
{
id: 'youtube',
embedURL: videoId => `https://www.youtube-nocookie.com/embed/${videoId}`,
},
], //Optional: Override URL of a service provider, e.g to enable youtube-nocookie support
containerClass: 'embedVideo-container', //Optional: Custom CSS class for iframe container, for multiple classes separate them by space
iframeId: false, //Optional: if true, iframe's id will be set to what is provided after 'video:' (YouTube IFrame player API requires iframe id)
},
},
],
},
},
// this (optional) plugin enables Progressive Web App + Offline functionality
// To learn more, visit: https://gatsby.dev/offline
// `gatsby-plugin-offline`,
],
}