Skip to content

Commit

Permalink
fix knowledge base
Browse files Browse the repository at this point in the history
  • Loading branch information
tothero committed Jun 11, 2024
1 parent 979b804 commit 9db60a0
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 7 deletions.
3 changes: 1 addition & 2 deletions docs/hw-products/_category_.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"label": "Hardware Products",
"position": 1,
"collapsed": true,
"position": 2,
"link": {
"type": "generated-index",
"description": "Lobaro IoT Hardware"
Expand Down
1 change: 1 addition & 0 deletions docs/knowledge-base/_category_.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"label": "Knowledge Base",
"position": 1,
"collapsed": true,
"link": {
"type": "generated-index",
"description": "Knowledge Base related to Lobaro Products"
Expand Down
4 changes: 2 additions & 2 deletions docs/knowledge-base/intro.md → docs/knowledge-base/tobi.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
sidebar_position: 3
sidebar_position: 1
---

# Knowledge base
<div className="note">
> Some notable things in a block quote!
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/platform/_category_.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"label": "Lobaro Platform",
"position": 2,
"position": 3,
"collapsed": true,
"link": {
"type": "generated-index",
Expand Down
1 change: 0 additions & 1 deletion docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ const config: Config = {
position: 'left',
label: 'IoT Platform',
},

{
type: 'docSidebar',
sidebarId: 'knowledgeBaseSidebar',
Expand Down
14 changes: 13 additions & 1 deletion sidebars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import type {SidebarsConfig} from '@docusaurus/plugin-content-docs';

const sidebars: SidebarsConfig = {
// By default, Docusaurus generates a sidebar from the docs folder structure
knowledgeBaseSidebar: [{type: 'autogenerated', dirName: 'knowledge-base'}],
allDocSidebar: [{type: 'autogenerated', dirName: '.'}],

productsSidebar: [
{
type: 'category',
Expand All @@ -32,6 +32,7 @@ const sidebars: SidebarsConfig = {
],
},
],

wmbusGwSidebar: [
{
type: 'category',
Expand All @@ -41,6 +42,7 @@ const sidebars: SidebarsConfig = {
],
},
],

platformSidebar: [
{
type: 'category',
Expand All @@ -51,6 +53,16 @@ const sidebars: SidebarsConfig = {
},
],

knowledgeBaseSidebar: [
{
type: 'category',
label: 'Knowledge Base',
items: [
{type: 'autogenerated', dirName: 'knowledge-base'},
],
},
],

// But you can create a sidebar manually
/*
tutorialSidebar: [
Expand Down

0 comments on commit 9db60a0

Please sign in to comment.