-
Notifications
You must be signed in to change notification settings - Fork 21
/
gatsby-config.js
167 lines (162 loc) · 4.83 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
module.exports = {
siteMetadata: {
// Replace the Site URL with your domain, ex. https://example.gov
siteUrl: 'https://example.gov',
author: 'Foo',
title: `Agency Name`,
description: `Agency Name (EAC) Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Aenean et sapien a leo auctor scelerisque quis nec magna. Sed dictum ante a risus vehicula facilisis.`,
navigation: [
{
items: [{ text: 'Home', link: '/' }],
},
{
items: [{ text: 'Blog', link: '/blog' }],
},
{
items: [{ text: 'Document', link: '/document' }],
},
{
items: [
{ text: 'Document with sidenav', link: '/document-with-sidenav' },
],
},
{
title: 'Document submenu',
items: [
{ text: 'Navigation link', link: '/' },
{ text: 'Navigation link', link: '/' },
{ text: 'Navigation link', link: '/' },
],
},
],
secondaryLinks: [
{ text: 'Secondary link', link: '/' },
{ text: 'Another secondary link', link: '/' },
],
/**
* Search.gov configuration
*
* 1. Create an account with Search.gov https://search.usa.gov/signup
* 2. Add a new site.
* 3. Add your site/affiliate name here.
*/
searchgov: {
// Only change this if you're using a CNAME. Learn more here: https://search.gov/manual/cname.html
endpoint: 'https://search.usa.gov',
// Replace this with your search.gov site handle.
affiliate: 'affiliate-agency-account',
// Replace this with your access key.
access_key: 'affiliate-agency-account-access-key',
},
/**
* Digital Analytics Program (DAP) configuration
*
* USAID - Agency for International Development
* USDA - Department of Agriculture
* DOC - Department of Commerce
* DOD - Department of Defense
* ED - Department of Education
* DOE - Department of Energy
* HHS - Department of Health and Human Services
* DHS - Department of Homeland Security
* HUD - Department of Housing and Urban Development
* DOJ - Department of Justice
* DOL - Department of Labor
* DOS - Department of State
* DOI - Department of the Interior
* TREAS - Department of the Treasury
* DOT - Department of Transportation
* VA - Department of Veterans Affairs
* EPA - Environmental Protection Agency
* EOP - Executive Office of the President
* GSA - General Services Administration
* NASA - National Aeronautics and Space Administration
* NARA - National Archives and Records Administration
* NSF - National Science Foundation
* NRC - Nuclear Regulatory Commission
* OPM - Office of Personnel Management
* USPS - Postal Service
* SBA - Small Business Administration
* SSA - Social Security Administration
*/
dap: {
// agency: 'your-agency',
// Optional
// subagency: 'your-subagency',
},
/**
* Google Analytics configuration
*/
ga: {
// ua: 'your-ua',
},
},
pathPrefix: process.env.BASEURL || '/',
plugins: [
{
resolve: 'gatsby-plugin-sass',
options: {
cssLoaderOptions: {
esModule: false,
modules: {
namedExport: false,
},
},
},
},
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/images`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `blog-posts`,
path: `${__dirname}/src/blog-posts`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `documentation-pages`,
path: `${__dirname}/src/documentation-pages`,
},
},
`gatsby-transformer-remark`,
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `gatsby-starter-default`,
short_name: `starter`,
start_url: `/`,
background_color: `#663399`,
theme_color: `#663399`,
display: `minimal-ui`,
icon: `src/images/federalist-icon.png`, // This path is relative to the root of the site.
},
},
`gatsby-plugin-sitemap`,
{
resolve: 'gatsby-plugin-robots-txt',
options: {
resolveEnv: () => process.env.GATSBY_ENV,
env: {
development: {
policy: [{ userAgent: '*', disallow: ['/'] }],
},
production: {
policy: [{ userAgent: '*', allow: '/' }],
},
},
},
},
// this (optional) plugin enables Progressive Web App + Offline functionality
// To learn more, visit: https://gatsby.dev/offline
// `gatsby-plugin-offline`,
],
};