We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d11750c commit bcd9fbeCopy full SHA for bcd9fbe
doc/starlight/src/content.config.ts
@@ -1,13 +1,11 @@
1
import { defineCollection, z } from "astro:content";
2
-import { glob, type Loader } from "astro/loaders";
+import { type Loader } from "astro/loaders";
3
+import { docsLoader } from "@astrojs/starlight/loaders";
4
import { docsSchema } from "@astrojs/starlight/schema";
5
import { promises as fs } from "node:fs";
6
7
export const collections = {
- docs: defineCollection({
8
- loader: glob({ pattern: "**/*.(md|mdx)", base: "../guides" }),
9
- schema: docsSchema(),
10
- }),
+ docs: defineCollection({ loader: docsLoader(), schema: docsSchema() }),
11
changelog: defineCollection({
12
loader: changelogLoader(),
13
schema: z.object({
doc/starlight/src/content/docs
@@ -0,0 +1 @@
+../../../guides
0 commit comments