forked from frctl/fractal.build
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fractal.js
40 lines (29 loc) · 846 Bytes
/
fractal.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
'use strict';
const cachebust = require('./cachebust.json');
/*
* Create a new Fractal instance and export it for use elsewhere if required
*/
const fractal = module.exports = require('@frctl/fractal').create();
/*
* General project configuration.
*/
fractal.set('project.title', 'Fractal Documentation');
fractal.set('project.version', '1.0');
fractal.set('project.tag', ''); // none
/*
* Configure docs.
*/
fractal.docs.set('path', `${__dirname}/docs`);
/*
* Configure the web interface.
*/
fractal.web.set('builder.dest', 'dist');
fractal.web.theme(require('./theme')({
imagePath: 'assets/img',
includePaths: [`${__dirname}/helpers`],
cachebust: {
css: cachebust['theme/dist/css/main.css'] || '',
js: cachebust['theme/dist/js/main.js'] || ''
}
}));
fractal.web.set('builder.urls.ext', null);