-
Notifications
You must be signed in to change notification settings - Fork 9
/
fractal.config.js
58 lines (51 loc) · 1.27 KB
/
fractal.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
'use strict';
const path = require('path');
const fractal = (module.exports = require('@frctl/fractal').create());
const mandelbrot = require('@frctl/mandelbrot');
fractal.set('project.title', 'Fractal demo');
/*
* Components
*/
fractal.components.set('path', path.join(__dirname, 'components'));
fractal.components.engine(require('@frctl/nunjucks'));
fractal.components.set('ext', '.njk');
/*
* Documentation
*/
fractal.docs.set('path', path.join(__dirname, 'docs'));
fractal.docs.engine(require('@frctl/nunjucks'));
/*
* Assets
*/
fractal.web.set('static.path', path.join(__dirname, 'public'));
/**
* Build
*/
fractal.web.set('builder.dest', path.join(__dirname, 'dist'));
/*
* Theme
*/
fractal.web.theme(
mandelbrot({
skin: {
name: 'fuchsia',
accent: '#C23582',
complement: '#FFFFFF',
links: '#C23582',
},
information: [
{
label: 'Version',
value: require('./package.json').version,
},
{
label: 'Built on',
value: new Date(),
type: 'time',
format: (value) => {
return value.toLocaleDateString('en');
},
},
],
})
);