-
Notifications
You must be signed in to change notification settings - Fork 0
/
_config.ts
45 lines (41 loc) · 1.08 KB
/
_config.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
38
39
40
41
42
43
44
45
import toc from "https://deno.land/x/[email protected]/toc/mod.ts";
import image from "https://deno.land/x/[email protected]/image.ts";
import shiki from "https://deno.land/x/[email protected]/mod.ts";
import lume from "lume/mod.ts";
import { alert } from "npm:@mdit/[email protected]";
import { full as emoji } from "npm:markdown-it-emoji";
import footnotes from "npm:markdown-it-footnote";
import imageFigures from "npm:markdown-it-image-figures";
import plugins from "./plugins.ts";
import shikiCopy from "https://deno.land/x/lume_shiki/plugins/copy/mod.ts";
const markdown = {
plugins: [
toc,
footnotes,
image,
alert,
emoji,
[imageFigures, { lazy: true, async: true, figcaption: true }],
],
options: {
linkify: true,
},
};
const site = lume(
{
src: "./src",
location: new URL("https://www.wheelsbot.dev"),
},
{ markdown },
);
site.use(plugins());
site.use(
shiki({
highlighter: {
langs: ["bash"],
themes: ["material-theme-darker"],
},
theme: "material-theme-darker",
}),
);
export default site;