Move all files to fractal/
This commit is contained in:
parent
35837b6c3f
commit
666b9de29b
18 changed files with 0 additions and 0 deletions
51
fractal/fractal.config.js
Normal file
51
fractal/fractal.config.js
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
"use strict"
|
||||
|
||||
const fractal = (module.exports = require("@frctl/fractal").create())
|
||||
const mandelbrot = require("@frctl/mandelbrot")
|
||||
const path = require("path")
|
||||
|
||||
fractal.set("project.title", "docker-example-fractal")
|
||||
|
||||
const twig = require("@frctl/twig")({
|
||||
functions: {
|
||||
modify(baseClass, modifiers = []) {
|
||||
// Ensure we have an array of modifiers.
|
||||
const modifiersArray = Array.isArray(modifiers) ? modifiers : [modifiers]
|
||||
|
||||
// Loop over them and prepend the baseclass.
|
||||
const classArray = modifiersArray.map(
|
||||
(modifier) => `${baseClass}--${modifier}`
|
||||
)
|
||||
classArray.unshift(baseClass)
|
||||
return classArray.join(" ")
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
fractal.components.engine(twig)
|
||||
fractal.components.set("default.preview", "@preview")
|
||||
fractal.components.set("ext", ".twig")
|
||||
|
||||
fractal.components.set("path", path.join(__dirname, "components"))
|
||||
|
||||
fractal.docs.engine("@frctl/twig")
|
||||
fractal.docs.set("path", path.join(__dirname, "docs"))
|
||||
|
||||
fractal.web.set("builder.dest", path.join(__dirname, "build"))
|
||||
fractal.web.set("static.path", path.join(__dirname, "public"))
|
||||
|
||||
fractal.web.theme(
|
||||
mandelbrot({
|
||||
format: "yaml",
|
||||
lang: "en-GB",
|
||||
skin: {
|
||||
name: 'default',
|
||||
accent: '#114b71',
|
||||
complement: '#fff',
|
||||
links: '#114b71',
|
||||
}
|
||||
})
|
||||
)
|
||||
|
||||
fractal.components.set('default.status', 'wip');
|
||||
fractal.components.set('statuses.wip.label', 'Work in progress');
|
||||
Reference in a new issue