Skip to content

Commit

Permalink
patch: base path test
Browse files Browse the repository at this point in the history
  • Loading branch information
liquidg3 committed Dec 12, 2023
1 parent fd7ea91 commit 62c8f65
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,25 @@ const externalLinks = require("@aloskutov/eleventy-plugin-external-links");

const registerExtensions = require("./11ty-extensions");

module.exports = function(eleventyConfig) {
module.exports = function (eleventyConfig) {

eleventyConfig.addPassthroughCopy({"./src/assets/": "assets"});
eleventyConfig.addPassthroughCopy({"./node_modules/font-awesome/css": "assets/font-awesome/css"});
eleventyConfig.addPassthroughCopy({"./node_modules/font-awesome/fonts": "assets/font-awesome/fonts"});
eleventyConfig.addPassthroughCopy({"./node_modules/highlight.js/styles/atom-one-light.min.css": "styles/highlight.js-atom-one-light.min.css"});
eleventyConfig.addPassthroughCopy({ "./src/assets/": "assets" });
eleventyConfig.addPassthroughCopy({ "./node_modules/font-awesome/css": "assets/font-awesome/css" });
eleventyConfig.addPassthroughCopy({ "./node_modules/font-awesome/fonts": "assets/font-awesome/fonts" });
eleventyConfig.addPassthroughCopy({ "./node_modules/highlight.js/styles/atom-one-light.min.css": "styles/highlight.js-atom-one-light.min.css" });

eleventyConfig.addPassthroughCopy({"./client-side-compiled/**/*": "scripts"});
eleventyConfig.addPassthroughCopy({"./styles-compiled/**/*": "styles"});
eleventyConfig.addPassthroughCopy({"./src/copy-to-root/*": "."});
eleventyConfig.addPassthroughCopy({ "./client-side-compiled/**/*": "scripts" });
eleventyConfig.addPassthroughCopy({ "./styles-compiled/**/*": "styles" });
eleventyConfig.addPassthroughCopy({ "./src/copy-to-root/*": "." });

eleventyConfig.addPassthroughCopy({"./node_modules/lunr/lunr.min.js": "scripts/libs/lunr.min.js"});

eleventyConfig.addPassthroughCopy({ "./node_modules/lunr/lunr.min.js": "scripts/libs/lunr.min.js" });

eleventyConfig.setUseGitIgnore(false);
eleventyConfig.setDataDeepMerge(false);

eleventyConfig.addPlugin(EleventyRenderPlugin);
eleventyConfig.addPlugin(externalLinks, {overwrite: false});
eleventyConfig.addPlugin(externalLinks, { overwrite: false });

eleventyConfig.setServerOptions({
showAllHosts: true
Expand All @@ -34,6 +34,7 @@ module.exports = function(eleventyConfig) {
registerExtensions(eleventyConfig);

return {
pathPrefix: "/spruce-documentation/",
dir: {
input: "src/pages",
}
Expand Down

0 comments on commit 62c8f65

Please sign in to comment.