Fork of Chiri for Astro for my blog
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at a2f7dec4d7c309420bc9d4e87b4de27dcd8a4142 53 lines 1.7 kB view raw
1import { defineConfig } from 'astro/config' 2import mdx from '@astrojs/mdx' 3import sitemap from '@astrojs/sitemap' 4import playformInline from '@playform/inline' 5import remarkMath from 'remark-math' 6import remarkDirective from 'remark-directive' 7import rehypeKatex from 'rehype-katex' 8import remarkEmbeddedMedia from './src/plugins/remark-embedded-media.mjs' 9import remarkReadingTime from './src/plugins/remark-reading-time.mjs' 10import rehypeCleanup from './src/plugins/rehype-cleanup.mjs' 11import rehypeImageProcessor from './src/plugins/rehype-image-processor.mjs' 12import rehypeCopyCode from './src/plugins/rehype-copy-code.mjs' 13import remarkTOC from './src/plugins/remark-toc.mjs' 14import { themeConfig } from './src/config' 15import { imageConfig } from './src/utils/image-config' 16import path from 'path' 17import netlify from '@astrojs/netlify' 18 19export default defineConfig({ 20 adapter: netlify(), // Set adapter for deployment, or set `linkCard` to `false` in `src/config.ts` 21 site: themeConfig.site.website, 22 image: { 23 service: { 24 entrypoint: 'astro/assets/services/sharp', 25 config: imageConfig 26 } 27 }, 28 markdown: { 29 shikiConfig: { 30 theme: 'css-variables', 31 wrap: false 32 }, 33 remarkPlugins: [remarkMath, remarkDirective, remarkEmbeddedMedia, remarkReadingTime, remarkTOC], 34 rehypePlugins: [rehypeKatex, rehypeCleanup, rehypeImageProcessor, rehypeCopyCode] 35 }, 36 integrations: [ 37 playformInline({ 38 Exclude: [(file) => file.toLowerCase().includes('katex')] 39 }), 40 mdx(), 41 sitemap() 42 ], 43 vite: { 44 resolve: { 45 alias: { 46 '@': path.resolve('./src') 47 } 48 } 49 }, 50 devToolbar: { 51 enabled: false 52 } 53})