diff --git a/docs/api/sails-js/_category_.json b/docs/sails-js/_category_.json similarity index 62% rename from docs/api/sails-js/_category_.json rename to docs/sails-js/_category_.json index d6f751e..cb4c609 100644 --- a/docs/api/sails-js/_category_.json +++ b/docs/sails-js/_category_.json @@ -1,4 +1,4 @@ { "label": "Sails-JS", - "position": 1 + "position": 7 } diff --git a/docs/api/sails-js/client-generation.md b/docs/sails-js/client-generation.md similarity index 97% rename from docs/api/sails-js/client-generation.md rename to docs/sails-js/client-generation.md index 0b6d6a6..98434cd 100644 --- a/docs/api/sails-js/client-generation.md +++ b/docs/sails-js/client-generation.md @@ -97,7 +97,7 @@ console.log(result); ### Message Methods -Message methods are used to send messages to the program. These methods accept the required arguments for sending the message and return a [Transaction Builder](../README.md#transaction-builder), which contains methods for building and sending the transaction. +Message methods are used to send messages to the program. These methods accept the required arguments for sending the message and return a [Transaction Builder](transaction-builder.md), which contains methods for building and sending the transaction. ```javascript const transaction = program.serviceName.functionName(arg1, arg2); @@ -138,7 +138,7 @@ console.log(result); ### Constructor Methods -Constructor methods, postfixed with `CtorFromCode` and `CtorFromCodeId` in the `Program` class, are used to deploy the program on the chain. These methods accept either the Wasm code bytes or the code ID and return a [Transaction Builder](../README.md#transaction-builder) just like message methods. +Constructor methods, postfixed with `CtorFromCode` and `CtorFromCodeId` in the `Program` class, are used to deploy the program on the chain. These methods accept either the Wasm code bytes or the code ID and return a [Transaction Builder](transaction-builder.md) just like message methods. ```javascript const code = fs.readFileSync('path/to/program.wasm'); diff --git a/docs/api/sails-js/overview.md b/docs/sails-js/overview.md similarity index 99% rename from docs/api/sails-js/overview.md rename to docs/sails-js/overview.md index 2539e22..cd4a406 100644 --- a/docs/api/sails-js/overview.md +++ b/docs/sails-js/overview.md @@ -13,7 +13,7 @@ The `sails-js` library workflow begins by creating a `Sails` object through pars - Queries - Events -The library also offers methods for decoding information from payloads and encoding data to be sent to a program via transactions. The `TransactionBuilder` class facilitates the building and sending of these transactions to the blockchain. For further details, refer to the [Transaction Builder](#transaction-builder) section. +The library also offers methods for decoding information from payloads and encoding data to be sent to a program via transactions. The `TransactionBuilder` class facilitates the building and sending of these transactions to the blockchain. For further details, refer to the [Transaction Builder](transaction-builder.md) section. ## Parsing an IDL Description diff --git a/docs/api/sails-js/sails-js.md b/docs/sails-js/sails-js.md similarity index 100% rename from docs/api/sails-js/sails-js.md rename to docs/sails-js/sails-js.md diff --git a/docs/api/sails-js/transaction-builder.md b/docs/sails-js/transaction-builder.md similarity index 100% rename from docs/api/sails-js/transaction-builder.md rename to docs/sails-js/transaction-builder.md