Skip to content

Commit

Permalink
[infra] add eleventy syntax highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
addyosmani committed May 13, 2020
1 parent 179cb56 commit b48f80d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions site/.eleventy.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
const markdownIt = require('markdown-it');
const htmlminifier = require('html-minifier');
const syntaxHighlight = require("@11ty/eleventy-plugin-syntaxhighlight");

module.exports = function(eleventyConfig) {
eleventyConfig.addPlugin(syntaxHighlight, {
templateFormants: ["md", "js", "html"]
});
eleventyConfig.addPassthroughCopy("src/assets");
eleventyConfig.addPassthroughCopy("src/styles");
eleventyConfig.addPassthroughCopy("src/script.js");
Expand Down
3 changes: 2 additions & 1 deletion site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
},
"license": "Apache-2.0",
"dependencies": {
"@11ty/eleventy-plugin-syntaxhighlight": "^3.0.1",
"html-minifier": "^4.0.0"
}
}
}

0 comments on commit b48f80d

Please sign in to comment.