Skip to content

Commit

Permalink
chore(11ty): upgrade to v3
Browse files Browse the repository at this point in the history
  • Loading branch information
ffoodd committed Nov 4, 2024
1 parent 94f3259 commit 81a4929
Show file tree
Hide file tree
Showing 12 changed files with 1,843 additions and 1,505 deletions.
4 changes: 2 additions & 2 deletions .eleventy.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const a11yCSS = require('./a11y.css')
import a11yCSS from './a11y.css.js'

module.exports = function (eleventyConfig) {
export default function (eleventyConfig) {
eleventyConfig.setUseGitIgnore(false)

eleventyConfig.addPlugin(a11yCSS)
Expand Down
16 changes: 8 additions & 8 deletions a11y.css.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
const fs = require('fs')
const path = require('path')
const showdown = require('showdown')
const fm = require('front-matter')
const prism = require('prismjs')
const loadLanguages = require('prismjs/components/');
loadLanguages(['scss', 'css-extras']);
import fs from 'node:fs'
import path from 'node:path'
import showdown from 'showdown'
import fm from 'front-matter'
import prism from 'prismjs'
import loadLanguages from 'prismjs/components/index.js'
loadLanguages(['scss', 'css-extras'])

const DIRECTORIES = {
sass: {
Expand Down Expand Up @@ -144,6 +144,6 @@ const generateJsonDocumentation = () => {
)
}

module.exports = function () {
export default function () {
generateJsonDocumentation()
}
5 changes: 3 additions & 2 deletions docs/advices.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description"
content="This CSS file intends to warn developers about possible risks and mistakes that exist in HTML code. It can also be used to roughly evaluate a site's quality by simply including it as an external stylesheet.">
<link rel="stylesheet" href="./static/docs.css?v=1730752943989">
<meta name="generator" content="Eleventy v3.0.0">
<link rel="stylesheet" href="./static/docs.css?v=1730756126792">
<link rel="shortcut icon" href="https://ffoodd.github.io/a11y.css/static/favicon.ico">
<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"><link rel="stylesheet" href="./static/css/a11y-light.min.css">
Expand Down Expand Up @@ -684,6 +685,6 @@ <h3>Test</h3>
</div>
</footer>

<script src="./static/docs.js?v=1730752943995"></script>
<script src="./static/docs.js?v=1730756126797"></script>
</body>
</html>
5 changes: 3 additions & 2 deletions docs/docs.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description"
content="This CSS file intends to warn developers about possible risks and mistakes that exist in HTML code. It can also be used to roughly evaluate a site's quality by simply including it as an external stylesheet.">
<link rel="stylesheet" href="./static/docs.css?v=1730752943998">
<meta name="generator" content="Eleventy v3.0.0">
<link rel="stylesheet" href="./static/docs.css?v=1730756126800">
<link rel="shortcut icon" href="https://ffoodd.github.io/a11y.css/static/favicon.ico">
<link rel="preload" href="./static/fonts/firasans-book.woff2" as="font" type="font/woff2" crossorigin="anonymous">
<link rel="stylesheet" href="./static/css/a11y-light.min.css">
Expand Down Expand Up @@ -1157,6 +1158,6 @@ <h5>References</h5>
</div>
</footer>

<script src="./static/docs.js?v=1730752943999"></script>
<script src="./static/docs.js?v=1730756126801"></script>
</body>
</html>
5 changes: 3 additions & 2 deletions docs/errors.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description"
content="This CSS file intends to warn developers about possible risks and mistakes that exist in HTML code. It can also be used to roughly evaluate a site's quality by simply including it as an external stylesheet.">
<link rel="stylesheet" href="./static/docs.css?v=1730752943995">
<meta name="generator" content="Eleventy v3.0.0">
<link rel="stylesheet" href="./static/docs.css?v=1730756126797">
<link rel="shortcut icon" href="https://ffoodd.github.io/a11y.css/static/favicon.ico">
<link rel="preload" href="./static/fonts/firasans-book.woff2" as="font" type="font/woff2" crossorigin="anonymous">
<link rel="stylesheet" href="./static/css/a11y-en_errors-only.css"><link rel="stylesheet" href="./static/css/a11y-light.min.css">
Expand Down Expand Up @@ -1389,6 +1390,6 @@ <h3>Test</h3>
</div>
</footer>

<script src="./static/docs.js?v=1730752943996"></script>
<script src="./static/docs.js?v=1730756126798"></script>
</body>
</html>
5 changes: 3 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description"
content="This CSS file intends to warn developers about possible risks and mistakes that exist in HTML code. It can also be used to roughly evaluate a site's quality by simply including it as an external stylesheet.">
<link rel="stylesheet" href="./static/docs.css?v=1730752944015">
<meta name="generator" content="Eleventy v3.0.0">
<link rel="stylesheet" href="./static/docs.css?v=1730756126817">
<link rel="shortcut icon" href="https://ffoodd.github.io/a11y.css/static/favicon.ico">
<link rel="preload" href="./static/fonts/firasans-book.woff2" as="font" type="font/woff2" crossorigin="anonymous">
</head>
Expand Down Expand Up @@ -145,6 +146,6 @@ <h2>Contribution</h2>
</div>
</footer>

<script src="./static/docs.js?v=1730752944015"></script>
<script src="./static/docs.js?v=1730756126817"></script>
</body>
</html>
5 changes: 3 additions & 2 deletions docs/obsoletes.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description"
content="This CSS file intends to warn developers about possible risks and mistakes that exist in HTML code. It can also be used to roughly evaluate a site's quality by simply including it as an external stylesheet.">
<link rel="stylesheet" href="./static/docs.css?v=1730752943996">
<meta name="generator" content="Eleventy v3.0.0">
<link rel="stylesheet" href="./static/docs.css?v=1730756126798">
<link rel="shortcut icon" href="https://ffoodd.github.io/a11y.css/static/favicon.ico">
<link rel="preload" href="./static/fonts/firasans-book.woff2" as="font" type="font/woff2" crossorigin="anonymous">
<link rel="stylesheet" href="./static/css/a11y-en_obsoletes-only.css"><link rel="stylesheet" href="./static/css/a11y-light.min.css">
Expand Down Expand Up @@ -267,6 +268,6 @@ <h3>Test</h3>
</div>
</footer>

<script src="./static/docs.js?v=1730752943997"></script>
<script src="./static/docs.js?v=1730756126798"></script>
</body>
</html>
5 changes: 3 additions & 2 deletions docs/warnings.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description"
content="This CSS file intends to warn developers about possible risks and mistakes that exist in HTML code. It can also be used to roughly evaluate a site's quality by simply including it as an external stylesheet.">
<link rel="stylesheet" href="./static/docs.css?v=1730752943997">
<meta name="generator" content="Eleventy v3.0.0">
<link rel="stylesheet" href="./static/docs.css?v=1730756126799">
<link rel="shortcut icon" href="https://ffoodd.github.io/a11y.css/static/favicon.ico">
<link rel="preload" href="./static/fonts/firasans-book.woff2" as="font" type="font/woff2" crossorigin="anonymous">
<link rel="stylesheet" href="./static/css/a11y-en_warnings-only.css"><link rel="stylesheet" href="./static/css/a11y-light.min.css">
Expand Down Expand Up @@ -1394,6 +1395,6 @@ <h3>Test</h3>
</div>
</footer>

<script src="./static/docs.js?v=1730752943997"></script>
<script src="./static/docs.js?v=1730756126799"></script>
</body>
</html>
5 changes: 3 additions & 2 deletions docs/webextension.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description"
content="This CSS file intends to warn developers about possible risks and mistakes that exist in HTML code. It can also be used to roughly evaluate a site's quality by simply including it as an external stylesheet.">
<link rel="stylesheet" href="./static/docs.css?v=1730752943997">
<meta name="generator" content="Eleventy v3.0.0">
<link rel="stylesheet" href="./static/docs.css?v=1730756126799">
<link rel="shortcut icon" href="https://ffoodd.github.io/a11y.css/static/favicon.ico">
<link rel="preload" href="./static/fonts/firasans-book.woff2" as="font" type="font/woff2" crossorigin="anonymous">
<link rel="stylesheet" href="./static/css/a11y-light.min.css">
Expand Down Expand Up @@ -218,6 +219,6 @@ <h3>Test</h3>
</div>
</footer>

<script src="./static/docs.js?v=1730752943998"></script>
<script src="./static/docs.js?v=1730756126799"></script>
</body>
</html>
Loading

0 comments on commit 81a4929

Please sign in to comment.