2024-09-27 23:35:19 +00:00
|
|
|
import { defineConfig } from "astro/config";
|
|
|
|
import solidJs from "@astrojs/solid-js";
|
|
|
|
import { remarkAlert } from "remark-github-blockquote-alert";
|
|
|
|
import sectionize from "@hbsnow/rehype-sectionize";
|
|
|
|
import mdx from "@astrojs/mdx";
|
|
|
|
|
2024-10-04 17:14:32 +00:00
|
|
|
import pagefind from "./pagefind";
|
2024-09-27 23:35:19 +00:00
|
|
|
|
|
|
|
// https://astro.build/config
|
|
|
|
export default defineConfig({
|
|
|
|
integrations: [
|
|
|
|
solidJs({
|
|
|
|
devtools: true,
|
|
|
|
}),
|
|
|
|
mdx(),
|
|
|
|
pagefind(),
|
|
|
|
],
|
|
|
|
markdown: {
|
|
|
|
syntaxHighlight: "shiki",
|
|
|
|
shikiConfig: {
|
|
|
|
theme: "material-theme-ocean",
|
|
|
|
wrap: true,
|
|
|
|
},
|
|
|
|
remarkPlugins: [
|
|
|
|
[
|
|
|
|
remarkAlert,
|
|
|
|
{
|
|
|
|
legacyTitle: true,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
],
|
|
|
|
rehypePlugins: [
|
|
|
|
[
|
|
|
|
sectionize,
|
|
|
|
{
|
|
|
|
idPropertyName: "id",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
],
|
|
|
|
},
|
|
|
|
});
|