install some stuff for 11ty

markdown attributes
configure eleventy renderFile plugin
This commit is contained in:
2023-10-12 22:35:08 +05:30
parent 93bc2187b6
commit ac4e71106b
3 changed files with 280 additions and 50 deletions

View File

@@ -1,8 +1,14 @@
const { EleventyHtmlBasePlugin } = require("@11ty/eleventy");
const { EleventyHtmlBasePlugin, EleventyRenderPlugin } = require("@11ty/eleventy");
const markdownItAttrs = require("markdown-it-attrs");
module.exports = function(eleventyConfig){
eleventyConfig.addPlugin(EleventyHtmlBasePlugin);
eleventyConfig.addPlugin(EleventyRenderPlugin);
eleventyConfig.amendLibrary("md", mdLib => mdLib.use(markdownItAttrs));
eleventyConfig.addPassthroughCopy("static");
return {
pathPrefix: "/",
dir: {

319
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -7,6 +7,7 @@
},
"type": "module",
"devDependencies": {
"@11ty/eleventy": "^2.0.1"
"@11ty/eleventy": "^2.0.1",
"markdown-it-attrs": "^4.1.6"
}
}