refactor: new devhub layout

This commit is contained in:
0xSage 2023-10-25 14:53:20 +07:00
parent 3865c802e6
commit 1fa17600ed
34 changed files with 111 additions and 113 deletions

View File

@ -0,0 +1,6 @@
---
sidebar_position: 1
title: Nitro
---
TODO

View File

@ -0,0 +1,6 @@
---
sidebar_position: 1
title: Architecture
---
TODO

View File

View File

View File

@ -0,0 +1,6 @@
---
sidebar_position: 1
title: How to Build a Jan App
---
TODO

View File

@ -0,0 +1,6 @@
---
sidebar_position: 2
title: How to Build RAG App
---
TODO

View File

@ -0,0 +1,6 @@
---
sidebar_position: 3
title: How to Publish a Jan App
---
TODO

View File

Before

Width:  |  Height:  |  Size: 388 KiB

After

Width:  |  Height:  |  Size: 388 KiB

View File

Before

Width:  |  Height:  |  Size: 945 KiB

After

Width:  |  Height:  |  Size: 945 KiB

View File

Before

Width:  |  Height:  |  Size: 2.2 MiB

After

Width:  |  Height:  |  Size: 2.2 MiB

View File

Before

Width:  |  Height:  |  Size: 453 KiB

After

Width:  |  Height:  |  Size: 453 KiB

View File

Before

Width:  |  Height:  |  Size: 349 KiB

After

Width:  |  Height:  |  Size: 349 KiB

View File

Before

Width:  |  Height:  |  Size: 553 KiB

After

Width:  |  Height:  |  Size: 553 KiB

View File

Before

Width:  |  Height:  |  Size: 636 KiB

After

Width:  |  Height:  |  Size: 636 KiB

View File

@ -139,16 +139,16 @@ const config = {
// Navbar right
// {
// type: "docSidebar",
// sidebarId: "docsSidebar",
// sidebarId: "guidesSidebar",
// position: "right",
// label: "Docs",
// },
// {
// type: "docSidebar",
// sidebarId: "hardwareSidebar",
// position: "right",
// label: "Hardware",
// label: "Guides",
// },
{
type: "docSidebar",
sidebarId: "docsSidebar",
position: "right",
label: "Developer",
},
// {
// position: "right",
// label: "API",

View File

@ -68,127 +68,95 @@ const sidebars = {
],
docsSidebar: [
{ type: "doc", label: "Getting Started", id: "docs/docs" },
{
type: "category",
label: "Install",
label: "Overview",
collapsible: true,
collapsed: false,
items: [
{ type: "doc", label: "Windows", id: "docs/install/windows" },
{ type: "doc", label: "Mac", id: "docs/install/mac" },
{ type: "doc", label: "Linux", id: "docs/install/linux" },
{
type: "doc",
label: "Architecture",
id: "docs/overview/architecture",
},
{
type: "doc",
label: "Concepts",
id: "docs/overview/concepts",
},
],
},
],
hardwareSidebar: [
// {
// type: "category",
// label: "Overview",
// collapsible: true,
// collapsed: true,
// link: { type: "doc", id: "hardware/hardware" },
// items: [
// {
// type: "doc",
// label: "Cloud vs. Self-Hosting",
// id: "hardware/overview/cloud-vs-self-hosting",
// },
// {
// type: "doc",
// label: "CPUs vs. GPUs",
// id: "hardware/overview/cpu-vs-gpu",
// },
// ],
// },
// {
// type: "category",
// label: "Recommendations",
// collapsible: true,
// collapsed: false,
// items: [
// {
// type: "doc",
// label: "By Hardware",
// id: "hardware/recommendations/by-hardware",
// },
// {
// type: "doc",
// label: "By Budget",
// id: "hardware/recommendations/by-budget",
// },
// {
// type: "doc",
// label: "By Model",
// id: "hardware/recommendations/by-model",
// },
// {
// type: "doc",
// label: "By Use Case",
// id: "hardware/recommendations/by-usecase",
// },
// ],
// },
// {
// type: "category",
// label: "Anatomy of a Thinking Machine",
// collapsible: true,
// collapsed: true,
// link: { type: "doc", id: "hardware/concepts/concepts" },
// items: [
// {
// type: "doc",
// label: "Chassis",
// id: "hardware/concepts/chassis",
// },
// {
// type: "doc",
// label: "Motherboard",
// id: "hardware/concepts/motherboard",
// },
// {
// type: "doc",
// label: "CPU and RAM",
// id: "hardware/concepts/cpu-and-ram",
// },
// {
// type: "doc",
// label: "GPU and VRAM",
// id: "hardware/concepts/gpu-and-vram",
// },
// {
// type: "doc",
// label: "Storage",
// id: "hardware/concepts/storage",
// },
// {
// type: "doc",
// label: "Network",
// id: "hardware/concepts/network",
// },
// {
// type: "doc",
// label: "Power Supply",
// id: "hardware/concepts/power",
// },
// ],
// },
{
type: "category",
label: "Hardware Examples",
label: "Reference",
collapsible: true,
collapsed: true,
link: { type: "doc", id: "hardware/community" },
collapsed: false,
items: [
{
type: "autogenerated",
dirName: "hardware/examples",
type: "doc",
label: "@janhq/core",
id: "docs/reference/coreservice",
},
{
type: "doc",
label: "@janhq/inference",
id: "docs/reference/coreservice",
},
],
},
{
type: "category",
label: "Tutorials",
collapsible: true,
collapsed: false,
items: [
{
type: "doc",
label: "How to Build a Chat App",
id: "docs/tutorials/build-jan-app",
},
{
type: "doc",
label: "How to Build a RAG App",
id: "docs/tutorials/build-rag-app",
},
{
type: "doc",
label: "How to Publish Apps on Jan",
id: "docs/tutorials/publish-jan-app",
},
],
},
{
type: "category",
label: "Articles",
collapsible: true,
collapsed: false,
items: [
{
type: "doc",
label: "Nitro",
id: "docs/articles/nitro",
},
],
},
],
// guidesSidebar: [
// {
// type: "category",
// label: "Overview",
// collapsible: true,
// collapsed: true,
// items: [
// {
// type: "doc",
// label: "architecture",
// id: "docs/overview/architecture",
// },
// ],
// },
// ],
companySidebar: [
// {
// type: "category",