recipes

The recipes and recipe books used in our family
git clone git://archive.git.mtrnord.blog/MTRNord/recipes.git
Log | Files | Refs | README | LICENSE

astro.config.mjs (1334B)


      1 import { defineConfig, passthroughImageService } from 'astro/config';
      2 import starlight from '@astrojs/starlight';
      3 import markdoc from "@astrojs/markdoc";
      4 import starlightLinksValidator from 'starlight-links-validator';
      5 
      6 import tailwind from "@astrojs/tailwind";
      7 
      8 // https://astro.build/config
      9 export default defineConfig({
     10   prefetch: true,
     11   site: 'https://recipes.nordgedanken.dev',
     12   image: {
     13     service: passthroughImageService(),
     14   },
     15   integrations: [
     16     starlightLinksValidator(),
     17     tailwind({
     18       // Disable the default base styles:
     19       applyBaseStyles: false,
     20     }),
     21     starlight({
     22       title: 'Rezepte',
     23       defaultLocale: 'de-de',
     24       locales: {
     25         'de-de': {
     26           label: 'Deutsch',
     27           lang: 'de-DE'
     28         },
     29         en: {
     30           label: 'English'
     31         }
     32       },
     33       customCss: [
     34         './src/tailwind.css',
     35       ],
     36       sidebar: [{
     37         label: 'Rezepte',
     38         translations: {
     39           'en': 'Recipes',
     40         },
     41         autogenerate: {
     42           directory: 'recipes'
     43         }
     44       }, {
     45         label: 'Anleitungen',
     46         translations: {
     47           'en': 'Guides',
     48         },
     49         autogenerate: {
     50           directory: 'guides'
     51         }
     52       }],
     53       components: {
     54         MarkdownContent: './src/components/recipe.astro'
     55       }
     56     }),
     57     markdoc(),
     58   ]
     59 });