Spaces:
Runtime error
Runtime error
File size: 917 Bytes
e331e72 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
const { EleventyHtmlBasePlugin } = require("@11ty/eleventy");
const syntaxHighlight = require("@11ty/eleventy-plugin-syntaxhighlight");
const codeClipboard = require("eleventy-plugin-code-clipboard");
const pluginMermaid = require("@kevingimbel/eleventy-plugin-mermaid");
const markdownIt = require('markdown-it');
module.exports = (eleventyConfig) => {
eleventyConfig.addPlugin(syntaxHighlight);
eleventyConfig.addPlugin(codeClipboard);
eleventyConfig.addPlugin(pluginMermaid);
eleventyConfig.addPlugin(EleventyHtmlBasePlugin, {
baseHref: process.env.DOCSITE_BASE_URL || ""
});
eleventyConfig.addPassthroughCopy("data");
eleventyConfig.addPassthroughCopy("img");
// Ignore auto-generated content
eleventyConfig.setUseGitIgnore(false);
const markdownLibrary = markdownIt({
html: true
}).use(codeClipboard.markdownItCopyButton);
eleventyConfig.setLibrary("md", markdownLibrary);
}; |