Skip to content

Commit ad48603

Browse files
authored
Merge pull request #354 from massalabs/organize-massa-web3
Move massa-web3 section
2 parents aca3627 + 5c5ef85 commit ad48603

File tree

14 files changed

+35
-42
lines changed

14 files changed

+35
-42
lines changed

docs/build/massa-web3/backend-usage-massa-web3.mdx renamed to docs/build/massa-web3-legacy/backend-usage-massa-web3.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Backend Usage
44
---
55

66
If you need to interact with the Massa network for your backend, you can use the Massa Web3 API without the wallet provider.
7-
Initialization of the client is shown in the [introduction](/docs/build/massa-web3#without-wallet-provider)
7+
Initialization of the client is shown in the [introduction](/docs/build/massa-web3-legacy/intro.mdx#without-wallet-provider)
88
of the Massa Web3.
99

1010
## Wallet & Account Management

docs/build/massa-web3/dapp-usage-massa-web3.mdx renamed to docs/build/massa-web3-legacy/dapp-usage-massa-web3.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The [age smart contract](https://github.com/massalabs/massa-sc-examples/blob/mai
1313
This snippets shows how to call the smart contract and change the age value of Alice.
1414

1515
After creating a react app and setting up the Massa Web3 API as described in the
16-
[installation](/docs/build/massa-web3#installation) section, we can call the smart contract method `changeAge` like this:
16+
[installation](/docs/build/massa-web3-legacy/intro.mdx#installation) section, we can call the smart contract method `changeAge` like this:
1717

1818
```typescript
1919
let args = new Args().addString(inputName).addU32(newAge);

docs/build/massa-web3/massa-web3.mdx renamed to docs/build/massa-web3-legacy/intro.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
id: massa-web3-main
2+
id: intro
33
title: Introduction
44
---
55

@@ -17,7 +17,7 @@ import TabItem from "@theme/TabItem";
1717

1818
- Thank you for your patience and continued interest in the Massa Web3 JS Library.
1919

20-
We already started to add the new documentation for the upcoming version. You can find it [here](/docs/build/web3/intro).
20+
We already started to add the new documentation for the upcoming version. You can find it [here](/docs/build/massa-web3/intro).
2121
:::
2222

2323
## What is Massa-Web3?
@@ -37,7 +37,7 @@ Massa-web3 will allow you to interact with the Massa blockchain in a variety of
3737
- Fetch events from the blockchain
3838
- And much more!
3939

40-
In addition, the library includes a [collection of handy utility functions](/docs/build/massa-web3/massa-web3-utils) (e.g conversion between different units, etc).
40+
In addition, the library includes a [collection of handy utility functions](/docs/build/massa-web3-legacy/massa-web3-utils) (e.g conversion between different units, etc).
4141

4242
:::tip
4343
For a quick integration of Massa within a web browser, consider reading our Web Frontend Integration Guide.
@@ -79,7 +79,7 @@ console.log("Massa Web3 ", window.massa);
7979

8080
## Initialization
8181

82-
Some usage of massa-web3 require an account. This account can be either provided using [Wallet-provider](/docs/build/web3/provider#1-from-a-wallet) or directly in the code
82+
Some usage of massa-web3 require an account. This account can be either provided using [Wallet-provider](/docs/build/massa-web3/provider#1-from-a-wallet) or directly in the code
8383

8484
### With Wallet-provider
8585

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

docs/build/wallet/intro.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ Here is a list of available wallet providers for the Massa blockchain:
1818

1919
- [Community Wallets](/docs/build/wallet/community-wallets): Community wallets are developed and maintained by the Massa community. These wallets can vary in features and interfaces.
2020

21-
- [Wallet Provider](/docs/build/web3/provider#1-from-a-wallet): Wallet Provider offers a secure, reliable, and versatile wallet that supports the Massa blockchain.
21+
- [Wallet Provider](/docs/build/massa-web3/provider#1-from-a-wallet): Wallet Provider offers a secure, reliable, and versatile wallet that supports the Massa blockchain.

sidebars.js

Lines changed: 28 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -266,89 +266,89 @@ const sidebars = {
266266
},
267267
{
268268
type: "category",
269-
label: "Web3 v2",
269+
label: "Massa-Web3",
270270
items: [
271271
{
272272
type: "doc",
273-
id: "build/web3/intro",
273+
id: "build/massa-web3/intro",
274274
label: "Web3 Libraries Introduction",
275275
},
276276

277277
{
278278
type: "doc",
279279
label: "Prerequisites",
280-
id: "build/web3/prerequisites",
280+
id: "build/massa-web3/prerequisites",
281281
},
282282
{
283283
type: "doc",
284-
id: "build/web3/provider",
284+
id: "build/massa-web3/provider",
285285
label: "Provider",
286286
},
287287
{
288288
type: "doc",
289-
id: "build/web3/wallet",
289+
id: "build/massa-web3/wallet",
290290
label: "Wallet",
291291
},
292292
{
293293
type: "doc",
294-
id: "build/web3/operation",
294+
id: "build/massa-web3/operation",
295295
label: "Operation",
296296
},
297-
298297
{
299298
type: "category",
300299
collapsible: false,
301300
label: "Contracts-wrappers",
302301
items: [
303302
{
304303
type: "doc",
305-
id: "build/web3/contracts-wrappers/contract-wrappers-intro",
304+
id: "build/massa-web3/contracts-wrappers/contract-wrappers-intro",
306305
label: "Introduction",
307306
},
308307
{
309308
type: "doc",
310-
id: "build/web3/contracts-wrappers/mrc20",
309+
id: "build/massa-web3/contracts-wrappers/mrc20",
311310
label: "MRC20",
312311
},
313312
],
314313
},
315314
],
316315
},
317-
{
318-
type: "html",
319-
value: "<hr/>",
320-
},
321-
{
322-
type: "html",
323-
value:
324-
"<span class='menu__link'><b><small> Developer Tools </small></b></span>",
325-
},
326316
{
327317
type: "category",
328318
label: "Massa-Web3 (legacy)",
329319
items: [
330320
{
331321
type: "doc",
332-
id: "build/massa-web3/massa-web3-main",
322+
id: "build/massa-web3-legacy/intro",
333323
},
334324
{
335325
type: "doc",
336-
id: "build/massa-web3/dapp-usage-massa-web3",
326+
id: "build/massa-web3-legacy/dapp-usage-massa-web3",
337327
},
338328
{
339329
type: "doc",
340-
id: "build/massa-web3/backend-usage-massa-web3",
330+
id: "build/massa-web3-legacy/backend-usage-massa-web3",
341331
},
342332
{
343333
type: "doc",
344-
id: "build/massa-web3/wallet-provider",
334+
id: "build/massa-web3-legacy/wallet-provider",
345335
},
346336
{
347337
type: "doc",
348-
id: "build/massa-web3/massa-web3-utils",
338+
id: "build/massa-web3-legacy/massa-web3-utils",
349339
},
350340
],
351341
},
342+
{
343+
type: "html",
344+
value: "<hr/>",
345+
},
346+
{
347+
type: "html",
348+
value:
349+
"<span class='menu__link'><b><small> Developer Tools </small></b></span>",
350+
},
351+
352352
{
353353
type: "category",
354354
label: "Wallets",
@@ -509,35 +509,28 @@ const sidebars = {
509509
type: "category",
510510
label: "Getting Started",
511511
collapsed: false,
512-
items: [
513-
"deweb/getting-started/overview",
514-
],
512+
items: ["deweb/getting-started/overview"],
515513
},
516514
{
517515
type: "category",
518516
label: "Acccessing the DeWeb locally",
519517
collapsed: false,
520518
items: [
521-
"deweb/local-server-config/setup-local-server",
522-
"deweb/local-server-config/server-config"
519+
"deweb/local-server-config/setup-local-server",
520+
"deweb/local-server-config/server-config",
523521
],
524522
},
525523
{
526524
type: "category",
527525
label: "Becoming a provider",
528526
collapsed: false,
529-
items: [
530-
"deweb/provider/setup-public-instance",
531-
],
527+
items: ["deweb/provider/setup-public-instance"],
532528
},
533529
{
534530
type: "category",
535531
label: "Uploading to the DeWeb",
536532
collapsed: false,
537-
items: [
538-
"deweb/upload/cli",
539-
"deweb/upload/mns",
540-
],
533+
items: ["deweb/upload/cli", "deweb/upload/mns"],
541534
},
542535
// {
543536
// type: "doc",

0 commit comments

Comments
 (0)