refactor: Phase 14 consistency pass — remove duplicate, fix breadcrumbs, header nav, DocForm
CI / typecheck + build (turbo) (push) Canceled after 0s

- Delete apps/web/app/docs/page.tsx (superseded by generic [section]/page.tsx)
- Homepage: inline folder tree per section card (📁📄), removed Suspense
- Doc page breadcrumbs: dynamic path from doc.slug (was hardcoded 'Docs')
- Header nav: added Writeups/Research/Notes section links
- DocForm: parent folder dropdown populated from existing folders, slug read-
  only in edit mode, edit mode keeps section disabled, resolved slug shown
- create/page.tsx: use extractFoldersForSection from @mcpedia/core (dedup)
- Removed unused extractFoldersForSection import from page.tsx
This commit is contained in:
asepharyana committed 2026-08-21 09:02:55 +07:00
1 parent cc99bd2b74
commit b8d4fc97da
5 files changed
+228 -247

No files matched your search

+25
View File
@@ -10,6 +10,13 @@ export const metadata: Metadata = {
"A content-first knowledge base. Humans read the Web UI; AI agents use the MCP server. Both share one Core.",
};
const SECTIONS = [
{ id: "docs", label: "Documentation", icon: "📄" },
{ id: "writeups", label: "Writeups", icon: "📝" },
{ id: "research", label: "Research", icon: "🔬" },
{ id: "notes", label: "Notes", icon: "📌" },
] as const;
export default function RootLayout({
children,
}: {
@@ -30,6 +37,24 @@ export default function RootLayout({
>
Docs
</Link>
<Link
href="/writeups"
className="text-[#d0d6e0] hover:text-[#f7f8f8] transition-colors"
>
Writeups
</Link>
<Link
href="/research"
className="text-[#d0d6e0] hover:text-[#f7f8f8] transition-colors"
>
Research
</Link>
<Link
href="/notes"
className="text-[#d0d6e0] hover:text-[#f7f8f8] transition-colors"
>
Notes
</Link>
<Link
href="/search"
className="text-[#d0d6e0] hover:text-[#f7f8f8] transition-colors"