-
Notifications
You must be signed in to change notification settings - Fork 0
/
mod.ts
37 lines (32 loc) · 909 Bytes
/
mod.ts
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
28
29
30
31
32
33
34
35
36
37
import plugins, { Options } from "./plugins.ts";
import "lume/types.ts";
export type { Options } from "./plugins.ts";
export default function (options: Partial<Options> = {}) {
return (site: Lume.Site) => {
// Configure the site
site.use(plugins(options));
// Add remote files
const files = [
"_includes/css/book.css",
"_includes/css/code.css",
"_includes/css/menu.css",
"_includes/css/navigation.css",
"_includes/css/reset.css",
"_includes/css/variables.css",
"_includes/layouts/book.vto",
"img/cover.jpg",
"img/favicon.svg",
"scripts/font-size.js",
"scripts/main.js",
"scripts/page-turner.js",
"scripts/state.js",
"_data.yml",
"404.md",
"index.md",
"styles.css",
];
for (const file of files) {
site.remoteFile(file, import.meta.resolve(`./src/${file}`));
}
};
}