mirror of
https://github.com/microsoft/graphrag.git
synced 2025-07-25 09:51:02 +00:00
25 lines
917 B
JavaScript
25 lines
917 B
JavaScript
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);
|
|
|
|
}; |