diff --git a/packages/webawesome/docs/.eleventy.js b/packages/webawesome/docs/.eleventy.js index e35218ac9..5bdfc377a 100644 --- a/packages/webawesome/docs/.eleventy.js +++ b/packages/webawesome/docs/.eleventy.js @@ -125,7 +125,7 @@ export default async function (eleventyConfig) { eleventyConfig.addPlugin(currentLink()); // Add code examples for `` blocks - eleventyConfig.addPlugin(codeExamplesPlugin); + eleventyConfig.addPlugin(codeExamplesPlugin()); // Highlight code blocks with Prism eleventyConfig.addPlugin(highlightCodePlugin()); @@ -136,6 +136,10 @@ export default async function (eleventyConfig) { // Various text replacements eleventyConfig.addPlugin( replaceTextPlugin([ + { + replace: /\[version\]/gs, + replaceWith: packageData.version, + }, // Replace [issue:1234] with a link to the issue on GitHub { replace: /\[pr:([0-9]+)\]/gs,