diff --git a/website/docs/home.md b/website/docs/home.md new file mode 100644 index 000000000..1ebfcebe5 --- /dev/null +++ b/website/docs/home.md @@ -0,0 +1,12 @@ +--- +title: Home +sidebar_label: Home +slug: /home +hide_table_of_contents: true +hide_title: true +custom_edit_url: null +--- + +import DocsHome from '@site/src/components/docs-widgets/DocsHome'; + + diff --git a/website/sidebars.ts b/website/sidebars.ts index 16ccd3952..1014b2f49 100644 --- a/website/sidebars.ts +++ b/website/sidebars.ts @@ -12,6 +12,11 @@ import type { SidebarsConfig } from "@docusaurus/plugin-content-docs"; */ const sidebars: SidebarsConfig = { docs: [ + { + type: "doc", + id: "home", + label: "Home", + }, { type: "category", label: "Get Started", diff --git a/website/src/components/doc-navbar/index.tsx b/website/src/components/doc-navbar/index.tsx index 6dbac3348..15f51b40b 100644 --- a/website/src/components/doc-navbar/index.tsx +++ b/website/src/components/doc-navbar/index.tsx @@ -18,11 +18,17 @@ type TabConfig = { }; const tabs: TabConfig[] = [ + { + id: "home", + label: "Home", + href: "/docs/home/", + match: (pathname) => pathname === "/docs/home/" || pathname === "/docs/home", + }, { id: "voltagent", - label: "VoltAgent Docs", + label: "VoltAgent", href: "/docs/", - match: (pathname) => pathname.startsWith("/docs/"), + match: (pathname) => pathname.startsWith("/docs/") && !pathname.startsWith("/docs/home"), }, { id: "observability", @@ -78,8 +84,8 @@ export default function DocNavbar() {