Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit a7a7b16

Browse files
committed
chore: add enteprise menu navbar and button action shedule a call
1 parent 3c4eebd commit a7a7b16

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

docs/docusaurus.config.ts

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const formattedDate = `${month}-${day}-${year}`;
2020

2121
async function fetchDataDaily(date: string) {
2222
const response = await fetch(
23-
`https://delta.jan.ai/openai-api-collection-test/${date}.json`,
23+
`https://delta.jan.ai/openai-api-collection-test/${date}.json`
2424
);
2525
if (!response.ok) {
2626
return {};
@@ -120,7 +120,7 @@ const config: Config = {
120120
try {
121121
let refs = {};
122122
const response = await fetch(
123-
`https://huggingface.co/api/models/${model.name}/refs`,
123+
`https://huggingface.co/api/models/${model.name}/refs`
124124
);
125125
refs = await response.json();
126126
fetchedModels.push({
@@ -153,7 +153,7 @@ const config: Config = {
153153
path: `/models/${page.name.replace("cortexso/", "")}`,
154154
// the page component used to render the page
155155
component: require.resolve(
156-
"./src/components/MyModelPage/index.tsx",
156+
"./src/components/MyModelPage/index.tsx"
157157
),
158158
// will only match for exactly matching paths
159159
exact: true,
@@ -164,7 +164,7 @@ const config: Config = {
164164
// in this case, we merge the page data together with the loaded content data
165165
customData: { ...page },
166166
});
167-
}),
167+
})
168168
);
169169
} catch (error) {
170170
console.error("Error fetching models:", error);
@@ -201,7 +201,7 @@ const config: Config = {
201201
changelog.sort(
202202
(a, b) =>
203203
new Date(b.frontmatter.date).getTime() -
204-
new Date(a.frontmatter.date).getTime(),
204+
new Date(a.frontmatter.date).getTime()
205205
);
206206
setGlobalData(changelog);
207207
},
@@ -214,7 +214,7 @@ const config: Config = {
214214
async contentLoaded({ content, actions }) {
215215
const { setGlobalData } = actions;
216216
const fetchRepoInfo = await fetch(
217-
"https://api.github.com/repos/janhq/cortex.cpp",
217+
"https://api.github.com/repos/janhq/cortex.cpp"
218218
);
219219
const repoInfo = await fetchRepoInfo.json();
220220
setGlobalData(repoInfo);
@@ -227,7 +227,7 @@ const config: Config = {
227227
async contentLoaded({ content, actions }) {
228228
const { setGlobalData } = actions;
229229
const fetchLatestRelease = await fetch(
230-
"https://api.github.com/repos/janhq/cortex.cpp/releases/latest",
230+
"https://api.github.com/repos/janhq/cortex.cpp/releases/latest"
231231
);
232232
const latestRelease = await fetchLatestRelease.json();
233233
setGlobalData(latestRelease);
@@ -240,7 +240,7 @@ const config: Config = {
240240
async contentLoaded({ content, actions }) {
241241
const { setGlobalData } = actions;
242242
const fetchTotalCoverage = await fetch(
243-
"https://delta.jan.ai/openai-api-collection-test/total-coverage.json",
243+
"https://delta.jan.ai/openai-api-collection-test/total-coverage.json"
244244
);
245245
const totalCoverage = await fetchTotalCoverage.json();
246246
setGlobalData(totalCoverage);
@@ -275,7 +275,7 @@ const config: Config = {
275275
route: "/api-reference",
276276
configuration: {
277277
spec: {
278-
url: "/openapi/cortex.json",
278+
url: "/openapi/jan.json",
279279
},
280280
hideModels: true,
281281
},
@@ -410,6 +410,7 @@ const config: Config = {
410410
items: [
411411
{ to: "/models", label: "Models", position: "left" },
412412
{ to: "/changelog", label: "Changelog", position: "left" },
413+
{ to: "/contact", label: "Enterprise", position: "left" },
413414
{
414415
type: "doc",
415416
position: "right",

docs/src/containers/Homepage/SimpleHeroSection/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ const SimpleHeroSection = () => {
2828

2929
<div className="mt-8 flex gap-8 justify-center items-center">
3030
<DropdownDownload lastRelease={latestRelease} />
31-
<Link href="/docs/quickstart" target="_blank">
32-
<Button theme="secondary">Documentation</Button>
31+
<Link href="/contact" target="_blank">
32+
<Button theme="secondary">Schedule a Call</Button>
3333
</Link>
3434
</div>
3535
</div>

0 commit comments

Comments
 (0)