-
Notifications
You must be signed in to change notification settings - Fork 95
Expand file tree
/
Copy path.eleventy.js
More file actions
31 lines (26 loc) · 813 Bytes
/
Copy path.eleventy.js
File metadata and controls
31 lines (26 loc) · 813 Bytes
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
import a11yCSS from './a11y.css.js'
export default function (eleventyConfig) {
eleventyConfig.setUseGitIgnore(false)
eleventyConfig.addPlugin(a11yCSS)
eleventyConfig.addPassthroughCopy('site/static')
eleventyConfig.addPassthroughCopy({
'node_modules/a11y-syntax-highlighting/dist/prism/a11y-light.min.css': 'static/css/a11y-light.min.css'
})
eleventyConfig.addShortcode('year', () => `${new Date().getFullYear()}`)
eleventyConfig.addShortcode('version', () => `${Date.now()}`)
eleventyConfig.addWatchTarget('site/static/css/docs.css')
eleventyConfig.addWatchTarget('site/static/docs.js')
eleventyConfig.setBrowserSyncConfig({
ui: false,
ghostMode: false,
open: true,
browser: 'firefox',
})
return {
dir: {
input: 'site',
output: 'docs'
},
markdownTemplateEngine: 'njk'
}
}