Skip to content

Commit b81ea85

Browse files
Paul Mulliganclaude
andcommitted
feat(docs): archive 1.x docs with starlight-versions switcher
Replaces an autolink with a regular markdown link in local-development.md; autolinks are invalid in MDX, which the version archiver converts pages to. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 5929cdd commit b81ea85

32 files changed

Lines changed: 1631 additions & 18 deletions

docs/astro.config.mjs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,22 @@
11
// @ts-check
22
import { defineConfig } from "astro/config";
33
import starlight from "@astrojs/starlight";
4+
import starlightVersions from "starlight-versions";
45

56
// https://astro.build/config
67
export default defineConfig({
78
site: "https://claudius-docs.pages.dev",
89
integrations: [
910
starlight({
1011
title: "Claudius",
12+
plugins: [
13+
// Archives a copy of the docs per major release line. When v2 ships,
14+
// add a "2.x" entry here; the previous line stays browsable via the
15+
// version switcher.
16+
starlightVersions({
17+
versions: [{ slug: "1.x", label: "v1.x" }],
18+
}),
19+
],
1120
description:
1221
"Embeddable AI chat widget powered by Claude. React component + standalone script embed, backed by Cloudflare Workers.",
1322
social: [

docs/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"dependencies": {
1414
"@astrojs/starlight": "^0.40.0",
1515
"astro": "^6.4.5",
16-
"sharp": "^0.34.5"
16+
"sharp": "^0.34.5",
17+
"starlight-versions": "^0.9.0"
1718
}
1819
}

docs/pnpm-lock.yaml

Lines changed: 111 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)