chore: migrate astro v5

This commit is contained in:
oekazuma 2024-12-24 10:55:18 +09:00
parent 39b4001617
commit b519dfbb2d
3 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,7 @@
import { defineCollection } from 'astro:content';
import { docsLoader } from '@astrojs/starlight/loaders';
import { docsSchema } from '@astrojs/starlight/schema';
export const collections = {
docs: defineCollection({ schema: docsSchema() })
docs: defineCollection({ loader: docsLoader(), schema: docsSchema() })
};

3
docs/src/env.d.ts vendored
View File

@ -1,3 +0,0 @@
// eslint-disable-next-line @typescript-eslint/triple-slash-reference
/// <reference path="../.astro/types.d.ts" />
/// <reference types="astro/client" />

View File

@ -1,3 +1,5 @@
{
"extends": "astro/tsconfigs/strict"
"extends": "astro/tsconfigs/strict",
"include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}