Skip to content

Commit

Permalink
docs(PrismJS)[WIP]: trying to use 11ty plugin for syntaxhighlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
ffoodd committed Mar 3, 2022
1 parent bfb284f commit d97ff1b
Show file tree
Hide file tree
Showing 8 changed files with 282 additions and 519 deletions.
4 changes: 4 additions & 0 deletions .eleventy.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
const a11yCSS = require('./a11y.css')
const syntaxHighlight = require("@11ty/eleventy-plugin-syntaxhighlight")

module.exports = function (eleventyConfig) {
eleventyConfig.addPlugin(a11yCSS)
eleventyConfig.addPlugin(syntaxHighlight, {
templateFormats: ["njk", "md"]
})

eleventyConfig.addPassthroughCopy('src/static')

Expand Down
Loading

0 comments on commit d97ff1b

Please sign in to comment.