From 78d0b1e1926b04cdf805cf1a85ce548d4f5d1119 Mon Sep 17 00:00:00 2001 From: Daniel <101145494+dan-jan@users.noreply.github.com> Date: Tue, 6 Feb 2024 23:17:01 +0800 Subject: [PATCH] Remove /events page that was causing errors --- docs/docs/events/README.mdx | 20 ------------ docs/docusaurus.config.js | 61 +++++++++++++++++++------------------ docs/sidebars.js | 2 -- 3 files changed, 32 insertions(+), 51 deletions(-) delete mode 100644 docs/docs/events/README.mdx diff --git a/docs/docs/events/README.mdx b/docs/docs/events/README.mdx deleted file mode 100644 index 92d9cd5f1..000000000 --- a/docs/docs/events/README.mdx +++ /dev/null @@ -1,20 +0,0 @@ ---- -title: Events -slug: /events -description: Jan is a ChatGPT-alternative that runs on your own computer, with a local API server. -keywords: - [ - Jan AI, - Jan, - ChatGPT alternative, - local AI, - private AI, - conversational AI, - no-subscription fee, - large language model, - ] ---- - -import DocCardList from "@theme/DocCardList"; - - \ No newline at end of file diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js index a874752d3..0986e0d70 100644 --- a/docs/docusaurus.config.js +++ b/docs/docusaurus.config.js @@ -257,47 +257,50 @@ const config = { positionL: "left", label: "Ecosystem", }, + { + type: "docSidebar", + sidebarId: "partnerSidebar", + position: "left", + label: "Partners", + }, { type: "docSidebar", sidebarId: "pricingSidebar", positionL: "left", label: "Pricing", }, - // { - // type: "docSidebar", - // sidebarId: "guidesSidebar", - // position: "left", - // label: "Guides", - // }, - // { - // type: "docSidebar", - // sidebarId: "developerSidebar", - // position: "left", - // label: "Developer", - // }, - // { - // position: "left", - // to: "/api-reference", - // label: "API Reference", - // }, - // { - // type: "docSidebar", - // position: "left", - // sidebarId: "docsSidebar", - // label: "Framework", - // }, // Navbar right + { + type: "dropdown", + label: "Docs", + position: "right", + items: [ + { + type: "docSidebar", + sidebarId: "guidesSidebar", + label: "User Guide", + }, + { + type: "docSidebar", + sidebarId: "developerSidebar", + label: "Developer", + }, + { + to: "/api-reference", + label: "API Reference", + }, + { + type: "docSidebar", + sidebarId: "docsSidebar", + label: "Framework", + }, + ], + }, { to: "blog", label: "Blog", position: "right", }, - { - type: "docSidebar", - sidebarId: "partnerSidebar", - position: "right", - label: "Partners", - }, { type: "docSidebar", sidebarId: "aboutSidebar", diff --git a/docs/sidebars.js b/docs/sidebars.js index c63a2962a..2b3061ffc 100644 --- a/docs/sidebars.js +++ b/docs/sidebars.js @@ -120,14 +120,12 @@ const sidebars = { dirName: "guides", }, ], - developerSidebar: [ { type: "autogenerated", dirName: "developer", }, ], - docsSidebar: [ { type: "autogenerated",