UI/UX polish: fix doc type capitalization, sidebar tree depth cues, homepage doc-title tree

- Doc page: capitalize doc type (Documentation not documentation)
- Sidebar: tree-style with border-l per depth level, section separators
- Homepage: use doc titles from DB for tree nodes (not path segments)
- CustomFieldBadges: body field excluded from badges (added to STANDARD_KEYS)
- All section config centralized in packages/config/src/sections.ts
This commit is contained in:
asepharyana
2026-08-21 11:33:42 +07:00
parent e8ed5980fc
commit a937e8f51b
+2 -2
View File
@@ -390,8 +390,8 @@ export default async function DocPage({ params, searchParams }: DocPageProps) {
<span className="uppercase">{sectionInfo.label}</span>
</span>
<span className="text-xs text-[var(--text-dim)]">·</span>
<span className="text-xs text-[var(--text-muted)] capitalize">
{doc.type}
<span className="text-xs text-[var(--text-muted)]">
{doc.type.charAt(0).toUpperCase() + doc.type.slice(1)}
</span>
<span className="text-xs text-[var(--text-dim)]">·</span>
<span className="text-xs text-[var(--text-muted)] font-mono">