-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eleventy.js
41 lines (35 loc) · 1.04 KB
/
.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
const eleventyNavigationPlugin = require("@11ty/eleventy-navigation");
const syntaxHighlight = require("@11ty/eleventy-plugin-syntaxhighlight");
const markdownIt = require('markdown-it');
const markdownItAnchor = require('markdown-it-anchor');
module.exports = function(config) {
config.addPlugin(eleventyNavigationPlugin);
config.addPlugin(syntaxHighlight);
config.addPassthroughCopy('./docs/src');
config.addWatchTarget('docs/src');
config.addPassthroughCopy('./docs/assets');
config.addWatchTarget('docs/assets');
config.addPassthroughCopy('./src');
config.addWatchTarget('src');
config.setLibrary(
'md',
markdownIt({
html: true,
breaks: true,
linkify: true,
typographer: true
}).use(markdownItAnchor)
);
return {
dir: {
input: 'docs/pages',
output: 'docs/_site',
includes: '../_includes',
// layouts: 'layouts',
// data: 'data'
},
// templateFormats: ['njk', 'md', '11ty.js'],
// htmlTemplateEngine: 'njk',
// markdownTemplateEngine: 'njk'
}
};