-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eleventy.js
27 lines (24 loc) · 1.01 KB
/
.eleventy.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
const UserConfig = require("@11ty/eleventy/src/UserConfig");
const tpPlugin = require("@teipublisher/pb-eleventy-plugin");
/** @param {UserConfig} eleventyConfig */
module.exports = (eleventyConfig) => {
// copy css
eleventyConfig.addPassthroughCopy('src/resources/css');
// copy TEI Publisher components
eleventyConfig.addPassthroughCopy({
'node_modules/@teipublisher/pb-components/dist/*.js': 'resources/scripts',
'node_modules/@teipublisher/pb-components/lib/*.js': 'resources/lib',
'node_modules/@teipublisher/pb-components/images/openseadragon/*': 'resources/images/openseadragon',
'node_modules/@teipublisher/pb-components/images/leaflet/*': 'resources/images/leaflet',
'node_modules/@teipublisher/pb-components/i18n/common/*': 'resources/i18n/common'
});
eleventyConfig.addPlugin(tpPlugin, {
remote: 'http://127.0.0.1:8080/exist/apps/tei-publisher/',
});
return {
dir: {
input: "src",
output: "_site"
}
}
};