strudel-docker/website/astro.config.mjs
alex 08cd319a0b Revert "Merge branch 'main' into main"
This reverts commit 896ec69329c2ef4392cb8eacb05d549a01f197e7, reversing
changes made to 32e64bbb6e3f904d4dffce0a7975adf24214021a.
2023-01-10 19:45:23 +00:00

46 lines
1.0 KiB
JavaScript

import { defineConfig } from 'astro/config';
import preact from '@astrojs/preact';
import react from '@astrojs/react';
import mdx from '@astrojs/mdx';
import remarkToc from 'remark-toc';
import rehypeSlug from 'rehype-slug';
import rehypeAutolinkHeadings from 'rehype-autolink-headings';
import tailwind from '@astrojs/tailwind';
// import { visualizer } from 'rollup-plugin-visualizer';
const options = {
// See https://mdxjs.com/advanced/plugins
remarkPlugins: [
remarkToc,
// E.g. `remark-frontmatter`
],
rehypePlugins: [rehypeSlug, rehypeAutolinkHeadings],
};
// https://astro.build/config
export default defineConfig({
integrations: [
// Enable Preact to support Preact JSX components.
preact(),
// Enable React for the Algolia search component.
react(),
mdx(options),
tailwind(),
],
site: `https://strudel.tidalcycles.org`,
base: '/',
});
/*
build: {
outDir: '../out',
sourcemap: true,
rollupOptions: {
plugins: [visualizer({ template: 'treemap' })],
},
},
*/