Skip to content

Commit

Permalink
docs(11ty): switch to passThroughCopy for levelo-only files
Browse files Browse the repository at this point in the history
  • Loading branch information
ffoodd committed Mar 3, 2022
1 parent 2fef89b commit aa2aeda
Show file tree
Hide file tree
Showing 21 changed files with 41 additions and 2,471 deletions.
1 change: 1 addition & 0 deletions .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module.exports = function (eleventyConfig) {
eleventyConfig.addPlugin(a11yCSS)

eleventyConfig.addPassthroughCopy('site/static')
eleventyConfig.addPassthroughCopy({'css/a11y-en_*-only.css': 'static/css'})
eleventyConfig.addShortcode("year", () => `${new Date().getFullYear()}`);

return {
Expand Down
5 changes: 0 additions & 5 deletions a11y.css.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,6 @@ const parseAssets = () => {
fs.mkdirSync(DIRECTORIES.css.output)
}

fs.copyFileSync(DIRECTORIES.css.input + 'a11y-en_advices-only.css', DIRECTORIES.css.output + 'a11y-en_advices-only.css')
fs.copyFileSync(DIRECTORIES.css.input + 'a11y-en_errors-only.css', DIRECTORIES.css.output + 'a11y-en_errors-only.css')
fs.copyFileSync(DIRECTORIES.css.input + 'a11y-en_obsolete-only.css', DIRECTORIES.css.output + 'a11y-en_obsoletes-only.css')
fs.copyFileSync(DIRECTORIES.css.input + 'a11y-en_warnings-only.css', DIRECTORIES.css.output + 'a11y-en_warnings-only.css')

/**
* Process docs styles and scripts
*/
Expand Down
6 changes: 5 additions & 1 deletion docs/advices.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@
<link rel="preload" href="/static/fonts/firasans-book.woff2" as="font" type="font/woff2" crossorigin="anonymous">


<link rel="stylesheet" href="/static/css/a11y-en_advices-only.css" media="all">




<link rel="stylesheet" href="/static/css/a11y-en_obsolete-only.css" media="all">


</head>
Expand Down
Loading

0 comments on commit aa2aeda

Please sign in to comment.