Skip to content

Commit

Permalink
Update to Eleventy v3
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrobertlloyd committed Oct 11, 2024
1 parent e7dab50 commit 4127f32
Show file tree
Hide file tree
Showing 3 changed files with 974 additions and 287 deletions.
12 changes: 6 additions & 6 deletions eleventy.config.js → eleventy.config.mjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const fs = require('node:fs')
const govukEleventyPlugin = require('@x-govuk/govuk-eleventy-plugin')
const beautify = require('js-beautify')
const nunjucks = require('nunjucks')
const matter = require('gray-matter')
import fs from 'node:fs'
import govukEleventyPlugin from '@x-govuk/govuk-eleventy-plugin'
import beautify from 'js-beautify'
import nunjucks from 'nunjucks'
import matter from 'gray-matter'

const getComponentContent = (componentName) => {
const componentPath = `docs/examples/${componentName}.njk`
Expand All @@ -12,7 +12,7 @@ const getComponentContent = (componentName) => {
return content
}

module.exports = function (eleventyConfig) {
export default function (eleventyConfig) {
// Plugins
eleventyConfig.addPlugin(govukEleventyPlugin, {
icons: {
Expand Down
Loading

0 comments on commit 4127f32

Please sign in to comment.