import { defineCollection } from "astro:content";
import { docsLoader } from "@astrojs/starlight/loaders";
import { docsSchema } from "@astrojs/starlight/schema";
import { glob } from "astro/loaders";

export const collections = {
  docs: defineCollection({ loader: docsLoader(), schema: docsSchema() }),
  journal: defineCollection({
    loader: glob({
      base: "src/content/journal",
      pattern: "**/*.(md|mdx)",
    })
  })
};
