-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy patheleventy.config.js
More file actions
69 lines (65 loc) · 1.72 KB
/
eleventy.config.js
File metadata and controls
69 lines (65 loc) · 1.72 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
import { govukEleventyPlugin } from '@x-govuk/govuk-eleventy-plugin'
import fs from 'fs';
var serviceName = 'stream-zip';
export default 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'})
},
},
// This is documented as needing to be a full URL rather than a path
opengraphImageUrl: 'https://stream-zip.docs.trade.gov.uk/assets/dbt-social.jpg',
titleSuffix: serviceName,
showBreadcrumbs: false,
serviceNavigation: {
serviceName,
serviceUrl: '/',
navigation: [
{
text: 'Get started',
href: '/get-started/'
},
{
text: 'API reference',
href: '/api/'
},
{
text: 'Contributing',
href: '/contributing/'
}
]
},
footer: {
logo: false,
meta: {
items: [
{
href: 'https://github.com/uktrade/stream-zip',
text: 'GitHub repository for stream-zip'
},
{
href: 'https://www.gov.uk/government/organisations/department-for-business-and-trade',
text: 'Created by the Department for Business and Trade (DBT)'
}
]
}
},
stylesheets: ['/assets/styles.css'],
})
eleventyConfig.addPassthroughCopy('./docs/assets')
eleventyConfig.addPassthroughCopy('./docs/CNAME')
return {
dataTemplateEngine: 'njk',
htmlTemplateEngine: 'njk',
markdownTemplateEngine: 'njk',
dir: {
// Use layouts from the plugin
input: 'docs',
}
}
};