Skip to content

Commit 5271f9f

Browse files
committed
Change so sidebar is in alphabetical order
1 parent b788848 commit 5271f9f

2 files changed

Lines changed: 170 additions & 179 deletions

File tree

sidebars.ts

Lines changed: 84 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ const sidebars: SidebarsConfig = {
125125

126126
{
127127
type: "category",
128-
label: "Devvit Setup",
128+
label: "Devvit Setup Overview",
129129
items: [
130130
{
131131
type: "doc",
@@ -144,28 +144,6 @@ const sidebars: SidebarsConfig = {
144144
},
145145
],
146146
},
147-
148-
{
149-
type: "category",
150-
label: "Post Creation & Navigation",
151-
items: [
152-
"capabilities/client/navigation",
153-
"capabilities/client/toasts",
154-
"capabilities/client/menu-actions",
155-
"capabilities/server/settings-and-secrets",
156-
"capabilities/server/launch_screen_and_entry_points/view_modes_entry_points",
157-
{
158-
type: "category",
159-
label: "Launch Screen",
160-
collapsed: true,
161-
items: [
162-
"capabilities/server/launch_screen_and_entry_points/launch_overview",
163-
"capabilities/server/launch_screen_and_entry_points/view_modes_entry_points",
164-
"capabilities/server/launch_screen_and_entry_points/launch_screen_customization",
165-
],
166-
},
167-
],
168-
},
169147
{
170148
type: "category",
171149
label: "Access External Endpoints",
@@ -174,29 +152,6 @@ const sidebars: SidebarsConfig = {
174152
"capabilities/server/http-fetch-policy",
175153
],
176154
},
177-
{
178-
type: "category",
179-
label: "Saving Data",
180-
items: [
181-
"capabilities/server/redis",
182-
"capabilities/server/cache-helper",
183-
"capabilities/server/post-data",
184-
],
185-
},
186-
{
187-
type: "category",
188-
label: "User Input",
189-
items: [
190-
"capabilities/server/media-uploads",
191-
"capabilities/client/forms",
192-
"capabilities/server/userActions",
193-
],
194-
},
195-
{
196-
type: "category",
197-
label: "Realtime Apps",
198-
items: ["capabilities/realtime/overview"],
199-
},
200155
{
201156
type: "category",
202157
label: "Automation & Triggers",
@@ -215,6 +170,32 @@ const sidebars: SidebarsConfig = {
215170
"earn-money/payments/support_this_app",
216171
],
217172
},
173+
{
174+
type: "category",
175+
label: "Post Creation & Navigation",
176+
items: [
177+
"capabilities/client/navigation",
178+
"capabilities/client/toasts",
179+
"capabilities/client/menu-actions",
180+
"capabilities/server/settings-and-secrets",
181+
"capabilities/server/launch_screen_and_entry_points/view_modes_entry_points",
182+
{
183+
type: "category",
184+
label: "Launch Screen",
185+
collapsed: true,
186+
items: [
187+
"capabilities/server/launch_screen_and_entry_points/launch_overview",
188+
"capabilities/server/launch_screen_and_entry_points/view_modes_entry_points",
189+
"capabilities/server/launch_screen_and_entry_points/launch_screen_customization",
190+
],
191+
},
192+
],
193+
},
194+
{
195+
type: "category",
196+
label: "Realtime Apps",
197+
items: ["capabilities/realtime/overview"],
198+
},
218199
{
219200
type: "category",
220201
label: "Reddit API",
@@ -253,29 +234,20 @@ const sidebars: SidebarsConfig = {
253234
},
254235
{
255236
type: "category",
256-
label: "Devvit Blocks",
237+
label: "Saving Data",
257238
items: [
258-
"capabilities/blocks/overview",
259-
"capabilities/blocks/blocks_payments",
260-
"capabilities/blocks/dimensions",
261-
"capabilities/blocks/working_with_usestate",
262-
"capabilities/blocks/working_with_useinterval",
263-
"capabilities/blocks/working_with_useasync",
264-
"capabilities/blocks/app_image_assets",
265-
"capabilities/realtime/realtime_in_devvit_blocks",
266-
{
267-
type: "category",
268-
label: "Blocks Reference",
269-
items: [
270-
"blocks/stacks",
271-
"blocks/text",
272-
"blocks/icon",
273-
"blocks/button",
274-
"blocks/image",
275-
"blocks/spacer",
276-
"blocks/colors",
277-
],
278-
},
239+
"capabilities/server/redis",
240+
"capabilities/server/cache-helper",
241+
"capabilities/server/post-data",
242+
],
243+
},
244+
{
245+
type: "category",
246+
label: "User Input",
247+
items: [
248+
"capabilities/server/media-uploads",
249+
"capabilities/client/forms",
250+
"capabilities/server/userActions",
279251
],
280252
},
281253
{
@@ -292,14 +264,13 @@ const sidebars: SidebarsConfig = {
292264
},
293265

294266
{
295-
type: "doc",
296-
label: "Using AI Tools",
297-
id: "guides/ai/ai",
298-
},
299-
{
300-
type: "doc",
301-
label: "Template Library",
302-
id: "examples/template-library",
267+
type: "category",
268+
label: "Best Practices",
269+
items: [
270+
"guides/best-practices/community_games",
271+
"guides/best-practices/mod_resources",
272+
"capabilities/server/text_fallback",
273+
],
303274
},
304275
{
305276
type: "category",
@@ -311,19 +282,6 @@ const sidebars: SidebarsConfig = {
311282
"guides/tools/ui_simulator",
312283
],
313284
},
314-
{
315-
type: "category",
316-
label: "Best Practices",
317-
items: [
318-
"guides/best-practices/community_games",
319-
"guides/best-practices/mod_resources",
320-
],
321-
},
322-
{
323-
type: "doc",
324-
label: "Text Fallback",
325-
id: "capabilities/server/text_fallback",
326-
},
327285
{
328286
type: "category",
329287
label: "Migration Guides",
@@ -341,12 +299,49 @@ const sidebars: SidebarsConfig = {
341299
},
342300
],
343301
},
302+
{
303+
type: "doc",
304+
label: "Template Library",
305+
id: "examples/template-library",
306+
},
307+
{
308+
type: "doc",
309+
label: "Using AI Tools",
310+
id: "guides/ai/ai",
311+
},
344312
{
345313
type: "html",
346314
value: "<hr/>",
347315
className: "sidebar-divider",
348316
defaultStyle: false,
349317
},
318+
{
319+
type: "category",
320+
label: "Devvit Blocks",
321+
items: [
322+
"capabilities/blocks/overview",
323+
"capabilities/blocks/blocks_payments",
324+
"capabilities/blocks/dimensions",
325+
"capabilities/blocks/working_with_usestate",
326+
"capabilities/blocks/working_with_useinterval",
327+
"capabilities/blocks/working_with_useasync",
328+
"capabilities/blocks/app_image_assets",
329+
"capabilities/realtime/realtime_in_devvit_blocks",
330+
{
331+
type: "category",
332+
label: "Blocks Reference",
333+
items: [
334+
"blocks/stacks",
335+
"blocks/text",
336+
"blocks/icon",
337+
"blocks/button",
338+
"blocks/image",
339+
"blocks/spacer",
340+
"blocks/colors",
341+
],
342+
},
343+
],
344+
},
350345
{
351346
type: "doc",
352347
label: "Changelog",

0 commit comments

Comments
 (0)