jan/docs/sidebars.js
2023-09-20 17:06:31 +08:00

183 lines
4.7 KiB
JavaScript

/**
* Creating a sidebar enables you to:
- create an ordered group of docs
- render a sidebar for each doc of that group
- provide next/previous navigation
The sidebars can be generated from the filesystem, or explicitly defined here.
Create as many sidebars as you want.
*/
// @ts-check
/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */
const sidebars = {
// By default, Docusaurus generates a sidebar from the docs folder structure
// featuresSidebar: [{ type: 'autogenerated', dirName: 'features' }],
// hardwareSidebar: [{ type: 'autogenerated', dirName: 'hardware' }],
aboutSidebar: [{ type: "autogenerated", dirName: "about" }],
// But you can create a sidebar manually
featuresSidebar: [
"platform/platform",
{
type: "category",
label: "Products",
collapsible: true,
collapsed: false,
link: { type: "doc", id: "products/products" },
items: ["products/desktop", "products/mobile", "products/server"],
},
{
type: "category",
label: "Features",
collapsible: true,
collapsed: false,
link: { type: "doc", id: "features/features" },
items: [
"features/self-hosted",
"features/acceleration",
"features/extensions",
],
},
],
// Note: Tab name is "Use Cases"
solutionsSidebar: [
"solutions/solutions",
{
type: "category",
label: "Use cases",
collapsible: true,
collapsed: false,
items: ["solutions/personal-ai", "solutions/self-hosted"],
},
{
type: "category",
label: "Industries",
collapsible: true,
collapsed: false,
items: [
"solutions/industries/public-sector",
"solutions/industries/education",
"solutions/industries/finance",
"solutions/industries/law",
"solutions/industries/healthcare",
],
},
],
docsSidebar: [
{ type: "doc", label: "Getting Started", id: "docs/docs" },
{
type: "category",
label: "Install",
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" },
],
},
],
hardwareSidebar: [
{
type: "category",
label: "Overview",
collapsible: true,
collapsed: true,
link: { type: "doc", id: "hardware/hardware" },
items: [
{
type: "doc",
label: "Cloud vs. Buy",
id: "hardware/overview/cloud-vs-buy",
},
{
type: "doc",
label: "Nvidia vs. AMD vs. Intel vs. Apple",
id: "hardware/overview/ecosystems",
},
],
},
{
type: "category",
label: "Consumer-Grade",
collapsible: true,
collapsed: true,
link: { type: "doc", id: "hardware/consumer/consumer" },
items: [
{ type: "doc", label: "< $1000", id: "hardware/consumer/1000" },
{ type: "doc", label: "< $2500", id: "hardware/consumer/2500" },
{ type: "doc", label: "< $5000", id: "hardware/consumer/5000" },
{ type: "doc", label: "< $10,000", id: "hardware/consumer/10000" },
],
},
{
type: "category",
label: "Enterprise-Grade",
collapsible: true,
collapsed: true,
link: { type: "doc", id: "hardware/enterprise/enterprise" },
items: [
{ type: "doc", label: "< $25,000", id: "hardware/enterprise/25000" },
{
type: "doc",
label: "More than $50,000",
id: "hardware/enterprise/50000",
},
],
},
{
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",
},
],
},
],
};
module.exports = sidebars;