docs: migrate documentation from VitePress to Starlight (#361)

- Replace VitePress with Astro Starlight for documentation
- Reorganize document structure with better hierarchy
- Split large documents into sub-modules for better readability
- Add new sections: component, entity-query, serialization, system
- Support both Chinese (default) and English documentation
- Add responsive design and improved navigation
This commit is contained in:
YHH
2025-12-27 12:54:53 +08:00
committed by GitHub
parent fac4bc19c5
commit 89cdfe396b
151 changed files with 14280 additions and 11489 deletions

View File

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