-
Notifications
You must be signed in to change notification settings - Fork 27
/
batfish.config.js
38 lines (36 loc) · 1.16 KB
/
batfish.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
'use strict';
const path = require('path');
// eslint-disable-next-line
const navigationStructure = require('./_tmp_assembly/navigation.json');
module.exports = () => {
return {
siteBasePath: '/assembly/',
siteOrigin: 'https://labs.mapbox.com',
outputDirectory: path.join(__dirname, '_site'),
stylesheets: [
path.join(__dirname, './site/css/hljs.css'),
path.join(__dirname, './dist/assembly.css')
],
dataSelectors: {
examplesSubNavigationList: () => {
return navigationStructure.navigationList.find(
routeConfig => routeConfig.name === 'Examples'
).items;
},
documentationData: () => {
return navigationStructure.navigationList.find(
routeConfig => routeConfig.name === 'Documentation'
).props.documentationData;
}
},
fileLoaderExtensions: extensions => extensions.concat(['svg']),
pagesDirectory: path.join(__dirname, './site/pages'),
webpackStaticIgnore: [/copy\.js$/],
vendorModules: ['highlight.js'],
applicationWrapperPath: path.join(
__dirname,
'./site/application_wrapper.js'
),
staticHtmlInlineDeferCss: false
};
};