Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
import { glob } from "astro/loaders";
import { defineCollection } from "astro:content";
const models = defineCollection({
loader: glob({
pattern: "*/README.md",
base: "../models",
generateId: ({ entry }) => entry.split("/")[0] ?? entry,
}),
});
const docs = defineCollection({
loader: glob({
pattern: ["README.md", "models/README.md"],
base: "..",
generateId: ({ entry }) => (entry === "README.md" ? "home" : "models"),
}),
});
export const collections = { models, docs };
4121c9fb7This file is pinned to the selected release. Download the original to open it in your design tool.