tutorialkit
Version:
Interactive tutorials powered by WebContainer API
10 lines (7 loc) • 358 B
text/typescript
import { chapterSchema, lessonSchema, partSchema, tutorialSchema } from '@tutorialkit/types';
import { defineCollection } from 'astro:content';
const tutorial = defineCollection({
type: 'content',
schema: tutorialSchema.strict().or(partSchema.strict()).or(chapterSchema.strict()).or(lessonSchema.strict()),
});
export const collections = { tutorial };