feat: upgrade to Astro v5
This commit is contained in:
parent
bec3106684
commit
1f629db63c
1 changed files with 0 additions and 96 deletions
|
@ -1,96 +0,0 @@
|
|||
// // https://docs.astro.build/en/guides/content-collections/#defining-collections
|
||||
|
||||
// import { z, defineCollection } from 'astro:content';
|
||||
// import { docsSchema } from '@astrojs/starlight/schema';
|
||||
|
||||
// const productsCollection = defineCollection({
|
||||
// type: 'content',
|
||||
// schema: ({ image }) => z.object({
|
||||
// title: z.string(),
|
||||
// description: z.string(),
|
||||
// main: z.object({
|
||||
// id: z.number(),
|
||||
// content: z.string(),
|
||||
// imgCard: image(),
|
||||
// imgMain: image(),
|
||||
// imgAlt: z.string(),
|
||||
// }),
|
||||
// tabs: z.array(
|
||||
// z.object({
|
||||
// id: z.string(),
|
||||
// dataTab: z.string(),
|
||||
// title: z.string(),
|
||||
// })
|
||||
// ),
|
||||
// longDescription: z.object({
|
||||
// title: z.string(),
|
||||
// subTitle: z.string(),
|
||||
// btnTitle: z.string(),
|
||||
// btnURL: z.string(),
|
||||
// }),
|
||||
// descriptionList: z.array(
|
||||
// z.object({
|
||||
// title: z.string(),
|
||||
// subTitle: z.string(),
|
||||
// })
|
||||
// ),
|
||||
// specificationsLeft: z.array(
|
||||
// z.object({
|
||||
// title: z.string(),
|
||||
// subTitle: z.string(),
|
||||
// })
|
||||
// ),
|
||||
// specificationsRight: z.array(
|
||||
// z.object({
|
||||
// title: z.string(),
|
||||
// subTitle: z.string(),
|
||||
// })
|
||||
// ).optional(),
|
||||
// tableData: z.array(
|
||||
// z.object({
|
||||
// feature: z.array(z.string()),
|
||||
// description: z.array(z.array(z.string())),
|
||||
// })
|
||||
// ).optional(),
|
||||
// blueprints: z.object({
|
||||
// first: image().optional(),
|
||||
// second: image().optional(),
|
||||
// }),
|
||||
// }),
|
||||
// });
|
||||
|
||||
// const blogCollection = defineCollection({
|
||||
// type: "content",
|
||||
// schema: ({ image }) => z.object ({
|
||||
// title: z.string(),
|
||||
// description: z.string(),
|
||||
// contents: z.array(z.string()),
|
||||
// author: z.string(),
|
||||
// role: z.string().optional(),
|
||||
// authorImage: image(),
|
||||
// authorImageAlt: z.string(),
|
||||
// pubDate: z.date(),
|
||||
// cardImage: image(),
|
||||
// cardImageAlt: z.string(),
|
||||
// readTime: z.number(),
|
||||
// tags: z.array(z.string()).optional(),
|
||||
// }),
|
||||
// });
|
||||
|
||||
// const insightsCollection = defineCollection({
|
||||
// type: "content",
|
||||
// schema: ({ image }) => z.object ({
|
||||
// title: z.string(),
|
||||
// description: z.string(),
|
||||
// // contents: z.array(z.string()),
|
||||
// cardImage: image(),
|
||||
// cardImageAlt: z.string(),
|
||||
// }),
|
||||
// });
|
||||
|
||||
// export const collections = {
|
||||
// docs: defineCollection({ schema: docsSchema() }),
|
||||
// 'products': productsCollection,
|
||||
// 'blog': blogCollection,
|
||||
// 'insights': insightsCollection,
|
||||
// };
|
Loading…
Add table
Reference in a new issue