Initial commit

This commit is contained in:
Bethlenfalvi, Lorinc (ext)
2025-01-28 00:28:14 +01:00
parent d154e5b725
commit 0c962c336b
52 changed files with 2958 additions and 1054 deletions

View File

@@ -2,9 +2,46 @@
import { defineConfig } from 'astro/config';
import mdx from '@astrojs/mdx';
import sitemap from '@astrojs/sitemap';
import tailwindcss from '@tailwindcss/vite';
import svelte from '@astrojs/svelte';
import react from '@astrojs/react';
import darkPlus from 'shiki/themes/dark-plus.mjs'
import remarkToc from 'remark-toc'
import rehypeSlug from 'rehype-slug';
import rehypeAutolinkHeadings from 'rehype-autolink-headings';
// https://astro.build/config
export default defineConfig({
site: 'https://example.com',
integrations: [mdx(), sitemap()],
});
site: 'https://www.lbfalvy.com',
vite: {
plugins: [tailwindcss()]
},
integrations: [mdx({
shikiConfig: {
theme: {
...darkPlus,
bg: "var(--color-side-bg)"
}
},
remarkPlugins: [
[remarkToc, {
tight: true,
skip: '.{0}' // Nothing
}]
],
rehypePlugins: [
rehypeSlug,
[rehypeAutolinkHeadings, {
content: {
type: 'element',
tagName: 'i',
properties: {
className: 'linkbtn gg-link'
}
}
}]
]
}), sitemap(), svelte(), react()],
});