summaryrefslogtreecommitdiff
path: root/astro.config.mjs
diff options
context:
space:
mode:
Diffstat (limited to 'astro.config.mjs')
-rw-r--r--astro.config.mjs28
1 files changed, 28 insertions, 0 deletions
diff --git a/astro.config.mjs b/astro.config.mjs
new file mode 100644
index 0000000..58632ab
--- /dev/null
+++ b/astro.config.mjs
@@ -0,0 +1,28 @@
+import { defineConfig } from 'astro/config';
+
+import sitemap from '@astrojs/sitemap';
+import rehypeSlug from 'rehype-slug';
+import rehypeAutolinkHeadings from 'rehype-autolink-headings';
+
+export default defineConfig({
+ output: 'static',
+ site: 'https://matthewkosarek.xyz',
+ integrations: [sitemap()],
+ markdown: {
+ rehypePlugins: [
+ rehypeSlug,
+ [rehypeAutolinkHeadings, {
+ behavior: 'prepend',
+ properties: { class: 'heading-anchor', ariaHidden: 'true', tabIndex: -1 },
+ content: { type: 'text', value: '#' },
+ }],
+ ],
+ shikiConfig: {
+ themes: {
+ light: 'github-light',
+ dark: 'dracula',
+ },
+ defaultColor: false,
+ },
+ },
+});