diff --git a/.eleventy.js b/.eleventy.js index 1ce1b8ed..1e8ed29f 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -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) diff --git a/a11y.css.js b/a11y.css.js index b197123f..ef9d2606 100644 --- a/a11y.css.js +++ b/a11y.css.js @@ -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: { @@ -144,6 +144,6 @@ const generateJsonDocumentation = () => { ) } -module.exports = function () { +export default function () { generateJsonDocumentation() } diff --git a/docs/advices.html b/docs/advices.html index b3a70531..f3309033 100644 --- a/docs/advices.html +++ b/docs/advices.html @@ -6,7 +6,8 @@ - + + @@ -684,6 +685,6 @@