Skip to content

Commit

Permalink
Refactor Jan Site Structure
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-menlo committed Nov 23, 2023
1 parent 6110de4 commit 24d2bfb
Show file tree
Hide file tree
Showing 6 changed files with 98 additions and 46 deletions.
5 changes: 5 additions & 0 deletions docs/docs/community/community.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: Community
---

- [ ] Social media links
3 changes: 3 additions & 0 deletions docs/docs/specs/home.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
title: Home
---
3 changes: 3 additions & 0 deletions docs/docs/specs/hub.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
title: Hub
---
3 changes: 3 additions & 0 deletions docs/docs/specs/system-monitor.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
title: System Monitor
---
22 changes: 20 additions & 2 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,16 +141,34 @@ const config = {
// Navbar Left
{
type: "docSidebar",
sidebarId: "docsSidebar",
sidebarId: "guidesSidebar",
position: "left",
label: "Documentation",
label: "Guides",
},
{
type: "docSidebar",
sidebarId: "developerSidebar",
position: "left",
label: "Developer",
},
{
position: "left",
to: "/api-reference",
label: "API Reference",
},
{
type: "docSidebar",
position: "left",
sidebarId: "specsSidebar",
label: "Specs",
},
// Navbar right
{
type: "docSidebar",
position: "right",
sidebarId: "communitySidebar",
label: "Community",
},
{
to: "blog",
label: "Blog",
Expand Down
108 changes: 64 additions & 44 deletions docs/sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */
const sidebars = {
docsSidebar: [
guidesSidebar: [
{
type: "category",
label: "Introduction",
Expand Down Expand Up @@ -42,72 +42,79 @@ const sidebars = {
collapsed: true,
items: ["docs/models", "docs/server"],
},
],

developerSidebar: [
"docs/extensions",
"docs/assistants",
"docs/themes",
"docs/tools",
"docs/modules",
],

apiSidebar: [
"api/overview",
{
type: "category",
label: "Extending Jan",
link: { type: "doc", id: "docs/extensions" },
label: "Endpoints",
collapsible: true,
collapsed: true,
items: ["docs/assistants", "docs/themes", "docs/tools", "docs/modules"],
collapsed: false,
items: [
{
type: "autogenerated",
dirName: "api",
},
],
},
],

specsSidebar: [
{
type: "category",
label: "Building Jan",
label: "Overview",
collapsible: true,
collapsed: true,
collapsed: false,
items: [
"specs/architecture",
"specs/data-structures",
"specs/user-interface",
{
type: "category",
label: "Specifications",
collapsible: true,
collapsed: false,
items: [
"specs/chats",
"specs/models",
"specs/threads",
"specs/messages",
// "specs/assistants",
// "specs/files",
// "specs/jan",
// "specs/fine-tuning",
// "specs/settings",
// "specs/prompts",
],
},
],
},
],

apiSidebar: [
"api/overview",
{
type: "category",
label: "Endpoints",
label: "Product",
collapsible: true,
collapsed: false,
items: [
{
type: "autogenerated",
dirName: "api",
},
"specs/home",
"specs/hub",
"specs/system-monitor",
"specs/settings",
],
},
],

aboutSidebar: [
{
type: "doc",
label: "About Jan",
id: "about/about",
},
{
type: "link",
label: "Careers",
href: "https://janai.bamboohr.com/careers",
type: "category",
label: "Engineering",
collapsible: true,
collapsed: false,
items: [
"specs/chats",
"specs/models",
"specs/threads",
"specs/messages",
// "specs/assistants",
// "specs/files",
// "specs/jan",
// "specs/fine-tuning",
// "specs/settings",
// "specs/prompts",
],
},
],

communitySidebar: [
"community/community",
{
type: "category",
label: "Events",
Expand All @@ -122,6 +129,19 @@ const sidebars = {
},
],
},
],

aboutSidebar: [
{
type: "doc",
label: "About Jan",
id: "about/about",
},
{
type: "link",
label: "Careers",
href: "https://janai.bamboohr.com/careers",
},
{
type: "category",
label: "Company Handbook",
Expand Down

0 comments on commit 24d2bfb

Please sign in to comment.