[READ-ONLY] Mirror of https://github.com/flo-bit/dogumentation. Simple, minimalistic documentation template using astro flo-bit.dev/dogumentation/
0

Configure Feed

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

dogumentation / astro.config.ts
1.8 kB 74 lines
1// @ts-check 2import { defineConfig } from "astro/config"; 3import { resolve } from "path"; 4import remarkMath from "remark-math" 5import rehypeMathjax from "rehype-mathjax" 6 7import mdx from "@astrojs/mdx"; 8import sitemap from "@astrojs/sitemap"; 9import tailwind from "@astrojs/tailwind"; 10import svelte from "@astrojs/svelte"; 11 12import pagefind from "astro-pagefind"; 13import customEmbeds from 'astro-custom-embeds'; 14 15import { transformerMetaHighlight, transformerNotationHighlight } from '@shikijs/transformers' 16 17import LinkCardEmbed from './src/embeds/link-card/embed' 18import YoutubeEmbed from './src/embeds/youtube/embed' 19import ExcalidrawEmbed from "./src/embeds/excalidraw/embed"; 20import GithubEmbed from "./src/embeds/github/embed"; 21 22import react from "@astrojs/react"; 23 24import config from "./src/config"; 25 26// https://astro.build/config 27export default defineConfig({ 28 vite: { 29 resolve: { 30 alias: { 31 $components: resolve("./src/components"), 32 $layouts: resolve("./src/layouts"), 33 $pages: resolve("./src/pages"), 34 $assets: resolve("./src/assets"), 35 $content: resolve("./src/content"), 36 }, 37 }, 38 }, 39 40 integrations: [pagefind(), customEmbeds({ 41 embeds: [ 42 ExcalidrawEmbed, 43 YoutubeEmbed, 44 GithubEmbed, 45 LinkCardEmbed, 46 ] 47 }), mdx(), sitemap(), tailwind(), svelte(), react()], 48 49 markdown: { 50 shikiConfig: { 51 themes: { 52 light: "github-light", 53 dark: "github-dark", 54 }, 55 defaultColor: false, 56 transformers: [transformerMetaHighlight(), transformerNotationHighlight()], 57 wrap: true 58 }, 59 60 remarkPlugins: [ 61 remarkMath 62 ], 63 rehypePlugins: [ 64 rehypeMathjax 65 ] 66 }, 67 68 prefetch: { 69 prefetchAll: true, 70 }, 71 site: config.SITE, 72 base: config.BASE, 73 output: "static", 74});