-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eleventy.js
26 lines (23 loc) · 867 Bytes
/
.eleventy.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
const syntax = require("@11ty/eleventy-plugin-syntaxhighlight")
module.exports = function(eleventyConfig) {
eleventyConfig.addPlugin(syntax);
eleventyConfig.addPassthroughCopy("src/CNAME");
eleventyConfig.addPassthroughCopy("src/.nojekyll");
eleventyConfig.addPassthroughCopy("src/_includes/public");
eleventyConfig.addPassthroughCopy("src/_includes/fonts");
eleventyConfig.setBrowserSyncConfig({
files: './docs/_includes/css/**/*.css'
});
const markdownIt = require("markdown-it");
const markdownItAnchor = require("markdown-it-anchor");
const markdownLib = markdownIt({ html: true }).use(markdownItAnchor);
eleventyConfig.setLibrary("md", markdownLib);
return {
dir: {
input: "src",
includes: "_includes",
data: "_data",
output: "docs"
}
}
}