Skip to content

Commit 15146ff

Browse files
authored
feat(docs): reorder home sidebar (#1254)
1 parent 49cef7b commit 15146ff

10 files changed

Lines changed: 240 additions & 126 deletions

File tree

sidebars.ts

Lines changed: 131 additions & 126 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,12 @@ import type { SidebarsConfig } from "@docusaurus/plugin-content-docs";
1212
*/
1313
const sidebars: SidebarsConfig = {
1414
mainSidebar: [
15-
"intro",
15+
{
16+
type: "doc",
17+
id: "intro",
18+
label: "Home",
19+
className: "sidebar-home-flare-logo",
20+
},
1621
{
1722
type: "category",
1823
label: "Network",
@@ -89,127 +94,132 @@ const sidebars: SidebarsConfig = {
8994
},
9095
{
9196
type: "category",
92-
label: "FTSOv2",
97+
label: "FXRP",
9398
collapsed: true,
94-
link: { type: "doc", id: "ftso/overview" },
99+
link: {
100+
type: "doc",
101+
id: "fxrp/overview",
102+
},
95103
items: [
96-
"ftso/getting-started",
97-
"ftso/feeds",
98-
"ftso/feed-stability-and-risks",
104+
"fxrp/parameters",
99105
{
100106
type: "category",
101-
label: "FTSOv2 Guides",
102-
collapsed: true,
107+
label: "Token Interactions",
103108
link: {
104-
slug: "/ftso/guides",
109+
slug: "/fxrp/token-interactions",
105110
type: "generated-index",
106-
description:
107-
"Learn how to interact with FTSOv2 onchain and offchain.",
111+
description: "Guides for interacting with FXRP token.",
108112
},
109-
items: [{ type: "autogenerated", dirName: "ftso/guides" }],
113+
items: [
114+
"fxrp/token-interactions/fxrp-address",
115+
"fxrp/token-interactions/usdt0-fxrp-swap",
116+
"fxrp/token-interactions/x402-payments",
117+
"fxrp/token-interactions/gasless-fxrp-payments",
118+
],
110119
},
111120
{
112121
type: "category",
113-
label: "FTSOv2 Reference",
114-
collapsed: true,
115-
link: { type: "doc", id: "ftso/solidity-reference" },
122+
label: "Omnichain Fungible Token",
123+
link: {
124+
type: "doc",
125+
id: "fxrp/oft/index",
126+
},
127+
items: ["fxrp/oft/fassets-autoredeem", "fxrp/oft/fassets-automint"],
128+
},
129+
{
130+
type: "category",
131+
label: "Firelight Vaults",
132+
link: {
133+
type: "doc",
134+
id: "fxrp/firelight/index",
135+
},
116136
items: [
117-
{ type: "autogenerated", dirName: "ftso/solidity-reference" },
137+
"fxrp/firelight/status",
138+
"fxrp/firelight/deposit",
139+
"fxrp/firelight/mint",
140+
"fxrp/firelight/withdraw",
141+
"fxrp/firelight/redeem",
142+
"fxrp/firelight/claim",
118143
],
119144
},
120145
{
121146
type: "category",
122-
label: "Scaling",
123-
collapsed: true,
124-
link: { type: "doc", id: "ftso/scaling/overview" },
147+
label: "Upshift Vaults",
148+
link: {
149+
type: "doc",
150+
id: "fxrp/upshift/index",
151+
},
125152
items: [
126-
"ftso/scaling/getting-started",
127-
"ftso/scaling/anchor-feeds",
128-
{
129-
type: "category",
130-
label: "Scaling Reference",
131-
collapsed: true,
132-
link: {
133-
type: "doc",
134-
id: "ftso/scaling/solidity-reference",
135-
},
136-
items: [
137-
{
138-
type: "autogenerated",
139-
dirName: "ftso/scaling/solidity-reference",
140-
},
141-
],
142-
},
153+
"fxrp/upshift/status",
154+
"fxrp/upshift/deposit",
155+
"fxrp/upshift/instant-redeem",
156+
"fxrp/upshift/request-redeem",
157+
"fxrp/upshift/claim",
143158
],
144159
},
145-
"ftso/migration",
146160
],
147161
},
148162
{
149163
type: "category",
150-
label: "FDC",
164+
label: "Flare Smart Accounts",
151165
collapsed: true,
152-
link: { type: "doc", id: "fdc/overview" },
166+
link: { type: "doc", id: "smart-accounts/overview" },
153167
items: [
154-
"fdc/getting-started",
168+
"smart-accounts/fasset-instructions",
169+
"smart-accounts/custom-instruction",
155170
{
156171
type: "category",
157-
label: "Attestation Types",
172+
label: "Developer Guides",
158173
collapsed: true,
159-
link: { type: "doc", id: "fdc/attestation-types" },
160-
items: [{ type: "autogenerated", dirName: "fdc/attestation-types" }],
161-
},
162-
{
163-
type: "category",
164-
label: "FDC Guides",
165-
collapsed: false,
166174
link: {
167-
slug: "/fdc/guides",
175+
slug: "/smart-accounts/guides",
168176
type: "generated-index",
169177
},
170178
items: [
171179
{
172180
type: "category",
173-
label: "Hardhat",
181+
label: "CLI",
174182
collapsed: true,
175183
link: {
176-
slug: "/fdc/guides/hardhat",
184+
slug: "/smart-accounts/guides/cli",
177185
type: "generated-index",
178186
},
179187
items: [
180188
{
181189
type: "autogenerated",
182-
dirName: "fdc/guides/hardhat",
190+
dirName: "smart-accounts/guides/cli",
183191
},
184192
],
185193
},
186194
{
187195
type: "category",
188-
label: "Foundry",
196+
label: "TypeScript + Viem",
189197
collapsed: true,
190198
link: {
191-
slug: "/fdc/guides/foundry",
199+
slug: "/smart-accounts/guides/typescript-viem",
192200
type: "generated-index",
193201
},
194202
items: [
195203
{
196204
type: "autogenerated",
197-
dirName: "fdc/guides/foundry",
205+
dirName: "smart-accounts/guides/typescript-viem",
198206
},
199207
],
200208
},
201-
"fdc/guides/fdc-by-hand",
202-
"fdc/guides/url-parsing-security",
203209
],
204210
},
205211
{
206212
type: "category",
207-
label: "FDC Reference",
213+
label: "Reference",
208214
collapsed: true,
209-
link: { type: "doc", id: "fdc/reference" },
210-
items: [{ type: "autogenerated", dirName: "fdc/reference" }],
215+
link: { type: "doc", id: "smart-accounts/reference" },
216+
items: [
217+
{
218+
type: "autogenerated",
219+
dirName: "smart-accounts/reference",
220+
},
221+
],
211222
},
212-
"fdc/troubleshooting",
213223
],
214224
},
215225
{
@@ -262,132 +272,127 @@ const sidebars: SidebarsConfig = {
262272
},
263273
{
264274
type: "category",
265-
label: "FXRP",
275+
label: "FTSO",
266276
collapsed: true,
267-
link: {
268-
type: "doc",
269-
id: "fxrp/overview",
270-
},
277+
link: { type: "doc", id: "ftso/overview" },
271278
items: [
272-
"fxrp/parameters",
279+
"ftso/getting-started",
280+
"ftso/feeds",
281+
"ftso/feed-stability-and-risks",
273282
{
274283
type: "category",
275-
label: "Token Interactions",
284+
label: "FTSOv2 Guides",
285+
collapsed: true,
276286
link: {
277-
slug: "/fxrp/token-interactions",
287+
slug: "/ftso/guides",
278288
type: "generated-index",
279-
description: "Guides for interacting with FXRP token.",
280-
},
281-
items: [
282-
"fxrp/token-interactions/fxrp-address",
283-
"fxrp/token-interactions/usdt0-fxrp-swap",
284-
"fxrp/token-interactions/x402-payments",
285-
"fxrp/token-interactions/gasless-fxrp-payments",
286-
],
287-
},
288-
{
289-
type: "category",
290-
label: "Omnichain Fungible Token",
291-
link: {
292-
type: "doc",
293-
id: "fxrp/oft/index",
289+
description:
290+
"Learn how to interact with FTSOv2 onchain and offchain.",
294291
},
295-
items: ["fxrp/oft/fassets-autoredeem", "fxrp/oft/fassets-automint"],
292+
items: [{ type: "autogenerated", dirName: "ftso/guides" }],
296293
},
297294
{
298295
type: "category",
299-
label: "Firelight Vaults",
300-
link: {
301-
type: "doc",
302-
id: "fxrp/firelight/index",
303-
},
296+
label: "FTSOv2 Reference",
297+
collapsed: true,
298+
link: { type: "doc", id: "ftso/solidity-reference" },
304299
items: [
305-
"fxrp/firelight/status",
306-
"fxrp/firelight/deposit",
307-
"fxrp/firelight/mint",
308-
"fxrp/firelight/withdraw",
309-
"fxrp/firelight/redeem",
310-
"fxrp/firelight/claim",
300+
{ type: "autogenerated", dirName: "ftso/solidity-reference" },
311301
],
312302
},
313303
{
314304
type: "category",
315-
label: "Upshift Vaults",
316-
link: {
317-
type: "doc",
318-
id: "fxrp/upshift/index",
319-
},
305+
label: "Scaling",
306+
collapsed: true,
307+
link: { type: "doc", id: "ftso/scaling/overview" },
320308
items: [
321-
"fxrp/upshift/status",
322-
"fxrp/upshift/deposit",
323-
"fxrp/upshift/instant-redeem",
324-
"fxrp/upshift/request-redeem",
325-
"fxrp/upshift/claim",
309+
"ftso/scaling/getting-started",
310+
"ftso/scaling/anchor-feeds",
311+
{
312+
type: "category",
313+
label: "Scaling Reference",
314+
collapsed: true,
315+
link: {
316+
type: "doc",
317+
id: "ftso/scaling/solidity-reference",
318+
},
319+
items: [
320+
{
321+
type: "autogenerated",
322+
dirName: "ftso/scaling/solidity-reference",
323+
},
324+
],
325+
},
326326
],
327327
},
328+
"ftso/migration",
328329
],
329330
},
330331
{
331332
type: "category",
332-
label: "Flare Smart Accounts",
333+
label: "FDC",
333334
collapsed: true,
334-
link: { type: "doc", id: "smart-accounts/overview" },
335+
link: { type: "doc", id: "fdc/overview" },
335336
items: [
336-
"smart-accounts/fasset-instructions",
337-
"smart-accounts/custom-instruction",
337+
"fdc/getting-started",
338338
{
339339
type: "category",
340-
label: "Developer Guides",
340+
label: "Attestation Types",
341341
collapsed: true,
342+
link: { type: "doc", id: "fdc/attestation-types" },
343+
items: [{ type: "autogenerated", dirName: "fdc/attestation-types" }],
344+
},
345+
{
346+
type: "category",
347+
label: "FDC Guides",
348+
collapsed: false,
342349
link: {
343-
slug: "/smart-accounts/guides",
350+
slug: "/fdc/guides",
344351
type: "generated-index",
345352
},
346353
items: [
347354
{
348355
type: "category",
349-
label: "CLI",
356+
label: "Hardhat",
350357
collapsed: true,
351358
link: {
352-
slug: "/smart-accounts/guides/cli",
359+
slug: "/fdc/guides/hardhat",
353360
type: "generated-index",
354361
},
355362
items: [
356363
{
357364
type: "autogenerated",
358-
dirName: "smart-accounts/guides/cli",
365+
dirName: "fdc/guides/hardhat",
359366
},
360367
],
361368
},
362369
{
363370
type: "category",
364-
label: "TypeScript + Viem",
371+
label: "Foundry",
365372
collapsed: true,
366373
link: {
367-
slug: "/smart-accounts/guides/typescript-viem",
374+
slug: "/fdc/guides/foundry",
368375
type: "generated-index",
369376
},
370377
items: [
371378
{
372379
type: "autogenerated",
373-
dirName: "smart-accounts/guides/typescript-viem",
380+
dirName: "fdc/guides/foundry",
374381
},
375382
],
376383
},
384+
"fdc/guides/fdc-by-hand",
385+
"fdc/guides/url-parsing-security",
377386
],
378387
},
379388
{
380389
type: "category",
381-
label: "Reference",
390+
label: "FDC Reference",
382391
collapsed: true,
383-
link: { type: "doc", id: "smart-accounts/reference" },
384-
items: [
385-
{
386-
type: "autogenerated",
387-
dirName: "smart-accounts/reference",
388-
},
389-
],
392+
link: { type: "doc", id: "fdc/reference" },
393+
items: [{ type: "autogenerated", dirName: "fdc/reference" }],
390394
},
395+
"fdc/troubleshooting",
391396
],
392397
},
393398
{

0 commit comments

Comments
 (0)