docs: add company page

This commit is contained in:
0xSage 2023-08-24 16:44:30 +08:00
parent 9698acb21f
commit 2e636d8fd6
8 changed files with 47 additions and 18 deletions

View File

@ -2,5 +2,5 @@
sidebar_position: 1 sidebar_position: 1
--- ---
# Overview # Changelog
TODO TODO

View File

@ -0,0 +1,6 @@
---
sidebar_position: 1
---
# Company Handbook
TODO

View File

@ -2,5 +2,5 @@
sidebar_position: 1 sidebar_position: 1
--- ---
# Overview # Developer
TODO TODO

View File

@ -3,5 +3,5 @@ sidebar_position: 1
slug: / slug: /
--- ---
# Welcome # Getting Started
Hi there Hi there

View File

@ -2,5 +2,5 @@
sidebar_position: 1 sidebar_position: 1
--- ---
# Overview # Guides
TODO TODO

View File

@ -2,5 +2,5 @@
sidebar_position: 1 sidebar_position: 1
--- ---
# Overview # Reference
TODO TODO

View File

@ -76,7 +76,7 @@ const config = {
type: 'docSidebar', type: 'docSidebar',
sidebarId: 'quickstartSidebar', sidebarId: 'quickstartSidebar',
position: 'left', position: 'left',
label: 'Quickstart', label: 'Getting Started',
}, },
{ {
type: 'docSidebar', type: 'docSidebar',
@ -102,6 +102,12 @@ const config = {
position: 'left', position: 'left',
label: 'Changelog', label: 'Changelog',
}, },
{
type: 'docSidebar',
sidebarId: 'companySidebar',
position: 'right',
label: 'Company',
},
// Navbar right // Navbar right
{ {
href: 'https://github.com/janhq/jan/docs', href: 'https://github.com/janhq/jan/docs',
@ -114,41 +120,57 @@ const config = {
style: 'dark', style: 'dark',
links: [ links: [
{ {
title: 'Quickstart', title: 'Documentation',
items: [ items: [
{ {
label: 'Quickstart', label: 'Getting Started',
to: '/quickstart/overview', to: '/',
},
{
label: 'Guides',
to: '/guides',
},
{
label: 'Developer',
to: '/developer',
},
{
label: 'Reference',
to: '/reference',
},
{
label: 'Changelog',
to: '/changelog',
}, },
], ],
}, },
{ {
title: 'Community', title: 'Community',
items: [ items: [
{
label: 'Stack Overflow',
href: 'https://stackoverflow.com/questions/tagged/docusaurus',
},
{ {
label: 'Discord', label: 'Discord',
href: 'https://discordapp.com/invite/docusaurus', href: 'https://discord.gg/FTk2MvZwJH',
}, },
{ {
label: 'Twitter', label: 'Twitter',
href: 'https://twitter.com/docusaurus', href: 'https://twitter.com/askjanai',
}, },
], ],
}, },
{ {
title: 'More', title: 'More',
items: [ items: [
{
label: 'Company',
to: '/company',
},
{ {
label: 'Blog', label: 'Blog',
to: '/blog', href: 'https://blog.jan.ai',
}, },
{ {
label: 'GitHub', label: 'GitHub',
href: 'https://github.com/facebook/docusaurus', href: 'https://github.com/janhq/jan',
}, },
], ],
}, },

View File

@ -15,12 +15,13 @@
const sidebars = { const sidebars = {
// By default, Docusaurus generates a sidebar from the docs folder structure // By default, Docusaurus generates a sidebar from the docs folder structure
quickstartSidebar: [{ quickstartSidebar: [{
type: 'autogenerated', dirName: 'quickstart', type: 'autogenerated', dirName: 'getting-started',
}], }],
guidesSidebar: [{ type: 'autogenerated', dirName: 'guides' }], guidesSidebar: [{ type: 'autogenerated', dirName: 'guides' }],
developerSidebar: [{ type: 'autogenerated', dirName: 'developer' }], developerSidebar: [{ type: 'autogenerated', dirName: 'developer' }],
referenceSidebar: [{ type: 'autogenerated', dirName: 'reference' }], referenceSidebar: [{ type: 'autogenerated', dirName: 'reference' }],
changelogSidebar: [{ type: 'autogenerated', dirName: 'changelog' }], changelogSidebar: [{ type: 'autogenerated', dirName: 'changelog' }],
companySidebar: [{ type: 'autogenerated', dirName: 'company' }],
// But you can create a sidebar manually // But you can create a sidebar manually
/* /*