Swap to use an upstream theme directly from the prismjs node_modules

This commit is contained in:
Zach Leatherman
2022-08-15 12:22:19 -05:00
parent bd40861468
commit abb712dbb6
8 changed files with 44 additions and 128 deletions

View File

@@ -5,6 +5,7 @@ const pluginRss = require("@11ty/eleventy-plugin-rss");
const pluginSyntaxHighlight = require("@11ty/eleventy-plugin-syntaxhighlight");
const pluginNavigation = require("@11ty/eleventy-navigation");
const { EleventyI18nPlugin } = require("@11ty/eleventy");
const languageStrings = require("./i18n.js");
module.exports = function(eleventyConfig) {
@@ -12,7 +13,10 @@ module.exports = function(eleventyConfig) {
// Copy the contents of the `public` folder to the output folder
// For example, `./public/css/` ends up in `_site/css/`
eleventyConfig.addPassthroughCopy({"./public/": "/"});
eleventyConfig.addPassthroughCopy({
"./public/": "/",
"./node_modules/prismjs/themes/prism-okaidia.css": "/css/prism-theme.css",
});
// Add plugins
eleventyConfig.addPlugin(pluginRss);