forked from ffoodd/a11y.css
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eleventy.js
35 lines (30 loc) · 1.12 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
import a11yCSS from './a11y.css.js'
export default function (eleventyConfig) {
eleventyConfig.setUseGitIgnore(false)
eleventyConfig.addPlugin(a11yCSS)
eleventyConfig.addPassthroughCopy('site/static')
eleventyConfig.addPassthroughCopy({
'css/a11y-en_errors-only.css': 'static/css/a11y-en_errors-only.css',
'css/a11y-en_warnings-only.css': 'static/css/a11y-en_warnings-only.css',
'css/a11y-en_obsoletes-only.css': 'static/css/a11y-en_obsoletes-only.css',
'css/a11y-en_advices-only.css': 'static/css/a11y-en_advices-only.css',
'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/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'
}
}