Skip to content

Commit f3c16c6

Browse files
chriscrosstalkclaude
authored andcommitted
fix(docs): display FAQ as uppercase in sidebar
Add title override map so 'faq' displays as 'FAQ' instead of 'Faq'. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 184e96d commit f3c16c6

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

admin/app/services/docs_service.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,17 @@ export class DocsService {
8181
}
8282
}
8383

84+
private static readonly TITLE_OVERRIDES: Record<string, string> = {
85+
'faq': 'FAQ',
86+
}
87+
8488
private prettify(filename: string) {
89+
const slug = filename.replace(/\.md$/, '')
90+
if (DocsService.TITLE_OVERRIDES[slug]) {
91+
return DocsService.TITLE_OVERRIDES[slug]
92+
}
8593
// Remove hyphens, underscores, and file extension
86-
const cleaned = filename.replace(/_/g, ' ').replace(/\.md$/, '').replace(/-/g, ' ')
94+
const cleaned = slug.replace(/_/g, ' ').replace(/-/g, ' ')
8795
// Convert to Title Case
8896
const titleCased = cleaned.replace(/\b\w/g, (char) => char.toUpperCase())
8997
return titleCased.charAt(0).toUpperCase() + titleCased.slice(1)

0 commit comments

Comments
 (0)