Skip to content

Commit d86f696

Browse files
committed
feat: adding category intro page
1 parent 44c0cd5 commit d86f696

File tree

8 files changed

+45
-6
lines changed

8 files changed

+45
-6
lines changed

docs/docs/comparison/channels-vs-ro.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: 📡 channels vs ro
2+
title: channels vs ro
33
description: Compare Go channels vs samber/ro reactive streams
44
sidebar_position: 3
55
---

docs/docs/comparison/iter-vs-ro.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: 🔁 iter vs ro
2+
title: iter vs ro
33
description: Compare Go's iter package vs samber/ro reactive streams
44
sidebar_position: 4
55
---

docs/docs/comparison/lo-vs-ro.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: ⚖️ samber/lo vs samber/ro
2+
title: samber/lo vs samber/ro
33
description: Compare samber/lo (functional utils) vs samber/ro (reactive streams)
44
sidebar_position: 5
55
---

docs/docs/operator/creation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Creation operators
33
description: Create observables from values, iterables, timers, channels, and events.
4-
sidebar_position: 0
4+
sidebar_position: 1
55
hide_table_of_contents: true
66
---
77

docs/docs/operator/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
2-
title: Operators
2+
title: Introduction
33
description: Declarative and composable API
4+
sidebar_position: 0
45
hide_table_of_contents: true
56
---
67

docs/docs/plugins/bytes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Bytes
33
description: Byte manipulation and conversion utilities for observable streams.
4-
sidebar_position: 0
4+
sidebar_position: 1
55
hide_table_of_contents: true
66
---
77

docs/docs/plugins/index.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
title: Introduction
3+
description: Extend ro with powerful plugins for bytes, encoding, HTTP, observability, and more
4+
sidebar_position: 0
5+
hide_table_of_contents: true
6+
---
7+
8+
# Plugins
9+
10+
The `samber/ro` library comes with a rich ecosystem of plugins that extend its core functionality. These plugins provide specialized operators and utilities for common use cases like data encoding, HTTP requests, observability, file system operations, and much more.
11+
12+
Each plugin is designed to be lightweight and focused on a specific domain, making it easy to add just the functionality you need to your reactive streams.
13+
14+
## Reference
15+
16+
import DocCardList from '@theme/DocCardList';
17+
18+
<DocCardList />

docs/sidebars.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ import type {SidebarsConfig} from '@docusaurus/plugin-content-docs';
1414
*/
1515
const sidebars: SidebarsConfig = {
1616
// Enhanced sidebar with better organization and features from 3.8+
17+
18+
// docSidebar: [{type: 'autogenerated', dirName: '.'}],
19+
1720
docSidebar: [
1821
'about',
1922
'getting-started',
@@ -29,6 +32,10 @@ const sidebars: SidebarsConfig = {
2932
{
3033
type: 'category',
3134
label: '👷 Operators',
35+
link: {
36+
type: 'doc',
37+
id: 'operator/index',
38+
},
3239
collapsible: true,
3340
collapsed: true,
3441
items: [
@@ -38,6 +45,10 @@ const sidebars: SidebarsConfig = {
3845
{
3946
type: 'category',
4047
label: '🔍 Plugins',
48+
link: {
49+
type: 'doc',
50+
id: 'plugins/index',
51+
},
4152
collapsible: true,
4253
collapsed: true,
4354
items: [
@@ -53,6 +64,15 @@ const sidebars: SidebarsConfig = {
5364
{type: 'autogenerated', dirName: 'troubleshooting'},
5465
],
5566
},
67+
{
68+
type: 'category',
69+
label: '📊 Comparison',
70+
collapsible: true,
71+
collapsed: true,
72+
items: [
73+
{type: 'autogenerated', dirName: 'comparison'},
74+
],
75+
},
5676
'testing',
5777
'hacking',
5878
'contributing',

0 commit comments

Comments
 (0)