diff options
Diffstat (limited to 'eleventy.config.js')
-rw-r--r-- | eleventy.config.js | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/eleventy.config.js b/eleventy.config.js index f187c91..fd9d653 100644 --- a/eleventy.config.js +++ b/eleventy.config.js @@ -1,10 +1,13 @@ -import { InputPathToUrlTransformPlugin } from "@11ty/eleventy"; +import { EleventyRenderPlugin, InputPathToUrlTransformPlugin } from "@11ty/eleventy"; import pluginRss from "@11ty/eleventy-plugin-rss"; import syntaxHighlight from "@11ty/eleventy-plugin-syntaxhighlight"; +import pluginWebc from "@11ty/eleventy-plugin-webc"; import anchor from "markdown-it-anchor"; export default function (eleventyConfig) { + eleventyConfig.addPlugin(EleventyRenderPlugin); eleventyConfig.addPlugin(InputPathToUrlTransformPlugin); + eleventyConfig.addPlugin(pluginWebc); eleventyConfig.addPlugin(syntaxHighlight, { errorOnInvalidLanguage: true, @@ -59,6 +62,16 @@ export default function (eleventyConfig) { operator: /=>/, punctuation: /[(){},]/, }; + // This may take some actual work, though. + Prism.languages.slint = { + keyword: /component|export|inherits|property|root/, + "class-name": /AppWindow|VerticalBox|LineEdit/, + builtin: /Text|\bWindow|string/, + string: /"[^"]+"/, + operator: /:|<=>|\./, + punctuation: /[{}<>;]/, + property: /label|text/, + } Prism.languages.text = {}; }, }); |