feat: add Bugs & Fixes category to documentation

Added new "Bugs" group to release notes system for documenting
bug fixes and troubleshooting guides.

Changes:
- Added "Bugs & Fixes" group to _index.json (order: 4)
- Added "webpack-module-resolution" category under bugs group
- Created comprehensive MDX documentation for webpack fix
- Updated TypeScript types to include 'bugs' as valid group
- Updated sort order in getAllReleases() function
- Updated getReleasesGrouped() to include bugs filter
- Updated sidebar to expand bugs group by default

Content:
- Detailed webpack module resolution bug documentation
- Root cause analysis with technical explanation
- Solution implementation with code examples
- Prevention best practices
- Quick reference troubleshooting table
- Related issues and future improvements

Structure:
Group: Bugs & Fixes (order: 4)
└── Webpack Module Resolution (order: 10)
    - Error: Cannot read properties of undefined (reading 'call')
    - Fix: Wrapper component pattern
    - Status: Completed
    - Version: 0.2.1

This creates a dedicated space for documenting production issues,
their solutions, and lessons learned for future reference.
This commit is contained in:
colinislit
2025-11-19 21:45:22 +01:00
parent e2a4fc68b7
commit 1cfb837e33
4 changed files with 360 additions and 3 deletions

View File

@@ -13,7 +13,7 @@ const RELEASES_DIR = path.join(process.cwd(), 'content/nl/releases')
export interface ReleaseFrontmatter {
title: string
category: string
group: 'foundation' | 'features' | 'infrastructure'
group: 'foundation' | 'features' | 'infrastructure' | 'bugs'
version: string
releaseDate: string
status: 'completed' | 'in_progress' | 'planned'
@@ -49,7 +49,7 @@ export async function getAllReleases(): Promise<ReleaseNote[]> {
// Sort by group order and then by category
return releases.sort((a, b) => {
const groupOrder = { foundation: 1, features: 2, infrastructure: 3 }
const groupOrder = { foundation: 1, features: 2, infrastructure: 3, bugs: 4 }
const aOrder = groupOrder[a.frontmatter.group]
const bOrder = groupOrder[b.frontmatter.group]
@@ -79,7 +79,7 @@ export async function getRelease(slug: string): Promise<ReleaseNote | null> {
}
/**
* Get releases grouped by their group (foundation, features, infrastructure)
* Get releases grouped by their group (foundation, features, infrastructure, bugs)
*/
export async function getReleasesGrouped() {
const releases = await getAllReleases()
@@ -88,6 +88,7 @@ export async function getReleasesGrouped() {
foundation: releases.filter(r => r.frontmatter.group === 'foundation'),
features: releases.filter(r => r.frontmatter.group === 'features'),
infrastructure: releases.filter(r => r.frontmatter.group === 'infrastructure'),
bugs: releases.filter(r => r.frontmatter.group === 'bugs'),
}
}