Files
docs.grlx.dev/src/content.config.ts
Tai Groot 1b177f3df2 feat: add doc versioning with starlight-versions
- Install starlight-versions plugin for version dropdown UI
- Archive current stable docs as v1.0.5 (slug: 1.0)
- Current/latest version labeled v2.0-alpha
- Add new alpha feature docs: SSH, cohorts, RBAC, audit logging, sprouts
- Update glossary with cross-references to new pages
- Update sidebar with Security section and new pages
- Upgrade to Astro 6, Starlight 0.38, starlight-tailwind 5, ESLint 10
- Migrate content config to src/content.config.ts with loaders
- Fix all prettier formatting issues
2026-03-16 07:07:29 +00:00

10 lines
393 B
TypeScript

import { docsLoader } from '@astrojs/starlight/loaders'
import { docsSchema } from '@astrojs/starlight/schema'
import { defineCollection } from 'astro:content'
import { docsVersionsLoader } from 'starlight-versions/loader'
export const collections = {
docs: defineCollection({ loader: docsLoader(), schema: docsSchema() }),
versions: defineCollection({ loader: docsVersionsLoader() }),
}