-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy path_config.ts
More file actions
54 lines (48 loc) · 1.42 KB
/
_config.ts
File metadata and controls
54 lines (48 loc) · 1.42 KB
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
46
47
48
49
50
51
52
53
54
import lume from "lume/mod.ts";
import tailwindcss from "lume/plugins/tailwindcss.ts";
import jsx from "lume/plugins/jsx.ts";
import esbuild from "lume/plugins/esbuild.ts";
import inline from "lume/plugins/inline.ts";
import nav from "lume/plugins/nav.ts";
import sitemap from "lume/plugins/sitemap.ts";
import toc from "https://deno.land/x/lume_markdown_plugins@v0.7.0/toc.ts";
import anchor from "npm:markdown-it-anchor@9";
import AUTOLINK_REFERENCES from "./references.json" with { type: "json" };
import autolink from "./_plugins/autolink.ts";
import tableWrap from "./_plugins/table-wrap.ts";
const site = lume({ location: new URL("https://messageformat.dev") }, {
markdown: {
options: {
linkify: true,
},
plugins: [
[anchor, {
permalink: anchor.permalink.linkInsideHeader({
symbol:
`<span class="sr-only">Jump to heading</span><span aria-hidden="true" class="anchor">#</span>`,
placement: "after",
}),
}],
[autolink, {
references: AUTOLINK_REFERENCES,
}],
[tableWrap],
],
},
});
site.use(
esbuild({
options: { minify: false, keepNames: false },
}),
);
site.add("static");
site.add("src/interactive.ts");
site.add("src/utils.ts");
site.add("src/playground.ts");
site.use(tailwindcss());
site.use(jsx({}));
site.use(inline());
site.use(nav({}));
site.use(toc({ anchor: false }));
site.use(sitemap({}));
export default site;