2023-05-05 14:01:09 +04:00
|
|
|
import { defineConfig } from 'astro/config';
|
|
|
|
|
|
|
|
import compress from "astro-compress";
|
2023-06-18 20:00:53 +04:00
|
|
|
import remarkPostMeta from './remark-post-meta.mjs';
|
2023-06-18 18:10:29 +04:00
|
|
|
import remarkUnwrapImages from 'remark-unwrap-images';
|
2023-06-18 18:55:51 +04:00
|
|
|
import { rehypeHeadingIds } from '@astrojs/markdown-remark';
|
|
|
|
import rehypeSlug from 'rehype-slug';
|
|
|
|
import rehypeAutolinkHeadings from 'rehype-autolink-headings';
|
2023-06-18 20:00:53 +04:00
|
|
|
import rehypeFigure from 'rehype-figure';
|
2023-05-05 14:01:09 +04:00
|
|
|
|
|
|
|
// https://astro.build/config
|
|
|
|
export default defineConfig({
|
2023-06-18 18:10:29 +04:00
|
|
|
integrations: [compress()],
|
|
|
|
build: {
|
|
|
|
format: "directory"
|
|
|
|
},
|
|
|
|
markdown: {
|
|
|
|
syntaxHighlight: "shiki",
|
2023-06-18 20:00:53 +04:00
|
|
|
remarkPlugins: [
|
|
|
|
remarkPostMeta,
|
|
|
|
remarkUnwrapImages,
|
|
|
|
],
|
2023-06-18 18:55:51 +04:00
|
|
|
rehypePlugins: [
|
|
|
|
rehypeSlug,
|
|
|
|
rehypeHeadingIds,
|
|
|
|
[
|
|
|
|
rehypeAutolinkHeadings,
|
|
|
|
{ behavior: "append" },
|
|
|
|
],
|
2023-06-18 20:00:53 +04:00
|
|
|
[
|
|
|
|
rehypeFigure,
|
|
|
|
{ className: "rehype-figure" },
|
|
|
|
],
|
2023-06-18 18:55:51 +04:00
|
|
|
],
|
2023-06-18 18:10:29 +04:00
|
|
|
},
|
2023-05-05 14:01:09 +04:00
|
|
|
});
|