Skip to content

Commit c6b6f61

Browse files
Use one big json file for external resources
1 parent 8100c20 commit c6b6f61

File tree

202 files changed

+1404
-1202
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

202 files changed

+1404
-1202
lines changed

src/content/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { defineCollection, z } from 'astro:content';
22
import { docsLoader } from '@astrojs/starlight/loaders';
33
import { docsSchema } from '@astrojs/starlight/schema';
4-
import { glob } from 'astro/loaders';
4+
import { file } from 'astro/loaders';
55
import { minVersion, outside, validRange } from 'semver';
66
import pkg from '../../package.json';
77

@@ -29,7 +29,7 @@ const starlightSchema = defineCollection({
2929
});
3030

3131
const resourcesSchema = defineCollection({
32-
loader: glob({ pattern: '**/*.json', base: './src/content/resources' }),
32+
loader: file('src/content/resources.json'),
3333
schema: z.object({
3434
tags: z.array(z.string()),
3535
title: z.string(),

0 commit comments

Comments
 (0)