Skip to content

Commit

Permalink
fix(deps): update dependency @11ty/eleventy to v3.0.0-alpha.16 (#96)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ned Zimmerman <[email protected]>
  • Loading branch information
renovate[bot] and greatislander authored Jul 10, 2024
1 parent 667e8b1 commit 86b7896
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 15 deletions.
10 changes: 6 additions & 4 deletions eleventy.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { EleventyRenderPlugin } from "@11ty/eleventy";
import { RenderPlugin } from "@11ty/eleventy";
import syntaxHighlightPlugin from "@11ty/eleventy-plugin-syntaxhighlight";
// Import {$} from 'execa';
import newIssueUrl from "./src/_utils/new-issue-url.js";
Expand All @@ -11,15 +11,17 @@ export default function eleventy(eleventyConfig) {
eleventyConfig.addShortcode("newIssueUrl", newIssueUrl);
eleventyConfig.addLayoutAlias("report", "report.njk");

eleventyConfig.addPlugin(EleventyRenderPlugin);
eleventyConfig.addPlugin(RenderPlugin);
eleventyConfig.addPlugin(syntaxHighlightPlugin);

eleventyConfig.addFilter("withoutTips", (issues) => issues.filter((item) => Object.hasOwn(item, "sc") && item.sc !== ""));

eleventyConfig.addFilter("withoutViolations", (issues) => issues.filter((item) => item.sc === "" || !Object.hasOwn(item, "sc")));

eleventyConfig.addShortcode("renderString", async function (content, format) {
return eleventyConfig.javascriptFunctions.renderTemplate.call(this, content, format);
eleventyConfig.addShortcode("renderString", async function (content, templateFormat) {
const renderManager = new RenderPlugin.RenderManager();
const result = await renderManager.compile(content, templateFormat);
return result.call(this);
});

eleventyConfig.addAsyncFilter("formatDate", (value) =>
Expand Down
17 changes: 7 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
},
"homepage": "https://github.com/inclusive-design/idrc-wcag-reporter#readme",
"dependencies": {
"@11ty/eleventy": "3.0.0-alpha.14",
"@11ty/eleventy": "3.0.0-alpha.16",
"@11ty/eleventy-fetch": "^4.0.1",
"@11ty/eleventy-plugin-syntaxhighlight": "^5.0.0",
"@zachleat/table-saw": "^1.0.6",
Expand Down

0 comments on commit 86b7896

Please sign in to comment.