Skip to content

Commit bcd9fbe

Browse files
committed
doc/starlight: use symlink for docs path
Co-authored-by: Ann🐸 <[email protected]> Revert package.json push
1 parent d11750c commit bcd9fbe

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

doc/starlight/src/content.config.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
import { defineCollection, z } from "astro:content";
2-
import { glob, type Loader } from "astro/loaders";
2+
import { type Loader } from "astro/loaders";
3+
import { docsLoader } from "@astrojs/starlight/loaders";
34
import { docsSchema } from "@astrojs/starlight/schema";
45
import { promises as fs } from "node:fs";
56

67
export const collections = {
7-
docs: defineCollection({
8-
loader: glob({ pattern: "**/*.(md|mdx)", base: "../guides" }),
9-
schema: docsSchema(),
10-
}),
8+
docs: defineCollection({ loader: docsLoader(), schema: docsSchema() }),
119
changelog: defineCollection({
1210
loader: changelogLoader(),
1311
schema: z.object({

doc/starlight/src/content/docs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../guides

0 commit comments

Comments
 (0)