wip: improve update-specs script

This commit is contained in:
2026-01-11 09:07:34 +00:00
parent 1eab53b7ba
commit 164729b57e
27 changed files with 998 additions and 857 deletions

View File

@@ -14,9 +14,10 @@ import { parseSpecContent } from "../utils/parseSpecContent";
interface Props {
spec: CollectionEntry<"spec">;
versions: string[];
}
const { spec } = Astro.props;
const { spec, versions } = Astro.props;
const version = spec.data.version;
// Read the markdown file
@@ -31,10 +32,10 @@ const parsed = await parseSpecContent(markdown, version);
---
<BaseLayout title={spec.data.title}>
<Header version={version} />
<Header version={version} versions={versions} />
<main>
<Hero version={version} svgPath={parsed.svgPath} />
<Hero version={version} versions={versions} svgPath={parsed.svgPath} />
<AboutSection
introduction={parsed.introduction}