Skip to content

Commit b04f05d

Browse files
committed
Separate client and server docs
1 parent c211c2f commit b04f05d

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

docs/docusaurus.config.ts

+8-2
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,15 @@ const config: Config = {
6262
items: [
6363
{
6464
type: 'docSidebar',
65-
sidebarId: 'mainSidebar',
65+
sidebarId: 'clientSidebar',
6666
position: 'left',
67-
label: 'Docs',
67+
label: 'Client Docs',
68+
},
69+
{
70+
type: 'docSidebar',
71+
sidebarId: 'serverSidebar',
72+
position: 'left',
73+
label: 'Server Docs',
6874
},
6975
{
7076
href: 'https://github.com/fxdave/cuple',

docs/sidebars.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ import type {SidebarsConfig} from '@docusaurus/plugin-content-docs';
1212
*/
1313
const sidebars: SidebarsConfig = {
1414
// By default, Docusaurus generates a sidebar from the docs folder structure
15-
mainSidebar: [{type: 'autogenerated', dirName: '.'}],
15+
clientSidebar: [{type: 'autogenerated', dirName: 'client'}],
16+
serverSidebar: [{type: 'autogenerated', dirName: 'server'}],
1617

1718
// But you can create a sidebar manually
1819
/*

docs/src/pages/markdown-page.md

-7
This file was deleted.

0 commit comments

Comments
 (0)