1
0
mirror of https://github.com/avinal/avinal.github.io.git synced 2026-07-03 23:30:09 +05:30
Files
avinal.github.io/astro.config.mjs
avinal df4f2e3863 switch to self-hosted Iosevka fonts, enable prefetch
Assisted by Claude Code

Signed-off-by: Avinal Kumar <avinal.xlvii@gmail.com>
2026-05-19 12:04:05 +05:30

30 lines
776 B
JavaScript

import { defineConfig } from "astro/config";
import sitemap from "@astrojs/sitemap";
import rehypeImageAlign from "./src/lib/rehype-image-align.ts";
import rehypeSlug from "rehype-slug";
import rehypeAutolinkHeadings from "rehype-autolink-headings";
export default defineConfig({
site: "https://avinal.space",
output: "static",
integrations: [sitemap()],
prefetch: true,
markdown: {
shikiConfig: {
theme: "github-dark-default",
},
rehypePlugins: [
rehypeImageAlign,
rehypeSlug,
[
rehypeAutolinkHeadings,
{
behavior: "append",
properties: { className: ["heading-anchor"], ariaLabel: "Link to this section" },
content: { type: "text", value: "#" },
},
],
],
},
});