Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions docs/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const formattedDate = `${month}-${day}-${year}`;

async function fetchDataDaily(date: string) {
const response = await fetch(
`https://delta.jan.ai/openai-api-collection-test/${date}.json`,
`https://delta.jan.ai/openai-api-collection-test/${date}.json`
);
if (!response.ok) {
return {};
Expand Down Expand Up @@ -120,7 +120,7 @@ const config: Config = {
try {
let refs = {};
const response = await fetch(
`https://huggingface.co/api/models/${model.name}/refs`,
`https://huggingface.co/api/models/${model.name}/refs`
);
refs = await response.json();
fetchedModels.push({
Expand Down Expand Up @@ -153,7 +153,7 @@ const config: Config = {
path: `/models/${page.name.replace("cortexso/", "")}`,
// the page component used to render the page
component: require.resolve(
"./src/components/MyModelPage/index.tsx",
"./src/components/MyModelPage/index.tsx"
),
// will only match for exactly matching paths
exact: true,
Expand All @@ -164,7 +164,7 @@ const config: Config = {
// in this case, we merge the page data together with the loaded content data
customData: { ...page },
});
}),
})
);
} catch (error) {
console.error("Error fetching models:", error);
Expand Down Expand Up @@ -201,7 +201,7 @@ const config: Config = {
changelog.sort(
(a, b) =>
new Date(b.frontmatter.date).getTime() -
new Date(a.frontmatter.date).getTime(),
new Date(a.frontmatter.date).getTime()
);
setGlobalData(changelog);
},
Expand All @@ -214,7 +214,7 @@ const config: Config = {
async contentLoaded({ content, actions }) {
const { setGlobalData } = actions;
const fetchRepoInfo = await fetch(
"https://api.github.com/repos/janhq/cortex.cpp",
"https://api.github.com/repos/janhq/cortex.cpp"
);
const repoInfo = await fetchRepoInfo.json();
setGlobalData(repoInfo);
Expand All @@ -227,7 +227,7 @@ const config: Config = {
async contentLoaded({ content, actions }) {
const { setGlobalData } = actions;
const fetchLatestRelease = await fetch(
"https://api.github.com/repos/janhq/cortex.cpp/releases/latest",
"https://api.github.com/repos/janhq/cortex.cpp/releases/latest"
);
const latestRelease = await fetchLatestRelease.json();
setGlobalData(latestRelease);
Expand All @@ -240,7 +240,7 @@ const config: Config = {
async contentLoaded({ content, actions }) {
const { setGlobalData } = actions;
const fetchTotalCoverage = await fetch(
"https://delta.jan.ai/openai-api-collection-test/total-coverage.json",
"https://delta.jan.ai/openai-api-collection-test/total-coverage.json"
);
const totalCoverage = await fetchTotalCoverage.json();
setGlobalData(totalCoverage);
Expand Down Expand Up @@ -275,7 +275,7 @@ const config: Config = {
route: "/api-reference",
configuration: {
spec: {
url: "/openapi/cortex.json",
url: "/openapi/jan.json",
},
hideModels: true,
},
Expand Down Expand Up @@ -410,6 +410,7 @@ const config: Config = {
items: [
{ to: "/models", label: "Models", position: "left" },
{ to: "/changelog", label: "Changelog", position: "left" },
{ to: "/contact", label: "Enterprise", position: "left" },
{
type: "doc",
position: "right",
Expand Down
9 changes: 5 additions & 4 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@
"typecheck": "tsc"
},
"dependencies": {
"@calcom/embed-react": "^1.5.1",
"@code-hike/mdx": "^0.9.0",
"@docsearch/js": "^3.6.0",
"@docsearch/react": "^3.6.0",
"@docusaurus/core": "3.4.0",
"@docusaurus/preset-classic": "^3.4.0",
"@docusaurus/theme-live-codeblock": "^3.4.0",
"@docusaurus/theme-mermaid": "^3.4.0",
"@docusaurus/core": "^3.5.2",
"@docusaurus/preset-classic": "^3.5.2",
"@docusaurus/theme-live-codeblock": "^3.5.2",
"@docusaurus/theme-mermaid": "^3.5.2",
"@excalidraw/excalidraw": "^0.17.6",
"@huggingface/hub": "^0.15.1",
"@mdx-js/react": "3.0.1",
Expand Down
7 changes: 3 additions & 4 deletions docs/src/components/Announcement/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@ const Announcement = () => {
<div className="inline-flex items-center justify-center alert px-4 py-3 rounded-xl mx-auto bg-indigo-500 border border-solid border-indigo-800">
{/* Please change this when cortex stable we can use from latest release endpoint */}
<div className="flex items-center gap-2">
<span>🚧</span>
<span>🎉</span>
<p className="mb-0 text-neutral-100 font-medium">
Cortex.cpp v1.0 is now live on github.
<a href="/docs" className="no-underline hover:no-underline">
<a href="https://github.com/janhq/cortex.cpp/releases/tag/v1.0.1" className="no-underline hover:no-underline">
{" "}
Read more
Cortex.cpp v1.0 is now live on GitHub. Check it out!
</a>
</p>
</div>
Expand Down
18 changes: 18 additions & 0 deletions docs/src/components/PartnerForm/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import Cal, { getCalApi } from "@calcom/embed-react";
import { useEffect } from "react";
export default function MyApp() {
useEffect(()=>{
(async function () {
const cal = await getCalApi({"namespace":"cortex"});
cal("ui", {"styles":{"branding":{"brandColor":"#000000"}},"hideEventTypeDetails":false,"layout":"month_view"});
})();
}, [])
return <Cal namespace="cortex"
calLink="team/homebrew/cortex"
style={{width:"100%",height:"100%",overflow:"scroll"}}
config={{"layout":"month_view"}}


/>;
};

4 changes: 2 additions & 2 deletions docs/src/containers/Homepage/SimpleHeroSection/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ const SimpleHeroSection = () => {

<div className="mt-8 flex gap-8 justify-center items-center">
<DropdownDownload lastRelease={latestRelease} />
<Link href="/docs/quickstart" target="_blank">
<Button theme="secondary">Documentation</Button>
<Link href="/contact" target="_blank">
<Button theme="secondary">Schedule a Call</Button>
</Link>
</div>
</div>
Expand Down
8 changes: 8 additions & 0 deletions docs/src/pages/contact.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
title: "Cortex Enterprise"
description: "Cortex lets you run AI models locally on your device or server, enabling you to own your AI. For enterprise usage purposes, schedule a call with us here."
---

import PartnerForm from '@site/src/components/PartnerForm';

<PartnerForm />
Loading
Loading