Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

fix: nav and category

Louise67c005eb53f
diff --git a/docs/src/components/NavbarExtraContent.tsx b/docs/src/components/NavbarExtraContent.tsx
deleted file mode 100644
index e9762d4ce..000000000
--- a/docs/src/components/NavbarExtraContent.tsx
+++ /dev/null
@@ -1,31 +0,0 @@
-import { FaDiscord, FaGithub } from 'react-icons/fa'
-import { FaXTwitter, FaLinkedinIn } from 'react-icons/fa6'
-import { FiDownload } from 'react-icons/fi'
-import { Button } from './ui/button'
-
-export default function NavbarExtraContent() {
- return (
- <div className="flex items-center gap-4">
- <div className="hidden lg:flex items-center gap-3 text-black">
- <a href="https://discord.com/invite/FTk2MvZwJH" target="_blank" rel="noopener noreferrer" aria-label="Discord">
- <FaDiscord className="size-5" />
- </a>
- <a href="https://twitter.com/jandotai" target="_blank" rel="noopener noreferrer" aria-label="Twitter">
- <FaXTwitter className="size-5" />
- </a>
- <a href="https://linkedin.com/company/opensuperintelligence" target="_blank" rel="noopener noreferrer" aria-label="LinkedIn">
- <FaLinkedinIn className="size-5" />
- </a>
- <a href="https://github.com/janhq/jan" target="_blank" rel="noopener noreferrer" aria-label="GitHub">
- <FaGithub className="size-5" />
- </a>
- </div>
- <a href="https://github.com/janhq/jan/releases/latest" target="_blank" rel="noopener noreferrer">
- <Button size="sm" className="bg-black text-white hover:bg-gray-800 hidden lg:flex items-center gap-1">
- <FiDownload className="size-4" />
- Download
- </Button>
- </a>
- </div>
- )
-}
diff --git a/docs/src/pages/docs/desktop/_meta.json b/docs/src/pages/docs/desktop/_meta.json
index 8eaa19ed0..8a4503a98 100644
--- a/docs/src/pages/docs/desktop/_meta.json
+++ b/docs/src/pages/docs/desktop/_meta.json
@@ -32,7 +32,7 @@
"title": "Jan Servers",
"type": "separator"
},
- "api-preference": "API Preference",
+ "api-preference": "API Reference",
"llama-cpp-server": "LlamaCpp Server",
"mlx-server": "MLX Server",
"server-troubleshooting": "Server Troubleshooting",
diff --git a/docs/src/pages/docs/desktop/api-preference.mdx b/docs/src/pages/docs/desktop/api-preference.mdx
index 679ed601e..39901326d 100644
--- a/docs/src/pages/docs/desktop/api-preference.mdx
+++ b/docs/src/pages/docs/desktop/api-preference.mdx
@@ -1,5 +1,5 @@
---
-title: API Preference
+title: API Reference
description: API endpoints supported by Jan's local API server
keywords:
[
@@ -17,7 +17,7 @@ import { Callout } from 'nextra/components'
import { DocCard, DocCards } from '@/components/DocCard'
import { Bot, Code2 } from 'lucide-react'
-# API Preference
+# API Reference
Jan's local API server exposes an OpenAI-compatible REST API at `http://127.0.0.1:1337`. Use it as a drop-in replacement for cloud APIs in any application that supports OpenAI-compatible endpoints.
diff --git a/docs/theme.config.tsx b/docs/theme.config.tsx
index e1bfd43af..a2a77bb2a 100644
--- a/docs/theme.config.tsx
+++ b/docs/theme.config.tsx
@@ -4,7 +4,12 @@ import LogoMark from '@/components/LogoMark'
import FooterMenu from '@/components/FooterMenu'
import JSONLD from '@/components/JSONLD'
import { useRouter } from 'next/router'
-import NavbarExtraContent from '@/components/NavbarExtraContent'
+import Link from 'next/link'
+import { LibraryBig, Blocks, BrainCircuit, Computer } from 'lucide-react'
+import { AiOutlineGithub } from 'react-icons/ai'
+import { BiLogoDiscordAlt } from 'react-icons/bi'
+import { RiTwitterXFill } from 'react-icons/ri'
+import Navbar from '@/components/Navbar'
const defaultUrl = 'https://jan.ai'
const defaultImage = 'https://jan.ai/assets/images/general/og-image.png'
@@ -47,7 +52,7 @@ const config: DocsThemeConfig = {
}
},
navbar: {
- extraContent: <NavbarExtraContent />,
+ component: <Navbar />,
},
sidebar: {
defaultMenuCollapseLevel: 1,