Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
<hr style="margin: 6px 0;" class="divider divider--keyline divider--pumice">
<h2 style="margin-bottom: 24px;" class="styleguide__font__example--HNM5">${item.label}</h2>
<div style="margin-bottom: 24px;">
${markup}
</div>
`);
});
fractal.docs.set('path', serverDir('views/docs'));
fractal.docs.set('ext', 'njk');
fractal.docs.engine(nunjucks);
fractal.web.set('static.path', dir('./../dist'));
fractal.web.set('builder.dest', '.dist');
const cardiganTheme = mandelbrot({
skin: 'navy',
styles: ['default', '/dist-styles/styleguide.css'],
favicon: '/cardigan-theme/assets/favicon.ico'
});
cardiganTheme.addLoadPath(serverDir('cardigan-theme'));
cardiganTheme.addLoadPath(serverDir('views'));
cardiganTheme.addStatic(serverDir('cardigan-theme'), '/cardigan-theme');
cardiganTheme.addStatic(dir('./../dist/assets/css/'), '/dist-styles');
fractal.web.theme(cardiganTheme);
export default fractal;
function dir(relPath) {
return path.resolve(`${__dirname}${relPath}`);
}