This repository has been archived by the owner on Aug 23, 2024. It is now read-only.
forked from anvilproject/anvil-portal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
190 lines (184 loc) · 5.42 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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
/*
* The AnVIL
* https://www.anvilproject.org
*
* The AnVIL configuration file.
*/
let contentPath = "./content";
let yamlPath = "./content";
let gtmId = process.env.GATSBY_GTM_ID;
let gtmAuth = process.env.GATSBY_GTM_AUTH;
let gtmEnvName = process.env.GATSBY_ENV_NAME;
module.exports = {
siteMetadata: {
title: "The AnVIL",
description:
"Analyze large, open & controlled-access genomic datasets with familiar tools and reproducible workflows in a secure cloud-based execution environment.",
author: "The AnVIL team",
siteUrl: "https://anvilproject.org",
},
plugins: [
"gatsby-plugin-image",
"gatsby-plugin-catch-links",
{
resolve: "gatsby-plugin-google-tagmanager",
options: {
id: gtmId,
// Include GTM in development.
// Defaults to false meaning GTM will only be loaded in production.
includeInDevelopment: false,
// datalayer to be set before GTM is loaded
// should be an object or a function that is executed in the browser
// Defaults to null
defaultDataLayer: {},
// Specify optional GTM environment details.
gtmAuth: gtmAuth,
gtmPreview: gtmEnvName,
},
},
{
resolve: "gatsby-plugin-manifest",
options: {
background_color: "#f6f7f4",
display: "standalone",
icon: "./images/favicon-anvil.png",
name: "AnVIL",
short_name: "AnVIL",
start_url: "/",
theme_color: "#035c94",
},
},
"gatsby-plugin-react-helmet",
"gatsby-plugin-robots-txt",
"gatsby-plugin-sharp",
{
resolve: "gatsby-plugin-typography",
options: {
pathToConfigModule: "src/utils/typography",
},
},
{
resolve: "gatsby-plugin-sitemap",
options: {
excludes: [
"/events/events-intro",
"/news/news-intro",
"/guides/content-guide/example-page",
"/typography-test-page/typography-test-page",
],
},
},
"gatsby-transformer-json",
{
resolve: "gatsby-source-filesystem",
options: {
name: "markdown-pages",
path: contentPath,
},
},
{
resolve: "gatsby-source-filesystem",
options: {
name: "site-map",
path: yamlPath,
},
},
{
resolve: "gatsby-transformer-remark",
options: {
plugins: [
"gatsby-remark-component",
{
resolve: "gatsby-remark-component-parent2div",
options: {
components: [
"button",
"button-link",
"dashboard-anvil",
"dashboard-ncpi",
"event-hero",
"events",
"external-link",
"figure",
"figure-caption",
"figure-styles",
"hero",
"hero-tutorial",
"internal-link",
"news",
"platforms",
"publications",
"site-search",
"socials",
"social-link",
"social-twitter",
"social-twitter-handle",
"social-twitter-hashtag",
"social-youtube",
"style-guide-color-palette",
"style-guide-download-logo",
"style-guide-typography",
"style-guide-typography-example",
"tools",
"warning",
"workspaces",
],
},
},
{
// Copies downloadable images and pdfs etc to a directory where they can be downloaded.
// Used specifically to easily download an image or file e.g. the AnVIL poster presented at #T2THPRC.
resolve: "gatsby-remark-copy-linked-files",
options: {
// Skip markdown files and images so they can be handled by gatsby-remark-images.
ignoreFileExtensions: [
"bmp",
"jpg",
"jpeg",
"md",
"mdx",
"png",
"tiff",
],
},
},
{
resolve: "gatsby-remark-embed-video",
options: {
width: 600,
ratio: 1.77, // Optional: Defaults to 16/9 = 1.77
related: false, //Optional: Will remove related videos from the end of an embedded YouTube video.
noIframeBorder: true, //Optional: Disable insertion of <style> border: 0
urlOverrides: [
{
id: "youtube",
embedURL: (videoId) =>
`https://www.youtube.com/embed/${videoId}?enablejsapi=1`,
},
],
},
},
`gatsby-remark-external-links`,
`gatsby-remark-responsive-iframe`, // Required for resizing embedded videos.
{
resolve: "gatsby-remark-images",
options: {
linkImagesToOriginal: false,
maxWidth: 1000,
},
},
"gatsby-remark-images-medium-zoom",
{
resolve: "gatsby-remark-prismjs",
options: {
classPrefix: "language-",
},
},
"gatsby-remark-autointernallink-headers",
],
},
},
"gatsby-transformer-sharp",
"gatsby-transformer-yaml",
],
};