Skip to content

Commit

Permalink
change menu to single without individual sidebars
Browse files Browse the repository at this point in the history
  • Loading branch information
tothero committed Jul 30, 2024
1 parent c6422e0 commit 43c72b2
Show file tree
Hide file tree
Showing 33 changed files with 59 additions and 49 deletions.
2 changes: 1 addition & 1 deletion docs/components/_category_.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"label": "Components",
"position": 2,
"position": 1,
"collapsed": true
}
2 changes: 1 addition & 1 deletion docs/components/enclosures/spelsberg_TG_PC_1208-6-o.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
sidebar_position: 1
displayed_sidebar: componentsSidebar
#displayed_sidebar: componentsSidebar
title: Spelsberg TG PC 1208-6-o
---

Expand Down
2 changes: 1 addition & 1 deletion docs/components/firmware/_category_.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"label": "Firmware Manuals",
"label": "Firmware",
"position": 1,
"collapsed": true
}
2 changes: 1 addition & 1 deletion docs/components/firmware/app-hybrid-modbus/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
sidebar_position: 1
displayed_sidebar: componentsSidebar
#displayed_sidebar: componentsSidebar
title: app-hybrid-modbus
---
# app-hybrid-modbus
Expand Down
2 changes: 1 addition & 1 deletion docs/components/firmware/app-nrf91-hybrid/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
sidebar_position: 2
displayed_sidebar: componentsSidebar
#displayed_sidebar: componentsSidebar
title: app-nrf91-hybrid
draft: true
---
Expand Down
2 changes: 1 addition & 1 deletion docs/components/firmware/app-nrf91-origin/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
sidebar_position: 1
displayed_sidebar: componentsSidebar
#displayed_sidebar: componentsSidebar
title: app-nrf91-origin
draft: true
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
sidebar_position: 6
displayed_sidebar: componentsSidebar
#displayed_sidebar: componentsSidebar
title: Cellular IoT Communication
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
sidebar_position: 100
displayed_sidebar: componentsSidebar
#displayed_sidebar: componentsSidebar
title: Changelog & Updates
---
## Firmware Updates
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
sidebar_position: 1
displayed_sidebar: componentsSidebar
#displayed_sidebar: componentsSidebar
title: Configuration Parameter
---

Expand Down
2 changes: 1 addition & 1 deletion docs/components/firmware/app-nrf9160-wmbus/introduction.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
sidebar_position: 0
displayed_sidebar: componentsSidebar
#displayed_sidebar: componentsSidebar
title: Introduction
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
sidebar_position: 5
displayed_sidebar: componentsSidebar
#displayed_sidebar: componentsSidebar
title: LoRaWAN Communication
---

Expand Down
4 changes: 2 additions & 2 deletions docs/components/index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
sidebar_position: 0
displayed_sidebar: componentsSidebar
title: Overview
# displayed_sidebar: allDocSidebar
#title: Overview
---

# Product Components
Expand Down
2 changes: 1 addition & 1 deletion docs/configuration/_category_.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"label": "Configuration",
"position": 1,
"position": 2,
"collapsed": true
}
2 changes: 1 addition & 1 deletion docs/configuration/cron-configuration.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
sidebar_position: 4
displayed_sidebar: configurationSidebar
#displayed_sidebar: configurationSidebar
title: CRON Configuration
---

Expand Down
2 changes: 1 addition & 1 deletion docs/configuration/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
sidebar_position: 0
displayed_sidebar: configurationSidebar
#displayed_sidebar: configurationSidebar
title: Overview
---

Expand Down
2 changes: 1 addition & 1 deletion docs/configuration/lobaro-config-tool.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
sidebar_position: 2
displayed_sidebar: configurationSidebar
#displayed_sidebar: configurationSidebar
title: Lobaro Config Tool
---

Expand Down
2 changes: 1 addition & 1 deletion docs/configuration/lorawan-downlink-config.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
sidebar_position: 3
displayed_sidebar: configurationSidebar
#displayed_sidebar: configurationSidebar
title: LoRaWAN Downlink Config
---

Expand Down
2 changes: 1 addition & 1 deletion docs/configuration/lte-network-configuration.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
sidebar_position: 4
displayed_sidebar: configurationSidebar
#displayed_sidebar: configurationSidebar
title: LTE Network Configuration
---

Expand Down
2 changes: 1 addition & 1 deletion docs/configuration/meter-reception-filter-config.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
sidebar_position: 2
displayed_sidebar: configurationSidebar
#displayed_sidebar: configurationSidebar
title: MBUS Reception Filtering
---

Expand Down
2 changes: 1 addition & 1 deletion docs/configuration/obis-code-configuration.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
sidebar_position: 4
displayed_sidebar: configurationSidebar
#displayed_sidebar: configurationSidebar
title: OBIS-Code Configuration
---

Expand Down
2 changes: 1 addition & 1 deletion docs/configuration/usb-config-adapter.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
sidebar_position: 1
displayed_sidebar: configurationSidebar
#displayed_sidebar: configurationSidebar
title: Lobaro USB Config Adapter
---

Expand Down
2 changes: 1 addition & 1 deletion docs/knowledge-base/_category_.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"label": "Background Knowledge",
"label": "Knowledge Base",
"position": 5,
"collapsed": true
}
9 changes: 9 additions & 0 deletions docs/knowledge-base/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
sidebar_position: 0
#displayed_sidebar: configurationSidebar
#title: Overview
---

# Knowledge Base
---
General knowledge.
2 changes: 1 addition & 1 deletion docs/platform/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
sidebar_position: 0
displayed_sidebar: cloudSidebar
#displayed_sidebar: cloudSidebar
title: Overview
---

Expand Down
2 changes: 1 addition & 1 deletion docs/platform/integrations/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
sidebar_position: 0
displayed_sidebar: cloudSidebar
#displayed_sidebar: cloudSidebar
---

# Integrations
Expand Down
2 changes: 1 addition & 1 deletion docs/products/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
sidebar_position: 0
displayed_sidebar: productsSidebar
# displayed_sidebar: productsSidebar
title: Overview
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
sidebar_position: 3
displayed_sidebar: productsSidebar
#displayed_sidebar: productsSidebar
title: wM-Bus GW (230V)
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
sidebar_position: 4
displayed_sidebar: productsSidebar
#displayed_sidebar: productsSidebar
title: wM-Bus GW (Concentrator)
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
sidebar_position: 2
displayed_sidebar: productsSidebar
#displayed_sidebar: productsSidebar
title: wM-Bus GW (12V - 24V)
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
sidebar_position: 5
displayed_sidebar: productsSidebar
#displayed_sidebar: productsSidebar
title: wM-Bus GW (Solar)
---

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
sidebar_position: 1
displayed_sidebar: productsSidebar
#displayed_sidebar: productsSidebar
title: wM-Bus GW V3 (Battery)
---

Expand Down
18 changes: 8 additions & 10 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,32 +85,31 @@ const config: Config = {
},
items: [
{
type: 'docSidebar',
sidebarId: 'productsSidebar',
to: 'products/',
position: 'left',
label: 'Products',
},


{
type: 'docSidebar',
sidebarId: 'componentsSidebar',
to: 'components/',
position: 'left',
label: 'Components',
},

{
type: 'docSidebar',
sidebarId: 'configurationSidebar',
to: 'configuration/',
position: 'left',
label: 'Configuration',
},


{
type: 'docSidebar',
sidebarId: 'cloudSidebar',
to: 'platform',
position: 'left',
label: 'Lobaro IoT Platform',
},

{
type: 'html',
position: 'right',
Expand All @@ -122,8 +121,7 @@ const config: Config = {
value: '<button onclick="history.forward()">Navigate ▶️</button>',
},
{
type: 'docSidebar',
sidebarId: 'knowledgeBaseSidebar',
to: 'knowledge-base/',
position: 'right',
label: 'Knowledge Base',
},
Expand Down
19 changes: 11 additions & 8 deletions sidebars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ allDocSidebar: {
allDocSidebar: [
{
type: 'category',
label: 'All Docs',
label: 'Lobaro Docs',
items: [
{type: 'autogenerated', dirName: '.'},
],
},
'knowledge-base/playground',
],

/*
configurationSidebar: [
{
type: 'category',
Expand All @@ -49,7 +49,8 @@ allDocSidebar: {
],
},
],

*/
/*
productsSidebar: [
{
type: 'category',
Expand All @@ -59,9 +60,9 @@ allDocSidebar: {
],
},
],
*/



/*
componentsSidebar: [
{
type: 'category',
Expand All @@ -71,7 +72,8 @@ allDocSidebar: {
],
},
],

*/
/*
cloudSidebar: [
{
type: 'category',
Expand All @@ -81,7 +83,8 @@ allDocSidebar: {
],
},
],

*/
/*
knowledgeBaseSidebar: [
{
type: 'category',
Expand All @@ -91,7 +94,7 @@ allDocSidebar: {
],
},
],

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

0 comments on commit 43c72b2

Please sign in to comment.