-
Notifications
You must be signed in to change notification settings - Fork 14
/
eleventy.config.js
45 lines (42 loc) · 1.19 KB
/
eleventy.config.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
42
43
44
45
const govukEleventyPlugin = require('@x-govuk/govuk-eleventy-plugin')
const fs = require('fs')
module.exports = function(eleventyConfig) {
// Register the plugin
eleventyConfig.addPlugin(govukEleventyPlugin, {
icons: {
shortcut: '/assets/dit-favicon.png'
},
header: {
logotype: {
html: fs.readFileSync('./docs/assets/dit-logo.svg', {encoding: 'utf8'})
},
productName: 'stream-unzip',
},
footer: {
meta: {
items: [
{
href: 'https://github.com/uktrade/stream-unzip',
text: 'GitHub repository for stream-unzip'
},
{
href: 'https://www.gov.uk/government/organisations/department-for-business-and-trade',
text: 'Created by the Department for Business and Trade (DBT)'
}
]
}
}
})
eleventyConfig.addPassthroughCopy('./docs/assets')
eleventyConfig.addPassthroughCopy('./docs/CNAME')
return {
dataTemplateEngine: 'njk',
htmlTemplateEngine: 'njk',
markdownTemplateEngine: 'njk',
dir: {
// Use layouts from the plugin
input: 'docs',
layouts: '../node_modules/@x-govuk/govuk-eleventy-plugin/layouts'
}
}
};