Skip to content

Commit 7c61802

Browse files
feat: introduce the notion of "Products" in the nav (#418)
Signed-off-by: David Dal Busco <david.dalbusco@outlook.com>
1 parent 7da58f9 commit 7c61802

3 files changed

Lines changed: 68 additions & 3 deletions

File tree

docusaurus.config.ts

Lines changed: 65 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,42 @@ const config: Config = {
115115
},
116116
hideOnScroll: true,
117117
items: [
118+
{
119+
type: "dropdown",
120+
label: "Products",
121+
position: "left",
122+
items: [
123+
{
124+
to: "/docs/build/authentication",
125+
html: `<span style="display: flex; align-items: center; gap: 0.45rem;"><span style="display: flex; justify-content: center; align-items: center; width: 1.25rem; height: 1.25rem; padding: 0.25rem; border-radius: 50%; background: #fff;"><img src="/icons/authentication.svg" style="height: 1em;" alt="" /></span>Authentication</span>`
126+
},
127+
{
128+
to: "/docs/build/datastore",
129+
html: `<span style="display: flex; align-items: center; gap: 0.45rem;"><span style="display: flex; justify-content: center; align-items: center; width: 1.25rem; height: 1.25rem; padding: 0.25rem; border-radius: 50%; background: #fff;"><img src="/icons/datastore.svg" style="height: 1em;" alt="" /></span>Datastore</span>`
130+
},
131+
{
132+
to: "/docs/build/storage",
133+
html: `<span style="display: flex; align-items: center; gap: 0.45rem;"><span style="display: flex; justify-content: center; align-items: center; width: 1.25rem; height: 1.25rem; padding: 0.25rem; border-radius: 50%; background: #fff;"><img src="/icons/storage.svg" style="height: 1em;" alt="" /></span>Storage</span>`
134+
},
135+
{
136+
to: "/docs/build/hosting",
137+
html: `<span style="display: flex; align-items: center; gap: 0.45rem;"><span style="display: flex; justify-content: center; align-items: center; width: 1.25rem; height: 1.25rem; padding: 0.25rem; border-radius: 50%; background: #fff;"><img src="/icons/hosting.svg" style="height: 1em;" alt="" /></span>Hosting</span>`
138+
},
139+
{
140+
to: "/docs/build/functions",
141+
html: `<span style="display: flex; align-items: center; gap: 0.45rem;"><span style="display: flex; justify-content: center; align-items: center; width: 1.25rem; height: 1.25rem; padding: 0.25rem; border-radius: 50%; background: #fff;"><img src="/icons/functions.svg" style="height: 1em;" alt="" /></span>Functions</span>`
142+
},
143+
{
144+
to: "/docs/build/analytics",
145+
html: `<span style="display: flex; align-items: center; gap: 0.45rem;"><span style="display: flex; justify-content: center; align-items: center; width: 1.25rem; height: 1.25rem; padding: 0.25rem; border-radius: 50%; background: #fff;"><img src="/icons/analytics.svg" style="height: 1em;" alt="" /></span>Analytics</span>`
146+
}
147+
]
148+
},
118149
{
119150
type: "doc",
120151
docId: "intro",
121152
position: "left",
122-
label: "Documentation"
153+
label: "Docs"
123154
},
124155
{
125156
type: "docSidebar",
@@ -191,6 +222,39 @@ const config: Config = {
191222
{
192223
label: "Guides",
193224
to: "/docs/category/guides"
225+
},
226+
{
227+
label: "References",
228+
to: "/docs/reference/cli"
229+
}
230+
]
231+
},
232+
{
233+
title: "Products",
234+
items: [
235+
{
236+
label: "Authentication",
237+
to: "/docs/build/authentication"
238+
},
239+
{
240+
label: "Datastore",
241+
to: "/docs/build/datastore"
242+
},
243+
{
244+
label: "Storage",
245+
to: "/docs/build/storage"
246+
},
247+
{
248+
label: "Hosting",
249+
to: "/docs/build/hosting"
250+
},
251+
{
252+
label: "Functions",
253+
to: "/docs/build/functions"
254+
},
255+
{
256+
label: "Analytics",
257+
to: "/docs/build/analytics"
194258
}
195259
]
196260
},

sidebars.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,10 @@ const sidebars: SidebarsConfig = {
6161
},
6262
{
6363
type: "category",
64-
label: "Build",
64+
label: "Products",
6565
link: {
6666
type: "generated-index",
67+
slug: "/category/build", // For backward compatibility, we use /build in the URL even though the label is now "Products" (it was originally called "Build")
6768
description:
6869
"Learn about Juno features to build apps running 100% on blockchain without the need to manage servers or write any backend code."
6970
},

static/icons/datastore.svg

Lines changed: 1 addition & 1 deletion
Loading

0 commit comments

Comments
 (0)