-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eleventy.js
More file actions
23 lines (22 loc) · 1.03 KB
/
Copy path.eleventy.js
File metadata and controls
23 lines (22 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
module.exports = function (eleventyConfig) {
eleventyConfig.addPassthroughCopy({ "public/assets": "assets", "public/data": "data" });
// Static JSON API (versioned). Same JSON files exposed under /api/v1/*.json
// so external consumers (mod managers, Discord bots, future tooling) have a
// stable URL contract independent of the /data/ paths the site itself uses.
eleventyConfig.addPassthroughCopy({
"public/data/mods.json": "api/v1/mods.json",
"public/data/tools.json": "api/v1/tools.json",
"public/data/nexus_mods.json": "api/v1/nexus_mods.json",
"public/data/info_content.json": "api/v1/info_content.json",
"public/data/tags.json": "api/v1/tags.json",
"public/data/mod_tags.json": "api/v1/mod_tags.json",
"public/data/health.json": "api/v1/health.json",
"public/data/validation.json": "api/v1/validation.json"
});
return {
dir: { input: "src", includes: "_includes", output: "_site" },
htmlTemplateEngine: "njk",
markdownTemplateEngine: "njk",
templateFormats: ["njk", "md", "html"]
};
};