-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathastro.config.ts
More file actions
43 lines (40 loc) · 1.03 KB
/
astro.config.ts
File metadata and controls
43 lines (40 loc) · 1.03 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
import { defineConfig } from "astro/config";
import tailwind from "@astrojs/tailwind";
import mdx from "@astrojs/mdx";
import icon from "astro-icon";
import sitemap from "@astrojs/sitemap";
import rehypePrettyCode from "rehype-pretty-code";
import type { Options } from "rehype-pretty-code";
import { transformerCopyButton } from "@rehype-pretty/transformers";
// INFO: docs here: https://rehype-pretty.pages.dev/#installation
const prettyCodeOptions: Options = {
theme: "houston",
transformers: [
transformerCopyButton({
visibility: "always",
feedbackDuration: 3_000,
}),
],
};
// https://astro.build/config
export default defineConfig({
site: "https://nirjan.dev",
trailingSlash: "never",
devToolbar: {
enabled: false,
},
integrations: [
tailwind(),
mdx(),
icon(),
sitemap({
filter: (page) => {
return !page.startsWith("https://nirjan.dev/blog/");
},
}),
],
markdown: {
syntaxHighlight: false,
rehypePlugins: [[rehypePrettyCode, prettyCodeOptions]],
},
});