feat(docs): add comprehensive documentation page with sidebar navigation

- Create /docs page with complete TPMJS documentation
- Add sidebar navigation with section tracking
- Document SDK reference (registrySearchTool, registryExecuteTool)
- Document REST API endpoints
- Document publishing guide and TPMJS specification
- Add advanced sections (override execute, custom wrappers, self-hosting)
- Include FAQ and troubleshooting sections
- Add Docs link to main navigation header

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

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Ajax Davis 2025-12-14 13:00:21 +10:00
parent 604deb224a
commit 9f1f93b532
3 changed files with 1085 additions and 0 deletions

View file

@ -0,0 +1,16 @@
import type { Metadata } from 'next';
export const metadata: Metadata = {
title: 'Documentation | TPMJS',
description:
'Complete documentation for TPMJS - the registry for AI tools. Learn how to use the SDK, API, and publish your own tools.',
openGraph: {
title: 'TPMJS Documentation',
description:
'Complete documentation for TPMJS - the registry for AI tools. Learn how to use the SDK, API, and publish your own tools.',
},
};
export default function DocsLayout({ children }: { children: React.ReactNode }) {
return children;
}

File diff suppressed because it is too large Load diff

View file

@ -28,6 +28,11 @@ export function AppHeader(): React.ReactElement {
Tools
</Button>
</Link>
<Link href="/docs">
<Button variant="ghost" size="sm" className="text-foreground hover:text-foreground">
Docs
</Button>
</Link>
<Link href="/how-it-works">
<Button variant="ghost" size="sm" className="text-foreground hover:text-foreground">
How It Works