Commit graph

3 commits

Author SHA1 Message Date
TheFlow
bf187ff411 fix: add excerpt, readingTime, sections for all glossary translations 2025-11-01 13:05:22 +13:00
TheFlow
40488a3d7c fix: handle undefined technicalLevel in cards and set glossary category
- Added null check for section.technicalLevel (defaults to 'basic')
- Prevents "Cannot read properties of undefined (reading 'charAt')" error
- Updated fix-glossary-structure.js to set category: 'getting-started'
- Moves glossary back to Getting Started section where it belongs

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-01 11:41:18 +13:00
TheFlow
2b18206328 feat: fix glossary structure with embedded translations and sections
- Created fix-glossary-structure.js to properly structure glossary
- Parses h2 headings into sections for card view (16 sections)
- Embeds German and French translations (not separate documents)
- Deletes duplicate/separate glossary documents
- Normalizes slug to lowercase 'glossary'

Translation structure matches existing documents (introduction, etc):
- translations.de.{title, content_markdown, content_html, toc, metadata}
- translations.fr.{title, content_markdown, content_html, toc, metadata}

Fixes:
- Card view now works (sections present)
- Language toggle works (embedded translations)
- One glossary entry in docs list (not three)
- All three PDFs accessible

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-01 11:37:02 +13:00