-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eleventy.js
30 lines (28 loc) · 857 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
27
28
29
30
const d11ty = require('d11ty');
const { EleventyHtmlBasePlugin } = require('@11ty/eleventy');
const input = 'examples/eleventy-plugin/sitedocs';
module.exports = function(eleventyConfig){
// passthrough copy
eleventyConfig.addPassthroughCopy(`${input}/.nojekyll`);
eleventyConfig.addPassthroughCopy(`${input}/public`);
// add plugins
eleventyConfig.addPlugin(d11ty, {
pdfOptions: {
format: 'letter'
},
serverOptions: { // included for example purposes
waitUntil: 'domcontentloaded',
waitBeforeCapture: 0
}
});
eleventyConfig.addPlugin(EleventyHtmlBasePlugin);
return {
dir: {
input,
output: 'docs'
},
markdownTemplateEngine: 'njk',
htmlTemplateEngine: 'njk',
pathPrefix: '/d11ty/'
}
}