-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.mjs
38 lines (36 loc) · 1.25 KB
/
astro.config.mjs
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
// Full Astro Configuration API Documentation:
// https://docs.astro.build/reference/configuration-reference
// @type-check enabled!
// VSCode and other TypeScript-enabled text editors will provide auto-completion,
// helpful tooltips, and warnings if your exported object is invalid.
// You can disable this by removing "@ts-check" and `@type` comments below.
import youtubeEmbed from "./src/plugins/youtubeEmbed.mjs"
import responsiveImages from "./src/plugins/responsiveImages.mjs"
import codeHighlightPre from "./src/plugins/codeHighlightPre.mjs"
import preact from "@astrojs/preact" // @ts-check
import { defineConfig } from "astro/config"
import sitemap from "@astrojs/sitemap"
// https://astro.build/config
export default defineConfig(
/** @type {import('astro').AstroUserConfig} */
{
integrations: [preact(), sitemap()],
site: "https://blog.webdevsimplified.com",
markdown: {
// TODO: Maybe use shiki and see if it is better and has line highlighting.
syntaxHighlight: false,
remarkPlugins: [
"remark-gfm",
codeHighlightPre,
[
"remark-prism",
{
plugins: ["prismLineHighlightModified.js"],
},
],
youtubeEmbed,
responsiveImages,
],
},
}
)