36 lines
No EOL
766 B
JavaScript
36 lines
No EOL
766 B
JavaScript
import { defineConfig } from 'astro/config';
|
|
|
|
import compress from "astro-compress";
|
|
|
|
import remarkPostMeta from './remark-post-meta.mjs';
|
|
|
|
import { rehypeHeadingIds } from '@astrojs/markdown-remark';
|
|
import rehypeSlug from 'rehype-slug';
|
|
import rehypeAutolinkHeadings from 'rehype-autolink-headings';
|
|
|
|
import rehypeFigure from 'rehype-figure';
|
|
|
|
export default defineConfig({
|
|
integrations: [compress()],
|
|
build: {
|
|
format: "directory"
|
|
},
|
|
markdown: {
|
|
syntaxHighlight: "shiki",
|
|
remarkPlugins: [
|
|
remarkPostMeta,
|
|
],
|
|
rehypePlugins: [
|
|
rehypeSlug,
|
|
rehypeHeadingIds,
|
|
[
|
|
rehypeAutolinkHeadings,
|
|
{ behavior: "append" },
|
|
],
|
|
rehypeFigure,
|
|
],
|
|
},
|
|
redirects: {
|
|
"/blog": "/blog/page1",
|
|
}
|
|
}); |