@@ -90,7 +90,7 @@ const config = {
9090 } ,
9191 {
9292 from : "/guide/getting-started" ,
93- to : "/wallet/get-started/set-up-dev-environment" ,
93+ to : "/wallet/how-to/ get-started-building /set-up-dev-environment" ,
9494 } ,
9595 {
9696 from : "/guide/common-terms" ,
@@ -102,7 +102,7 @@ const config = {
102102 } ,
103103 {
104104 from : "/guide/accessing-accounts" ,
105- to : "/wallet/get-started /access-accounts" ,
105+ to : "/wallet/how-to/connect /access-accounts" ,
106106 } ,
107107 {
108108 from : "/guide/sending-transactions" ,
@@ -126,35 +126,35 @@ const config = {
126126 } ,
127127 {
128128 from : "/guide/registering-function-names" ,
129- to : "/wallet/how-to/register- method-names" ,
129+ to : "/wallet/how-to/display/ method-names" ,
130130 } ,
131131 {
132132 from : "/guide/registering-your-token" ,
133- to : "/wallet/how-to/register-token " ,
133+ to : "/wallet/how-to/display/tokens " ,
134134 } ,
135135 {
136136 from : "/guide/defining-your-icon" ,
137- to : "/wallet/how-to/set- icon" ,
137+ to : "/wallet/how-to/display/ icon" ,
138138 } ,
139139 {
140140 from : "/guide/onboarding-library" ,
141- to : "/wallet/how-to/use-onboarding-library " ,
141+ to : "/wallet/how-to/onboard-users " ,
142142 } ,
143143 {
144144 from : "/guide/metamask-extension-provider" ,
145145 to : "/wallet/how-to/access-provider" ,
146146 } ,
147147 {
148148 from : "/guide/mobile-getting-started" ,
149- to : "/wallet/how-to/use -mobile" ,
149+ to : "/wallet/how-to/integrate-with -mobile" ,
150150 } ,
151151 {
152152 from : "/guide/site-compatibility-checklist" ,
153- to : "/wallet/how-to/use -mobile" ,
153+ to : "/wallet/how-to/integrate-with -mobile" ,
154154 } ,
155155 {
156156 from : "/guide/mobile-best-practices" ,
157- to : "/wallet/how-to/use -mobile" ,
157+ to : "/wallet/how-to/integrate-with -mobile" ,
158158 } ,
159159 {
160160 from : "/guide/snaps" ,
@@ -166,7 +166,7 @@ const config = {
166166 } ,
167167 {
168168 from : "/guide/snaps-concepts" ,
169- to : "/snaps/category/ concepts" ,
169+ to : "/snaps/concepts" ,
170170 } ,
171171 {
172172 from : "/guide/snaps-rpc-api" ,
@@ -186,7 +186,7 @@ const config = {
186186 } ,
187187 {
188188 from : "/guide/create-dapp" ,
189- to : "/wallet/get-started/set-up-dev-environment" ,
189+ to : "/wallet/how-to/ get-started-building /set-up-dev-environment" ,
190190 } ,
191191 {
192192 from : "/guide/contributors" ,
@@ -196,11 +196,107 @@ const config = {
196196 from : "/wallet/tutorials/simple-react-dapp" ,
197197 to : "/wallet/tutorials/react-dapp-local-state" ,
198198 } ,
199+ {
200+ from : "/wallet/category/how-to" ,
201+ to : "/wallet/how-to" ,
202+ } ,
203+ {
204+ from : "/wallet/category/concepts" ,
205+ to : "/wallet/concepts" ,
206+ } ,
207+ {
208+ from : "/wallet/category/tutorials" ,
209+ to : "/wallet/tutorials" ,
210+ } ,
211+ {
212+ from : "/wallet/category/reference" ,
213+ to : "/wallet/reference" ,
214+ } ,
215+ {
216+ from : "/snaps/category/get-started" ,
217+ to : "/snaps/get-started" ,
218+ } ,
219+ {
220+ from : "/snaps/category/how-to" ,
221+ to : "/snaps/how-to" ,
222+ } ,
223+ {
224+ from : "/snaps/category/concepts" ,
225+ to : "/snaps/concepts" ,
226+ } ,
227+ {
228+ from : "/snaps/category/tutorials" ,
229+ to : "/snaps/tutorials" ,
230+ } ,
231+ {
232+ from : "/snaps/category/reference" ,
233+ to : "/snaps/reference" ,
234+ } ,
235+ {
236+ from : "/wallet/category/get-started" ,
237+ to : "/wallet/how-to/get-started-building" ,
238+ } ,
239+ {
240+ from : "/wallet/get-started/set-up-dev-environment" ,
241+ to : "/wallet/how-to/get-started-building/set-up-dev-environment" ,
242+ } ,
243+ {
244+ from : "/wallet/get-started/run-development-network" ,
245+ to : "/wallet/how-to/get-started-building/run-devnet" ,
246+ } ,
247+ {
248+ from : "/wallet/how-to/secure-dapp" ,
249+ to : "/wallet/how-to/get-started-building/secure-dapp" ,
250+ } ,
251+ {
252+ from : "/wallet/get-started/detect-metamask" ,
253+ to : "/wallet/how-to/connect/detect-metamask" ,
254+ } ,
255+ {
256+ from : "/wallet/get-started/detect-network" ,
257+ to : "/wallet/how-to/connect/detect-network" ,
258+ } ,
259+ {
260+ from : "/wallet/get-started/access-accounts" ,
261+ to : "/wallet/how-to/connect/access-accounts" ,
262+ } ,
263+ {
264+ from : "/wallet/how-to/use-siwe" ,
265+ to : "/wallet/how-to/sign-data/siwe" ,
266+ } ,
267+ {
268+ from : "/wallet/how-to/use-mobile" ,
269+ to : "/wallet/how-to/integrate-with-mobile" ,
270+ } ,
271+ {
272+ from : "/wallet/how-to/use-onboarding-library" ,
273+ to : "/wallet/how-to/onboard-users" ,
274+ } ,
275+ {
276+ from : "/wallet/how-to/register-token" ,
277+ to : "/wallet/how-to/display/tokens" ,
278+ } ,
279+ {
280+ from : "/wallet/how-to/register-method-names" ,
281+ to : "/wallet/how-to/display/method-names" ,
282+ } ,
283+ {
284+ from : "/wallet/how-to/set-icon" ,
285+ to : "/wallet/how-to/display/icon" ,
286+ } ,
199287 ] . reduce ( ( acc , item ) => {
200288 acc . push ( item ) ;
201289 acc . push ( { from : item . from + ".html" , to : item . to } ) ;
202290 return acc ;
203291 } , [ ] ) ,
292+ createRedirects ( existingPath ) {
293+ if ( existingPath . includes ( "/connect/set-up-sdk" ) ) {
294+ return [
295+ existingPath . replace ( "/connect/set-up-sdk" , "/use-sdk" ) ,
296+ ] ;
297+ }
298+ return undefined ;
299+ } ,
204300 } ,
205301 ] ,
206302 ] ,
@@ -226,6 +322,11 @@ const config = {
226322 } ,
227323 ] ,
228324 } ,
325+ docs : {
326+ sidebar : {
327+ autoCollapseCategories : true ,
328+ } ,
329+ } ,
229330 footer : {
230331 logo : {
231332 alt : "MetaMask logo" ,
@@ -242,21 +343,21 @@ const config = {
242343 label : "Introduction" ,
243344 to : "/wallet" ,
244345 } ,
245- {
246- label : "Get started" ,
247- to : "/wallet/category/get-started" ,
248- } ,
249346 {
250347 label : "How to guides" ,
251348 to : "/wallet/category/how-to" ,
252349 } ,
350+ {
351+ label : "Concepts" ,
352+ to : "/wallet/concepts" ,
353+ } ,
253354 {
254355 label : "Tutorials" ,
255- to : "/wallet/category/ tutorials" ,
356+ to : "/wallet/tutorials" ,
256357 } ,
257358 {
258359 label : "Reference" ,
259- to : "/wallet/category/ reference" ,
360+ to : "/wallet/reference" ,
260361 } ,
261362 ] ,
262363 } ,
@@ -269,19 +370,19 @@ const config = {
269370 } ,
270371 {
271372 label : "Get started" ,
272- to : "/snaps/category/ get-started" ,
373+ to : "/snaps/get-started" ,
273374 } ,
274375 {
275376 label : "How to guides" ,
276- to : "/snaps/category/ how-to" ,
377+ to : "/snaps/how-to" ,
277378 } ,
278379 {
279380 label : "Tutorials" ,
280- to : "/snaps/category/ tutorials" ,
381+ to : "/snaps/tutorials" ,
281382 } ,
282383 {
283384 label : "Reference" ,
284- to : "/snaps/category/ reference" ,
385+ to : "/snaps/reference" ,
285386 } ,
286387 ] ,
287388 } ,
0 commit comments