work.suroh.tk/node_modules/@11ty/eleventy/docs-src/.eleventy.docs.js

19 lines
353 B
JavaScript
Raw Normal View History

2019-12-02 12:22:45 +00:00
const TemplatePath = require("../src/TemplatePath");
module.exports = {
templateFormats: ["njk"],
dir: {
input: "docs-src",
data: "_data",
output: "docs"
},
nunjucksFilters: {
removeDir: function(str) {
return TemplatePath.stripLeadingSubPath(
str,
TemplatePath.join(__dirname, "..")
);
}
}
};