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:
parent
604deb224a
commit
9f1f93b532
3 changed files with 1085 additions and 0 deletions
16
apps/web/src/app/docs/layout.tsx
Normal file
16
apps/web/src/app/docs/layout.tsx
Normal 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;
|
||||
}
|
||||
1064
apps/web/src/app/docs/page.tsx
Normal file
1064
apps/web/src/app/docs/page.tsx
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue