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
---
# Overview
# Changelog
TODO

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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