From f31556673b0dff1ab01af08b07b0f0ee3b032cf4 Mon Sep 17 00:00:00 2001 From: Mathieu Baudet <1105398+ma2bd@users.noreply.github.com> Date: Sun, 5 Jan 2025 18:46:21 -0500 Subject: [PATCH] activate linkcheck for external links --- book.toml | 2 ++ src/developers/sdk/composition.md | 2 +- src/developers/sdk/messages.md | 16 ++++++++-------- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/book.toml b/book.toml index fb956787..6776dd44 100644 --- a/book.toml +++ b/book.toml @@ -22,6 +22,8 @@ runnable = false "/core_concepts/microchains.html" = "/developers/core_concepts/microchains.html" [output.linkcheck] +follow-web-links = true +exclude = [ 'x\.com', 'crates\.io' ] [build] build-dir = "book" diff --git a/src/developers/sdk/composition.md b/src/developers/sdk/composition.md index 7cd992cb..5229f378 100644 --- a/src/developers/sdk/composition.md +++ b/src/developers/sdk/composition.md @@ -7,7 +7,7 @@ This section is about calling other applications using _cross-application calls_. Such calls happen on the same chain and are made with the -[`ContractRuntime::call_application`](https://docs.rs/linera-sdk/latest/linera_sdk/struct.ContractRuntime.html#call_application) +[`ContractRuntime::call_application`](https://docs.rs/linera-sdk/latest/linera_sdk/contract/type.ContractRuntime.html#call_application) method: ```rust,ignore diff --git a/src/developers/sdk/messages.md b/src/developers/sdk/messages.md index db3f5be5..9a1e2c9b 100644 --- a/src/developers/sdk/messages.md +++ b/src/developers/sdk/messages.md @@ -10,14 +10,14 @@ may be different. For your application, you can specify any serializable type as the `Message` type in your `Contract` implementation. To send a message, use the -[`ContractRuntime`](https://docs.rs/linera-sdk/latest/linera_sdk/struct.ContractRuntime.html) -made available as an argument to the contract's [`Contract::load`] constructor. -The runtime is usually stored inside the contract object, as we did when -[writing the contract binary](./contract.md). We can then call -[`ContractRuntime::prepare_message`](https://docs.rs/linera-sdk/latest/linera_sdk/struct.ContractRuntime.html#prepare_message) -to start preparing a message, and then -[`send_to`](https://docs.rs/linera-sdk/latest/linera_sdk/struct.MessageBuilder.html#send_to) -to send it to a destination chain. +[`ContractRuntime`](https://docs.rs/linera-sdk/latest/linera_sdk/contract/type.ContractRuntime.html) +made available as an argument to the contract's +[`Contract::load`](https://docs.rs/linera-sdk/latest/linera_sdk/trait.Contract.html#tymethod.load) +constructor. The runtime is usually stored inside the contract object, as we did +when [writing the contract binary](./contract.md). We can then call +[`ContractRuntime::prepare_message`](https://docs.rs/linera-sdk/latest/linera_sdk/contract/type.ContractRuntime.html#prepare_message) +to start preparing a message, and then `send_to` to send it to a destination +chain. ```rust,ignore self.runtime