continued working on docs

This commit is contained in:
2024-02-01 19:22:05 +01:00
parent a77cbf4a49
commit fb3a7c48fd
8 changed files with 189 additions and 9 deletions

View File

@@ -1,10 +1,20 @@
import { defineConfig } from 'astro/config';
import minify from 'astro-min';
import metaTags from "astro-meta-tags";
import mdx from "@astrojs/mdx";
import rehypeSlug from 'rehype-slug'
import rehypeAutolinkHeadings from 'rehype-autolink-headings';
// https://astro.build/config
export default defineConfig({
integrations: [minify(), metaTags(), mdx()]
integrations: [minify(), metaTags()],
markdown: {
rehypePlugins: [
rehypeSlug,
[rehypeAutolinkHeadings, { behavior: 'prepend' }],
],
drafts: true,
shikiConfig: {
theme: 'dracula',
},
},
});