-
Notifications
You must be signed in to change notification settings - Fork 2
/
fractal.config.js
47 lines (38 loc) · 1.22 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
/* eslint-env node */
'use strict'
/*
* Require the path module
*/
const path = require('path')
/*
* Require Fractal modules
*/
const fractal = (module.exports = require('fractal-fork').fractal.create())
const fractalTheme = require('fractal-fork').mandelbrot({
skin: 'black',
styles: ['default', '/assets/styleguide-theme.css'],
favicon: '/assets/favicons/edition-02/favicon-apricot/favicon.svg',
})
fractalTheme.addLoadPath(path.join(__dirname, '/theme-overrides'))
fractal.web.theme(fractalTheme)
/*
* Give your project a title.
*/
fractal.set('project.title', 'INNOQ Styleguide')
const componentsDir = path.join(__dirname, 'components')
fractal.components.set('ext', '.html')
fractal.components.set('path', componentsDir)
fractal.components.set('default.preview', '@preview')
/*
* Tell Fractal where to look for documentation pages and use HTML as default.
*/
fractal.docs.set('path', path.join(__dirname, 'docs'))
fractal.docs.set('ext', '.html')
/*
* Tell the Fractal web preview plugin where to look for static assets.
*/
fractal.web.set('static.path', path.join(__dirname, 'public'))
/*
* Tell Fractal where to export the static site to.
*/
fractal.web.set('builder.dest', path.join(__dirname, 'dist', 'site'))