|
| 1 | +import { defineCollection, z } from 'astro:content'; |
| 2 | +import { glob } from 'astro/loaders'; |
| 3 | + |
| 4 | +const blog = defineCollection({ |
| 5 | + loader: glob({ pattern: '**/[^_]*.{md,mdx}', base: './src/content/blog' }), |
| 6 | +}); |
| 7 | + |
| 8 | +const community = defineCollection({ |
| 9 | + loader: glob({ pattern: '**/[^_]*.yaml', base: './src/content/community' }), |
| 10 | +}); |
| 11 | + |
| 12 | +const download = defineCollection({ |
| 13 | + loader: glob({ |
| 14 | + pattern: '**/[^_]*.{md,mdx}', |
| 15 | + base: './src/content/download', |
| 16 | + }), |
| 17 | +}); |
| 18 | + |
| 19 | +const explore = defineCollection({ |
| 20 | + loader: glob({ pattern: '**/[^_]*.yaml', base: './src/content/explore' }), |
| 21 | +}); |
| 22 | + |
| 23 | +const landing = defineCollection({ |
| 24 | + loader: glob({ pattern: '**/[^_]*.yaml', base: './src/content/landing' }), |
| 25 | +}); |
| 26 | + |
| 27 | +const landingFeatures = defineCollection({ |
| 28 | + loader: glob({ |
| 29 | + pattern: '**/[^_]*.{md,mdx}', |
| 30 | + base: './src/content/landing-features', |
| 31 | + }), |
| 32 | +}); |
| 33 | + |
| 34 | +const learningManuals = defineCollection({ |
| 35 | + loader: glob({ |
| 36 | + pattern: '**/[^_]*.{md,mdx}', |
| 37 | + base: './src/content/learning-manuals', |
| 38 | + }), |
| 39 | +}); |
| 40 | + |
| 41 | +const menus = defineCollection({ |
| 42 | + loader: glob({ pattern: '**/[^_]*.yaml', base: './src/content/menus' }), |
| 43 | +}); |
| 44 | + |
| 45 | +// research is a hardcoded json |
| 46 | + |
| 47 | +const sponsors = defineCollection({ |
| 48 | + loader: glob({ pattern: '**/[^_]*.yaml', base: './src/content/sponsors' }), |
| 49 | +}); |
| 50 | + |
| 51 | +const teams = defineCollection({ |
| 52 | + loader: glob({ pattern: '**/[^_]*.{md,mdx}', base: './src/content/teams' }), |
| 53 | +}); |
| 54 | + |
| 55 | +// The following collections have been auto-generated: blog, community, download, explore, landing, landing-features, learning-manuals, menus, research, sponsors, teams |
| 56 | + |
| 57 | +export const collections = { |
| 58 | + blog, |
| 59 | + community, |
| 60 | + download, |
| 61 | + explore, |
| 62 | + landing, |
| 63 | + landingFeatures, |
| 64 | + learningManuals, |
| 65 | + menus, |
| 66 | + sponsors, |
| 67 | + teams, |
| 68 | +}; |
0 commit comments