feat: add v2.0.0 spec and fix related issues

- Fix update-specs to handle ATX-style headings (# Title)
- Fix version selector dropdown to expand for longer version strings

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-13 10:41:42 +00:00
parent bd680be110
commit 69c730f463
4 changed files with 384 additions and 2 deletions

View File

@@ -179,7 +179,8 @@ async function fetchSpec(version: string): Promise<Spec> {
}
// Extract title from first line (after version replacement)
const title = lines[0];
// Handle both ATX-style (# Title) and setext-style (Title\n===) headings
const title = lines[0].replace(/^#\s+/, "");
// Build body with frontmatter
const body = updateConfig.bodyTemplate