diff --git a/website/community/awesome.md b/website/community/awesome.md index 25257e919..5500e179e 100644 --- a/website/community/awesome.md +++ b/website/community/awesome.md @@ -126,7 +126,7 @@ description: 'Community projects built using yew' ## Books - [The WebAssembly Book](https://rustwasm.github.io/docs/book/) - Working with the web and producing .wasm files. -- [The wasm-bindgen Guide](https://rustwasm.github.io/docs/wasm-bindgen/) - How to bind Rust and JavaScript APIs. +- [The wasm-bindgen Guide](https://wasm-bindgen.github.io/wasm-bindgen/) - How to bind Rust and JavaScript APIs. - [The wasm-pack Guide](https://rustwasm.github.io/docs/wasm-pack/) - How to build and work with rust-generated WebAssembly. - [Programming WebAssembly with Rust](https://pragprog.com/book/khrust/programming-webassembly-with-rust) - Includes a chapter `Advanced JavaScript Integration with Yew` on creating an app with Yew. - [Creative Projects for Rust Programmers](https://www.oreilly.com/library/view/creative-projects-for/9781789346220/) - Chapter 5, `Creating a Client-Side WebAssembly App Using Yew`. diff --git a/website/docs/concepts/basic-web-technologies/js.mdx b/website/docs/concepts/basic-web-technologies/js.mdx index b38fcde08..d894422a0 100644 --- a/website/docs/concepts/basic-web-technologies/js.mdx +++ b/website/docs/concepts/basic-web-technologies/js.mdx @@ -18,7 +18,7 @@ sometimes rely on calling JavaScript. What follows is an overview of the involve [`wasm-bindgen`](https://github.com/rustwasm/wasm-bindgen) is a library and tool that bridges calls between JavaScript and Rust functions. -We highly recommend you take a look at their [documentation](https://rustwasm.github.io/docs/wasm-bindgen/) and our [quick guide](./wasm-bindgen.mdx). +We highly recommend you take a look at their [documentation](https://wasm-bindgen.github.io/wasm-bindgen/) and our [quick guide](./wasm-bindgen.mdx). ## web-sys @@ -50,4 +50,4 @@ let document = window() -Once again we highly recommend you take a look at their [documentation](https://rustwasm.github.io/docs/wasm-bindgen/) and our [quick guide](./web-sys.mdx). +Once again we highly recommend you take a look at their [documentation](https://wasm-bindgen.github.io/wasm-bindgen/) and our [quick guide](./web-sys.mdx). diff --git a/website/docs/concepts/basic-web-technologies/wasm-bindgen.mdx b/website/docs/concepts/basic-web-technologies/wasm-bindgen.mdx index 16d9e6436..ff22c0bd2 100644 --- a/website/docs/concepts/basic-web-technologies/wasm-bindgen.mdx +++ b/website/docs/concepts/basic-web-technologies/wasm-bindgen.mdx @@ -16,7 +16,7 @@ Yew uses `wasm-bindgen` to interact with the browser through a number of crates: This section will explore some of these crates at a high level, to make it easier to understand and use `wasm-bindgen` APIs with Yew. For a more in-depth guide to `wasm-bindgen` and its associated -crates then check out [The `wasm-bindgen` Guide](https://rustwasm.github.io/docs/wasm-bindgen/). +crates then check out [The `wasm-bindgen` Guide](https://wasm-bindgen.github.io/wasm-bindgen/). For documentation on the above crates check out [`wasm-bindgen docs.rs`](https://rustwasm.github.io/wasm-bindgen/api/wasm_bindgen/index.html). @@ -72,7 +72,7 @@ log_u32(42); log_many("Logging", "many values!"); ``` -_This example was adapted from [1.2 Using console.log of The `wasm-bindgen` Guide](https://rustwasm.github.io/docs/wasm-bindgen/examples/console-log.html)_. +_This example was adapted from [1.2 Using console.log of The `wasm-bindgen` Guide](https://wasm-bindgen.github.io/wasm-bindgen/examples/console-log.html)_. ### Simulating inheritance @@ -100,7 +100,7 @@ It is important to note that every single type imported using `#[wasm-bindgen]` you can think of it as the `A` in the example above, this type is [`JsValue`](https://rustwasm.github.io/wasm-bindgen/api/wasm_bindgen/struct.JsValue.html) which has its section below. -_[extends section in The `wasm-bindgen` Guide](https://rustwasm.github.io/docs/wasm-bindgen/reference/attributes/on-js-imports/extends.html)_ +_[extends section in The `wasm-bindgen` Guide](https://wasm-bindgen.github.io/wasm-bindgen/reference/attributes/on-js-imports/extends.html)_ ### [`JsValue`](https://rustwasm.github.io/wasm-bindgen/api/wasm_bindgen/struct.JsValue.html) diff --git a/website/docs/more/testing.mdx b/website/docs/more/testing.mdx index d48a7b581..38ce7330e 100644 --- a/website/docs/more/testing.mdx +++ b/website/docs/more/testing.mdx @@ -19,7 +19,7 @@ Help improve the documentation for snapshot testing. ## wasm_bindgen_test -The Rust/WASM working group maintains a crate called [`wasm_bindgen_test`](https://rustwasm.github.io/docs/wasm-bindgen/wasm-bindgen-test/index.html) +The Rust/WASM working group maintains a crate called [`wasm_bindgen_test`](https://wasm-bindgen.github.io/wasm-bindgen/wasm-bindgen-test/index.html) which allows you to run tests in a browser in a similar fashion to how the built-in `#[test]` procedural macro works. -More information is given in the [Rust Wasm working group's documentation](https://rustwasm.github.io/docs/wasm-bindgen/wasm-bindgen-test/index.html) +More information is given in the [Rust Wasm working group's documentation](https://wasm-bindgen.github.io/wasm-bindgen/wasm-bindgen-test/index.html) for this module. diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/basic-web-technologies/js.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/basic-web-technologies/js.mdx index 64d8cf9c8..2d2a21e99 100644 --- a/website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/basic-web-technologies/js.mdx +++ b/website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/basic-web-technologies/js.mdx @@ -15,7 +15,7 @@ import TabItem from '@theme/TabItem' [`wasm-bindgen`](https://github.com/rustwasm/wasm-bindgen) は、JavaScript と Rust 関数の間に呼び出しの橋を架けるライブラリとツールです。 -彼らの[ドキュメント](https://rustwasm.github.io/docs/wasm-bindgen/)と私たちの[クイックガイド](./wasm-bindgen.mdx)を強くお勧めします。 +彼らの[ドキュメント](https://wasm-bindgen.github.io/wasm-bindgen/)と私たちの[クイックガイド](./wasm-bindgen.mdx)を強くお勧めします。 ## web-sys @@ -47,4 +47,4 @@ let document = window() -繰り返しになりますが、彼らの[ドキュメント](https://rustwasm.github.io/docs/wasm-bindgen/)と私たちの[クイックガイド](./web-sys.mdx)を強くお勧めします。 +繰り返しになりますが、彼らの[ドキュメント](https://wasm-bindgen.github.io/wasm-bindgen/)と私たちの[クイックガイド](./web-sys.mdx)を強くお勧めします。 diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/basic-web-technologies/wasm-bindgen.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/basic-web-technologies/wasm-bindgen.mdx index 942885b73..5e54ef9f9 100644 --- a/website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/basic-web-technologies/wasm-bindgen.mdx +++ b/website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/basic-web-technologies/wasm-bindgen.mdx @@ -12,7 +12,7 @@ Yew は `wasm-bindgen` を使用して、いくつかのクレートを介して - [`wasm-bindgen-futures`](https://crates.io/crates/wasm-bindgen-futures) - [`web-sys`](https://crates.io/crates/web-sys) -このセクションでは、これらのクレートをより抽象的なレベルから探求し、Yew での `wasm-bindgen` API の理解と使用を容易にします。`wasm-bindgen` および関連するクレートに関する詳細なガイドについては、[`wasm-bindgen` ガイド](https://rustwasm.github.io/docs/wasm-bindgen/) を参照してください。 +このセクションでは、これらのクレートをより抽象的なレベルから探求し、Yew での `wasm-bindgen` API の理解と使用を容易にします。`wasm-bindgen` および関連するクレートに関する詳細なガイドについては、[`wasm-bindgen` ガイド](https://wasm-bindgen.github.io/wasm-bindgen/) を参照してください。 上記のクレートのドキュメントについては、[`wasm-bindgen docs.rs`](https://rustwasm.github.io/wasm-bindgen/api/wasm_bindgen/index.html) を参照してください。 @@ -56,7 +56,7 @@ log_u32(42); log_many("Logging", "many values!"); ``` -_この例は、[1.2 `wasm-bindgen` ガイドの console.log を使用する](https://rustwasm.github.io/docs/wasm-bindgen/examples/console-log.html) に基づいています。_ +_この例は、[1.2 `wasm-bindgen` ガイドの console.log を使用する](https://wasm-bindgen.github.io/wasm-bindgen/examples/console-log.html) に基づいています。_ ### 継承のシミュレーション @@ -75,7 +75,7 @@ Rust では、この継承関係は [`Deref`](https://doc.rust-lang.org/std/ops/ 注意すべき点は、`#[wasm-bindgen]` を使用してインポートされたすべての型には同じルート型があり、それを上記の例の `A` と見なすことができるということです。この型は [`JsValue`](#jsvalue) であり、以下にそのセクションがあります。 -_[`wasm-bindgen` ガイドの extends セクション](https://rustwasm.github.io/docs/wasm-bindgen/reference/attributes/on-js-imports/extends.html)_ +_[`wasm-bindgen` ガイドの extends セクション](https://wasm-bindgen.github.io/wasm-bindgen/reference/attributes/on-js-imports/extends.html)_ ### [`JsValue`](https://rustwasm.github.io/wasm-bindgen/api/wasm_bindgen/struct.JsValue.html) diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/current/more/testing.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/current/more/testing.mdx index 59130fe1a..b945b323f 100644 --- a/website/i18n/ja/docusaurus-plugin-content-docs/current/more/testing.mdx +++ b/website/i18n/ja/docusaurus-plugin-content-docs/current/more/testing.mdx @@ -19,6 +19,6 @@ Yew はコンポーネントのスナップショットテストを容易にす ## wasm_bindgen_test -Rust/WASM ワーキンググループは [`wasm_bindgen_test`](https://rustwasm.github.io/docs/wasm-bindgen/wasm-bindgen-test/index.html) というクレートを維持しています。 +Rust/WASM ワーキンググループは [`wasm_bindgen_test`](https://wasm-bindgen.github.io/wasm-bindgen/wasm-bindgen-test/index.html) というクレートを維持しています。 これにより、組み込みの `#[test]` プロシージャマクロに似た方法でブラウザ内でテストを実行できます。 -このモジュールの詳細については、[Rust Wasm ワーキンググループのドキュメント](https://rustwasm.github.io/docs/wasm-bindgen/wasm-bindgen-test/index.html) を参照してください。 +このモジュールの詳細については、[Rust Wasm ワーキンググループのドキュメント](https://wasm-bindgen.github.io/wasm-bindgen/wasm-bindgen-test/index.html) を参照してください。 diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/more/testing.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/more/testing.mdx index d6f4a6785..eb955034b 100644 --- a/website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/more/testing.mdx +++ b/website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/more/testing.mdx @@ -9,4 +9,4 @@ description: Testing your app ## wasm_bindgen_test -Rust Wasm ワーキンググループは wasm_bindgen_test というフレームワークをメンテナンスしており、組み込みの #[test] プロシージャルマクロの動作と同様の方法でブラウザでテストを実行することができます。詳細は、[Rust Wasm 活動グループのドキュメント](https://rustwasm.github.io/docs/wasm-bindgen/wasm-bindgen-test/index.html)に記載されています。 +Rust Wasm ワーキンググループは wasm_bindgen_test というフレームワークをメンテナンスしており、組み込みの #[test] プロシージャルマクロの動作と同様の方法でブラウザでテストを実行することができます。詳細は、[Rust Wasm 活動グループのドキュメント](https://wasm-bindgen.github.io/wasm-bindgen/wasm-bindgen-test/index.html)に記載されています。 diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/version-0.20/more/testing.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/version-0.20/more/testing.mdx index d6f4a6785..eb955034b 100644 --- a/website/i18n/ja/docusaurus-plugin-content-docs/version-0.20/more/testing.mdx +++ b/website/i18n/ja/docusaurus-plugin-content-docs/version-0.20/more/testing.mdx @@ -9,4 +9,4 @@ description: Testing your app ## wasm_bindgen_test -Rust Wasm ワーキンググループは wasm_bindgen_test というフレームワークをメンテナンスしており、組み込みの #[test] プロシージャルマクロの動作と同様の方法でブラウザでテストを実行することができます。詳細は、[Rust Wasm 活動グループのドキュメント](https://rustwasm.github.io/docs/wasm-bindgen/wasm-bindgen-test/index.html)に記載されています。 +Rust Wasm ワーキンググループは wasm_bindgen_test というフレームワークをメンテナンスしており、組み込みの #[test] プロシージャルマクロの動作と同様の方法でブラウザでテストを実行することができます。詳細は、[Rust Wasm 活動グループのドキュメント](https://wasm-bindgen.github.io/wasm-bindgen/wasm-bindgen-test/index.html)に記載されています。 diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/version-0.21/more/testing.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/version-0.21/more/testing.mdx index d6f4a6785..eb955034b 100644 --- a/website/i18n/ja/docusaurus-plugin-content-docs/version-0.21/more/testing.mdx +++ b/website/i18n/ja/docusaurus-plugin-content-docs/version-0.21/more/testing.mdx @@ -9,4 +9,4 @@ description: Testing your app ## wasm_bindgen_test -Rust Wasm ワーキンググループは wasm_bindgen_test というフレームワークをメンテナンスしており、組み込みの #[test] プロシージャルマクロの動作と同様の方法でブラウザでテストを実行することができます。詳細は、[Rust Wasm 活動グループのドキュメント](https://rustwasm.github.io/docs/wasm-bindgen/wasm-bindgen-test/index.html)に記載されています。 +Rust Wasm ワーキンググループは wasm_bindgen_test というフレームワークをメンテナンスしており、組み込みの #[test] プロシージャルマクロの動作と同様の方法でブラウザでテストを実行することができます。詳細は、[Rust Wasm 活動グループのドキュメント](https://wasm-bindgen.github.io/wasm-bindgen/wasm-bindgen-test/index.html)に記載されています。 diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/version-0.22/concepts/basic-web-technologies/js.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/version-0.22/concepts/basic-web-technologies/js.mdx index 64d8cf9c8..2d2a21e99 100644 --- a/website/i18n/ja/docusaurus-plugin-content-docs/version-0.22/concepts/basic-web-technologies/js.mdx +++ b/website/i18n/ja/docusaurus-plugin-content-docs/version-0.22/concepts/basic-web-technologies/js.mdx @@ -15,7 +15,7 @@ import TabItem from '@theme/TabItem' [`wasm-bindgen`](https://github.com/rustwasm/wasm-bindgen) は、JavaScript と Rust 関数の間に呼び出しの橋を架けるライブラリとツールです。 -彼らの[ドキュメント](https://rustwasm.github.io/docs/wasm-bindgen/)と私たちの[クイックガイド](./wasm-bindgen.mdx)を強くお勧めします。 +彼らの[ドキュメント](https://wasm-bindgen.github.io/wasm-bindgen/)と私たちの[クイックガイド](./wasm-bindgen.mdx)を強くお勧めします。 ## web-sys @@ -47,4 +47,4 @@ let document = window() -繰り返しになりますが、彼らの[ドキュメント](https://rustwasm.github.io/docs/wasm-bindgen/)と私たちの[クイックガイド](./web-sys.mdx)を強くお勧めします。 +繰り返しになりますが、彼らの[ドキュメント](https://wasm-bindgen.github.io/wasm-bindgen/)と私たちの[クイックガイド](./web-sys.mdx)を強くお勧めします。 diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/version-0.22/concepts/basic-web-technologies/wasm-bindgen.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/version-0.22/concepts/basic-web-technologies/wasm-bindgen.mdx index 942885b73..5e54ef9f9 100644 --- a/website/i18n/ja/docusaurus-plugin-content-docs/version-0.22/concepts/basic-web-technologies/wasm-bindgen.mdx +++ b/website/i18n/ja/docusaurus-plugin-content-docs/version-0.22/concepts/basic-web-technologies/wasm-bindgen.mdx @@ -12,7 +12,7 @@ Yew は `wasm-bindgen` を使用して、いくつかのクレートを介して - [`wasm-bindgen-futures`](https://crates.io/crates/wasm-bindgen-futures) - [`web-sys`](https://crates.io/crates/web-sys) -このセクションでは、これらのクレートをより抽象的なレベルから探求し、Yew での `wasm-bindgen` API の理解と使用を容易にします。`wasm-bindgen` および関連するクレートに関する詳細なガイドについては、[`wasm-bindgen` ガイド](https://rustwasm.github.io/docs/wasm-bindgen/) を参照してください。 +このセクションでは、これらのクレートをより抽象的なレベルから探求し、Yew での `wasm-bindgen` API の理解と使用を容易にします。`wasm-bindgen` および関連するクレートに関する詳細なガイドについては、[`wasm-bindgen` ガイド](https://wasm-bindgen.github.io/wasm-bindgen/) を参照してください。 上記のクレートのドキュメントについては、[`wasm-bindgen docs.rs`](https://rustwasm.github.io/wasm-bindgen/api/wasm_bindgen/index.html) を参照してください。 @@ -56,7 +56,7 @@ log_u32(42); log_many("Logging", "many values!"); ``` -_この例は、[1.2 `wasm-bindgen` ガイドの console.log を使用する](https://rustwasm.github.io/docs/wasm-bindgen/examples/console-log.html) に基づいています。_ +_この例は、[1.2 `wasm-bindgen` ガイドの console.log を使用する](https://wasm-bindgen.github.io/wasm-bindgen/examples/console-log.html) に基づいています。_ ### 継承のシミュレーション @@ -75,7 +75,7 @@ Rust では、この継承関係は [`Deref`](https://doc.rust-lang.org/std/ops/ 注意すべき点は、`#[wasm-bindgen]` を使用してインポートされたすべての型には同じルート型があり、それを上記の例の `A` と見なすことができるということです。この型は [`JsValue`](#jsvalue) であり、以下にそのセクションがあります。 -_[`wasm-bindgen` ガイドの extends セクション](https://rustwasm.github.io/docs/wasm-bindgen/reference/attributes/on-js-imports/extends.html)_ +_[`wasm-bindgen` ガイドの extends セクション](https://wasm-bindgen.github.io/wasm-bindgen/reference/attributes/on-js-imports/extends.html)_ ### [`JsValue`](https://rustwasm.github.io/wasm-bindgen/api/wasm_bindgen/struct.JsValue.html) diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/version-0.22/more/testing.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/version-0.22/more/testing.mdx index 59130fe1a..b945b323f 100644 --- a/website/i18n/ja/docusaurus-plugin-content-docs/version-0.22/more/testing.mdx +++ b/website/i18n/ja/docusaurus-plugin-content-docs/version-0.22/more/testing.mdx @@ -19,6 +19,6 @@ Yew はコンポーネントのスナップショットテストを容易にす ## wasm_bindgen_test -Rust/WASM ワーキンググループは [`wasm_bindgen_test`](https://rustwasm.github.io/docs/wasm-bindgen/wasm-bindgen-test/index.html) というクレートを維持しています。 +Rust/WASM ワーキンググループは [`wasm_bindgen_test`](https://wasm-bindgen.github.io/wasm-bindgen/wasm-bindgen-test/index.html) というクレートを維持しています。 これにより、組み込みの `#[test]` プロシージャマクロに似た方法でブラウザ内でテストを実行できます。 -このモジュールの詳細については、[Rust Wasm ワーキンググループのドキュメント](https://rustwasm.github.io/docs/wasm-bindgen/wasm-bindgen-test/index.html) を参照してください。 +このモジュールの詳細については、[Rust Wasm ワーキンググループのドキュメント](https://wasm-bindgen.github.io/wasm-bindgen/wasm-bindgen-test/index.html) を参照してください。 diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/concepts/basic-web-technologies/js.mdx b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/concepts/basic-web-technologies/js.mdx index 2a8dfa33a..26dee3e33 100644 --- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/concepts/basic-web-technologies/js.mdx +++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/concepts/basic-web-technologies/js.mdx @@ -15,7 +15,7 @@ import TabItem from '@theme/TabItem' [`wasm-bindgen`](https://github.com/rustwasm/wasm-bindgen) 是一个在 JavaScript 和 Rust 函数之间建立调用桥梁的库和工具。 -我们强烈建议您查看他们的[文档](https://rustwasm.github.io/docs/wasm-bindgen/)和我们的[快速指南](./wasm-bindgen.mdx)。 +我们强烈建议您查看他们的[文档](https://wasm-bindgen.github.io/wasm-bindgen/)和我们的[快速指南](./wasm-bindgen.mdx)。 ## web-sys @@ -47,4 +47,4 @@ let document = window() -再次强调,我们强烈建议您查看他们的[文档](https://rustwasm.github.io/docs/wasm-bindgen/)和我们的[快速指南](./web-sys.mdx)。 +再次强调,我们强烈建议您查看他们的[文档](https://wasm-bindgen.github.io/wasm-bindgen/)和我们的[快速指南](./web-sys.mdx)。 diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/concepts/basic-web-technologies/wasm-bindgen.mdx b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/concepts/basic-web-technologies/wasm-bindgen.mdx index 46c8ac5e8..7f8c5758e 100644 --- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/concepts/basic-web-technologies/wasm-bindgen.mdx +++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/concepts/basic-web-technologies/wasm-bindgen.mdx @@ -12,7 +12,7 @@ Yew 使用 `wasm-bindgen` 通过一些 crate 与浏览器进行交互: - [`wasm-bindgen-futures`](https://crates.io/crates/wasm-bindgen-futures) - [`web-sys`](https://crates.io/crates/web-sys) -本节将从更抽象的层次上探讨这些 crate,以便更容易地理解和使用 Yew 中的 `wasm-bindgen` API。要了解有关 `wasm-bindgen` 及其相关 crate 的更深入指南,请查看 [`wasm-bindgen` 指引](https://rustwasm.github.io/docs/wasm-bindgen/)。 +本节将从更抽象的层次上探讨这些 crate,以便更容易地理解和使用 Yew 中的 `wasm-bindgen` API。要了解有关 `wasm-bindgen` 及其相关 crate 的更深入指南,请查看 [`wasm-bindgen` 指引](https://wasm-bindgen.github.io/wasm-bindgen/)。 有关上述 crate 的文档,请查看 [`wasm-bindgen docs.rs`](https://rustwasm.github.io/wasm-bindgen/api/wasm_bindgen/index.html)。 @@ -56,7 +56,7 @@ log_u32(42); log_many("Logging", "many values!"); ``` -_这个示例是基于 [1.2 使用 console.log 的 `wasm-bindgen` 指引](https://rustwasm.github.io/docs/wasm-bindgen/examples/console-log.html) 改编的。_ +_这个示例是基于 [1.2 使用 console.log 的 `wasm-bindgen` 指引](https://wasm-bindgen.github.io/wasm-bindgen/examples/console-log.html) 改编的。_ ### 模拟继承 @@ -75,7 +75,7 @@ _这个示例是基于 [1.2 使用 console.log 的 `wasm-bindgen` 指引](https: 需要注意的是,使用 `#[wasm-bindgen]` 导入的每种类型都有相同的根类型,您可以将其视为上面示例中的 `A`,这种类型是 [`JsValue`](#jsvalue),下面有它的部分。 -_[`wasm-bindgen` 指引中的 extends 部分](https://rustwasm.github.io/docs/wasm-bindgen/reference/attributes/on-js-imports/extends.html)_ +_[`wasm-bindgen` 指引中的 extends 部分](https://wasm-bindgen.github.io/wasm-bindgen/reference/attributes/on-js-imports/extends.html)_ ### [`JsValue`](https://rustwasm.github.io/wasm-bindgen/api/wasm_bindgen/struct.JsValue.html) diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/more/testing.mdx b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/more/testing.mdx index 5e4e41180..8a1f0d90a 100644 --- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/more/testing.mdx +++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/more/testing.mdx @@ -19,6 +19,6 @@ Yew 提供了 `yew::tests::layout_tests` 模块来方便组件的快照测试。 ## wasm_bindgen_test -Rust/WASM 工作组维护了一个叫做 [`wasm_bindgen_test`](https://rustwasm.github.io/docs/wasm-bindgen/wasm-bindgen-test/index.html) 的 crate, +Rust/WASM 工作组维护了一个叫做 [`wasm_bindgen_test`](https://wasm-bindgen.github.io/wasm-bindgen/wasm-bindgen-test/index.html) 的 crate, 它允许你以类似于内置的 `#[test]` 过程宏的方式在浏览器中运行测试。 -有关此模块的更多信息,请参阅 [Rust Wasm 工作组的文档](https://rustwasm.github.io/docs/wasm-bindgen/wasm-bindgen-test/index.html)。 +有关此模块的更多信息,请参阅 [Rust Wasm 工作组的文档](https://wasm-bindgen.github.io/wasm-bindgen/wasm-bindgen-test/index.html)。 diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/version-0.22/concepts/basic-web-technologies/js.mdx b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/version-0.22/concepts/basic-web-technologies/js.mdx index 2a8dfa33a..26dee3e33 100644 --- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/version-0.22/concepts/basic-web-technologies/js.mdx +++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/version-0.22/concepts/basic-web-technologies/js.mdx @@ -15,7 +15,7 @@ import TabItem from '@theme/TabItem' [`wasm-bindgen`](https://github.com/rustwasm/wasm-bindgen) 是一个在 JavaScript 和 Rust 函数之间建立调用桥梁的库和工具。 -我们强烈建议您查看他们的[文档](https://rustwasm.github.io/docs/wasm-bindgen/)和我们的[快速指南](./wasm-bindgen.mdx)。 +我们强烈建议您查看他们的[文档](https://wasm-bindgen.github.io/wasm-bindgen/)和我们的[快速指南](./wasm-bindgen.mdx)。 ## web-sys @@ -47,4 +47,4 @@ let document = window() -再次强调,我们强烈建议您查看他们的[文档](https://rustwasm.github.io/docs/wasm-bindgen/)和我们的[快速指南](./web-sys.mdx)。 +再次强调,我们强烈建议您查看他们的[文档](https://wasm-bindgen.github.io/wasm-bindgen/)和我们的[快速指南](./web-sys.mdx)。 diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/version-0.22/concepts/basic-web-technologies/wasm-bindgen.mdx b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/version-0.22/concepts/basic-web-technologies/wasm-bindgen.mdx index 46c8ac5e8..7f8c5758e 100644 --- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/version-0.22/concepts/basic-web-technologies/wasm-bindgen.mdx +++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/version-0.22/concepts/basic-web-technologies/wasm-bindgen.mdx @@ -12,7 +12,7 @@ Yew 使用 `wasm-bindgen` 通过一些 crate 与浏览器进行交互: - [`wasm-bindgen-futures`](https://crates.io/crates/wasm-bindgen-futures) - [`web-sys`](https://crates.io/crates/web-sys) -本节将从更抽象的层次上探讨这些 crate,以便更容易地理解和使用 Yew 中的 `wasm-bindgen` API。要了解有关 `wasm-bindgen` 及其相关 crate 的更深入指南,请查看 [`wasm-bindgen` 指引](https://rustwasm.github.io/docs/wasm-bindgen/)。 +本节将从更抽象的层次上探讨这些 crate,以便更容易地理解和使用 Yew 中的 `wasm-bindgen` API。要了解有关 `wasm-bindgen` 及其相关 crate 的更深入指南,请查看 [`wasm-bindgen` 指引](https://wasm-bindgen.github.io/wasm-bindgen/)。 有关上述 crate 的文档,请查看 [`wasm-bindgen docs.rs`](https://rustwasm.github.io/wasm-bindgen/api/wasm_bindgen/index.html)。 @@ -56,7 +56,7 @@ log_u32(42); log_many("Logging", "many values!"); ``` -_这个示例是基于 [1.2 使用 console.log 的 `wasm-bindgen` 指引](https://rustwasm.github.io/docs/wasm-bindgen/examples/console-log.html) 改编的。_ +_这个示例是基于 [1.2 使用 console.log 的 `wasm-bindgen` 指引](https://wasm-bindgen.github.io/wasm-bindgen/examples/console-log.html) 改编的。_ ### 模拟继承 @@ -75,7 +75,7 @@ _这个示例是基于 [1.2 使用 console.log 的 `wasm-bindgen` 指引](https: 需要注意的是,使用 `#[wasm-bindgen]` 导入的每种类型都有相同的根类型,您可以将其视为上面示例中的 `A`,这种类型是 [`JsValue`](#jsvalue),下面有它的部分。 -_[`wasm-bindgen` 指引中的 extends 部分](https://rustwasm.github.io/docs/wasm-bindgen/reference/attributes/on-js-imports/extends.html)_ +_[`wasm-bindgen` 指引中的 extends 部分](https://wasm-bindgen.github.io/wasm-bindgen/reference/attributes/on-js-imports/extends.html)_ ### [`JsValue`](https://rustwasm.github.io/wasm-bindgen/api/wasm_bindgen/struct.JsValue.html) diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/version-0.22/more/testing.mdx b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/version-0.22/more/testing.mdx index 5e4e41180..8a1f0d90a 100644 --- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/version-0.22/more/testing.mdx +++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/version-0.22/more/testing.mdx @@ -19,6 +19,6 @@ Yew 提供了 `yew::tests::layout_tests` 模块来方便组件的快照测试。 ## wasm_bindgen_test -Rust/WASM 工作组维护了一个叫做 [`wasm_bindgen_test`](https://rustwasm.github.io/docs/wasm-bindgen/wasm-bindgen-test/index.html) 的 crate, +Rust/WASM 工作组维护了一个叫做 [`wasm_bindgen_test`](https://wasm-bindgen.github.io/wasm-bindgen/wasm-bindgen-test/index.html) 的 crate, 它允许你以类似于内置的 `#[test]` 过程宏的方式在浏览器中运行测试。 -有关此模块的更多信息,请参阅 [Rust Wasm 工作组的文档](https://rustwasm.github.io/docs/wasm-bindgen/wasm-bindgen-test/index.html)。 +有关此模块的更多信息,请参阅 [Rust Wasm 工作组的文档](https://wasm-bindgen.github.io/wasm-bindgen/wasm-bindgen-test/index.html)。 diff --git a/website/i18n/zh-Hant/docusaurus-plugin-content-docs/current/concepts/basic-web-technologies/js.mdx b/website/i18n/zh-Hant/docusaurus-plugin-content-docs/current/concepts/basic-web-technologies/js.mdx index b7980ea29..1ed254140 100644 --- a/website/i18n/zh-Hant/docusaurus-plugin-content-docs/current/concepts/basic-web-technologies/js.mdx +++ b/website/i18n/zh-Hant/docusaurus-plugin-content-docs/current/concepts/basic-web-technologies/js.mdx @@ -15,7 +15,7 @@ import TabItem from '@theme/TabItem' [`wasm-bindgen`](https://github.com/rustwasm/wasm-bindgen) 是一個在 JavaScript 和 Rust 函數之間建立呼叫橋樑的函式庫和工具。 -我們強烈建議您查看他們的[文件](https://rustwasm.github.io/docs/wasm-bindgen/)和我們的[快速指南](./wasm-bindgen.mdx)。 +我們強烈建議您查看他們的[文件](https://wasm-bindgen.github.io/wasm-bindgen/)和我們的[快速指南](./wasm-bindgen.mdx)。 ## web-sys @@ -47,4 +47,4 @@ let document = window() -再次強調,我們強烈建議您查看他們的[文件](https://rustwasm.github.io/docs/wasm-bindgen/)和我們的[快速指南](./web-sys.mdx)。 +再次強調,我們強烈建議您查看他們的[文件](https://wasm-bindgen.github.io/wasm-bindgen/)和我們的[快速指南](./web-sys.mdx)。 diff --git a/website/i18n/zh-Hant/docusaurus-plugin-content-docs/current/concepts/basic-web-technologies/wasm-bindgen.mdx b/website/i18n/zh-Hant/docusaurus-plugin-content-docs/current/concepts/basic-web-technologies/wasm-bindgen.mdx index 5791e236e..e6b139429 100644 --- a/website/i18n/zh-Hant/docusaurus-plugin-content-docs/current/concepts/basic-web-technologies/wasm-bindgen.mdx +++ b/website/i18n/zh-Hant/docusaurus-plugin-content-docs/current/concepts/basic-web-technologies/wasm-bindgen.mdx @@ -12,7 +12,7 @@ Yew 使用 `wasm-bindgen` 透過一些 crate 與瀏覽器進行互動: - [`wasm-bindgen-futures`](https://crates.io/crates/wasm-bindgen-futures) - [`web-sys`](https://crates.io/crates/web-sys) -本節將從更抽象的層次探討這些 crate,以便更容易理解和使用 Yew 中的 `wasm-bindgen` API。要了解有關 `wasm-bindgen` 及其相關 crate 的更深入指南,請查看 [`wasm-bindgen` 指引](https://rustwasm.github.io/docs/wasm-bindgen/)。 +本節將從更抽象的層次探討這些 crate,以便更容易理解和使用 Yew 中的 `wasm-bindgen` API。要了解有關 `wasm-bindgen` 及其相關 crate 的更深入指南,請查看 [`wasm-bindgen` 指引](https://wasm-bindgen.github.io/wasm-bindgen/)。 有關上述 crate 的文檔,請查看 [`wasm-bindgen docs.rs`](https://rustwasm.github.io/wasm-bindgen/api/wasm_bindgen/index.html)。 @@ -56,7 +56,7 @@ log_u32(42); log_many("Logging", "many values!"); ``` -_這個範例是基於 [1.2 使用 console.log 的 `wasm-bindgen` 指引](https://rustwasm.github.io/docs/wasm-bindgen/examples/console-log.html) 改編的。 _ +_這個範例是基於 [1.2 使用 console.log 的 `wasm-bindgen` 指引](https://wasm-bindgen.github.io/wasm-bindgen/examples/console-log.html) 改編的。 _ ### 模擬繼承 @@ -75,7 +75,7 @@ _這個範例是基於 [1.2 使用 console.log 的 `wasm-bindgen` 指引](https: 需要注意的是,使用`#[wasm-bindgen]` 導入的每種類型都有相同的根類型,您可以將其視為上面範例中的`A`,這種類型是[`JsValue`](#jsvalue),下面有它的部分。 -_[`wasm-bindgen` 指引中的 extends 部分](https://rustwasm.github.io/docs/wasm-bindgen/reference/attributes/on-js-imports/extends.html)_ +_[`wasm-bindgen` 指引中的 extends 部分](https://wasm-bindgen.github.io/wasm-bindgen/reference/attributes/on-js-imports/extends.html)_ ### [`JsValue`](https://rustwasm.github.io/wasm-bindgen/api/wasm_bindgen/struct.JsValue.html) diff --git a/website/i18n/zh-Hant/docusaurus-plugin-content-docs/current/more/testing.mdx b/website/i18n/zh-Hant/docusaurus-plugin-content-docs/current/more/testing.mdx index 73ea402a3..a40ecc775 100644 --- a/website/i18n/zh-Hant/docusaurus-plugin-content-docs/current/more/testing.mdx +++ b/website/i18n/zh-Hant/docusaurus-plugin-content-docs/current/more/testing.mdx @@ -19,6 +19,6 @@ Yew 提供了 `yew::tests::layout_tests` 模組來方便元件的快照測試。 ## wasm_bindgen_test -Rust/WASM 工作小組維護了一個稱為 [`wasm_bindgen_test`](https://rustwasm.github.io/docs/wasm-bindgen/wasm-bindgen-test/index.html) 的 crate, +Rust/WASM 工作小組維護了一個稱為 [`wasm_bindgen_test`](https://wasm-bindgen.github.io/wasm-bindgen/wasm-bindgen-test/index.html) 的 crate, 它允許你以類似於內建的 `#[test]` 過程巨集的方式在瀏覽器中執行測試。 -有關此模組的更多信息,請參閱 [Rust Wasm 工作組的文檔](https://rustwasm.github.io/docs/wasm-bindgen/wasm-bindgen-test/index.html)。 +有關此模組的更多信息,請參閱 [Rust Wasm 工作組的文檔](https://wasm-bindgen.github.io/wasm-bindgen/wasm-bindgen-test/index.html)。 diff --git a/website/i18n/zh-Hant/docusaurus-plugin-content-docs/version-0.18.0/more/testing.mdx b/website/i18n/zh-Hant/docusaurus-plugin-content-docs/version-0.18.0/more/testing.mdx index 096cd80b3..c9f52732a 100644 --- a/website/i18n/zh-Hant/docusaurus-plugin-content-docs/version-0.18.0/more/testing.mdx +++ b/website/i18n/zh-Hant/docusaurus-plugin-content-docs/version-0.18.0/more/testing.mdx @@ -8,4 +8,4 @@ description: 測試你的專案 ## wasm_bindgen_test -Rust Wasm 工作群組有維護一個 crate 叫作 [`wasm_bindgen_test`](https://rustwasm.github.io/docs/wasm-bindgen/wasm-bindgen-test/index.html) ,他讓你可以在瀏覽器裡跑類似於用內建的巨集`#[test]`測試流程。 更多資訊可以參考 [Rust Wasm working group's documentation](https://rustwasm.github.io/docs/wasm-bindgen/wasm-bindgen-test/index.html)。 +Rust Wasm 工作群組有維護一個 crate 叫作 [`wasm_bindgen_test`](https://wasm-bindgen.github.io/wasm-bindgen/wasm-bindgen-test/index.html) ,他讓你可以在瀏覽器裡跑類似於用內建的巨集`#[test]`測試流程。 更多資訊可以參考 [Rust Wasm working group's documentation](https://wasm-bindgen.github.io/wasm-bindgen/wasm-bindgen-test/index.html)。 diff --git a/website/i18n/zh-Hant/docusaurus-plugin-content-docs/version-0.20/more/testing.mdx b/website/i18n/zh-Hant/docusaurus-plugin-content-docs/version-0.20/more/testing.mdx index 096cd80b3..c9f52732a 100644 --- a/website/i18n/zh-Hant/docusaurus-plugin-content-docs/version-0.20/more/testing.mdx +++ b/website/i18n/zh-Hant/docusaurus-plugin-content-docs/version-0.20/more/testing.mdx @@ -8,4 +8,4 @@ description: 測試你的專案 ## wasm_bindgen_test -Rust Wasm 工作群組有維護一個 crate 叫作 [`wasm_bindgen_test`](https://rustwasm.github.io/docs/wasm-bindgen/wasm-bindgen-test/index.html) ,他讓你可以在瀏覽器裡跑類似於用內建的巨集`#[test]`測試流程。 更多資訊可以參考 [Rust Wasm working group's documentation](https://rustwasm.github.io/docs/wasm-bindgen/wasm-bindgen-test/index.html)。 +Rust Wasm 工作群組有維護一個 crate 叫作 [`wasm_bindgen_test`](https://wasm-bindgen.github.io/wasm-bindgen/wasm-bindgen-test/index.html) ,他讓你可以在瀏覽器裡跑類似於用內建的巨集`#[test]`測試流程。 更多資訊可以參考 [Rust Wasm working group's documentation](https://wasm-bindgen.github.io/wasm-bindgen/wasm-bindgen-test/index.html)。 diff --git a/website/i18n/zh-Hant/docusaurus-plugin-content-docs/version-0.21/more/testing.mdx b/website/i18n/zh-Hant/docusaurus-plugin-content-docs/version-0.21/more/testing.mdx index 096cd80b3..c9f52732a 100644 --- a/website/i18n/zh-Hant/docusaurus-plugin-content-docs/version-0.21/more/testing.mdx +++ b/website/i18n/zh-Hant/docusaurus-plugin-content-docs/version-0.21/more/testing.mdx @@ -8,4 +8,4 @@ description: 測試你的專案 ## wasm_bindgen_test -Rust Wasm 工作群組有維護一個 crate 叫作 [`wasm_bindgen_test`](https://rustwasm.github.io/docs/wasm-bindgen/wasm-bindgen-test/index.html) ,他讓你可以在瀏覽器裡跑類似於用內建的巨集`#[test]`測試流程。 更多資訊可以參考 [Rust Wasm working group's documentation](https://rustwasm.github.io/docs/wasm-bindgen/wasm-bindgen-test/index.html)。 +Rust Wasm 工作群組有維護一個 crate 叫作 [`wasm_bindgen_test`](https://wasm-bindgen.github.io/wasm-bindgen/wasm-bindgen-test/index.html) ,他讓你可以在瀏覽器裡跑類似於用內建的巨集`#[test]`測試流程。 更多資訊可以參考 [Rust Wasm working group's documentation](https://wasm-bindgen.github.io/wasm-bindgen/wasm-bindgen-test/index.html)。 diff --git a/website/i18n/zh-Hant/docusaurus-plugin-content-docs/version-0.22/concepts/basic-web-technologies/js.mdx b/website/i18n/zh-Hant/docusaurus-plugin-content-docs/version-0.22/concepts/basic-web-technologies/js.mdx index b7980ea29..1ed254140 100644 --- a/website/i18n/zh-Hant/docusaurus-plugin-content-docs/version-0.22/concepts/basic-web-technologies/js.mdx +++ b/website/i18n/zh-Hant/docusaurus-plugin-content-docs/version-0.22/concepts/basic-web-technologies/js.mdx @@ -15,7 +15,7 @@ import TabItem from '@theme/TabItem' [`wasm-bindgen`](https://github.com/rustwasm/wasm-bindgen) 是一個在 JavaScript 和 Rust 函數之間建立呼叫橋樑的函式庫和工具。 -我們強烈建議您查看他們的[文件](https://rustwasm.github.io/docs/wasm-bindgen/)和我們的[快速指南](./wasm-bindgen.mdx)。 +我們強烈建議您查看他們的[文件](https://wasm-bindgen.github.io/wasm-bindgen/)和我們的[快速指南](./wasm-bindgen.mdx)。 ## web-sys @@ -47,4 +47,4 @@ let document = window() -再次強調,我們強烈建議您查看他們的[文件](https://rustwasm.github.io/docs/wasm-bindgen/)和我們的[快速指南](./web-sys.mdx)。 +再次強調,我們強烈建議您查看他們的[文件](https://wasm-bindgen.github.io/wasm-bindgen/)和我們的[快速指南](./web-sys.mdx)。 diff --git a/website/i18n/zh-Hant/docusaurus-plugin-content-docs/version-0.22/concepts/basic-web-technologies/wasm-bindgen.mdx b/website/i18n/zh-Hant/docusaurus-plugin-content-docs/version-0.22/concepts/basic-web-technologies/wasm-bindgen.mdx index 5791e236e..e6b139429 100644 --- a/website/i18n/zh-Hant/docusaurus-plugin-content-docs/version-0.22/concepts/basic-web-technologies/wasm-bindgen.mdx +++ b/website/i18n/zh-Hant/docusaurus-plugin-content-docs/version-0.22/concepts/basic-web-technologies/wasm-bindgen.mdx @@ -12,7 +12,7 @@ Yew 使用 `wasm-bindgen` 透過一些 crate 與瀏覽器進行互動: - [`wasm-bindgen-futures`](https://crates.io/crates/wasm-bindgen-futures) - [`web-sys`](https://crates.io/crates/web-sys) -本節將從更抽象的層次探討這些 crate,以便更容易理解和使用 Yew 中的 `wasm-bindgen` API。要了解有關 `wasm-bindgen` 及其相關 crate 的更深入指南,請查看 [`wasm-bindgen` 指引](https://rustwasm.github.io/docs/wasm-bindgen/)。 +本節將從更抽象的層次探討這些 crate,以便更容易理解和使用 Yew 中的 `wasm-bindgen` API。要了解有關 `wasm-bindgen` 及其相關 crate 的更深入指南,請查看 [`wasm-bindgen` 指引](https://wasm-bindgen.github.io/wasm-bindgen/)。 有關上述 crate 的文檔,請查看 [`wasm-bindgen docs.rs`](https://rustwasm.github.io/wasm-bindgen/api/wasm_bindgen/index.html)。 @@ -56,7 +56,7 @@ log_u32(42); log_many("Logging", "many values!"); ``` -_這個範例是基於 [1.2 使用 console.log 的 `wasm-bindgen` 指引](https://rustwasm.github.io/docs/wasm-bindgen/examples/console-log.html) 改編的。 _ +_這個範例是基於 [1.2 使用 console.log 的 `wasm-bindgen` 指引](https://wasm-bindgen.github.io/wasm-bindgen/examples/console-log.html) 改編的。 _ ### 模擬繼承 @@ -75,7 +75,7 @@ _這個範例是基於 [1.2 使用 console.log 的 `wasm-bindgen` 指引](https: 需要注意的是,使用`#[wasm-bindgen]` 導入的每種類型都有相同的根類型,您可以將其視為上面範例中的`A`,這種類型是[`JsValue`](#jsvalue),下面有它的部分。 -_[`wasm-bindgen` 指引中的 extends 部分](https://rustwasm.github.io/docs/wasm-bindgen/reference/attributes/on-js-imports/extends.html)_ +_[`wasm-bindgen` 指引中的 extends 部分](https://wasm-bindgen.github.io/wasm-bindgen/reference/attributes/on-js-imports/extends.html)_ ### [`JsValue`](https://rustwasm.github.io/wasm-bindgen/api/wasm_bindgen/struct.JsValue.html) diff --git a/website/i18n/zh-Hant/docusaurus-plugin-content-docs/version-0.22/more/testing.mdx b/website/i18n/zh-Hant/docusaurus-plugin-content-docs/version-0.22/more/testing.mdx index 73ea402a3..a40ecc775 100644 --- a/website/i18n/zh-Hant/docusaurus-plugin-content-docs/version-0.22/more/testing.mdx +++ b/website/i18n/zh-Hant/docusaurus-plugin-content-docs/version-0.22/more/testing.mdx @@ -19,6 +19,6 @@ Yew 提供了 `yew::tests::layout_tests` 模組來方便元件的快照測試。 ## wasm_bindgen_test -Rust/WASM 工作小組維護了一個稱為 [`wasm_bindgen_test`](https://rustwasm.github.io/docs/wasm-bindgen/wasm-bindgen-test/index.html) 的 crate, +Rust/WASM 工作小組維護了一個稱為 [`wasm_bindgen_test`](https://wasm-bindgen.github.io/wasm-bindgen/wasm-bindgen-test/index.html) 的 crate, 它允許你以類似於內建的 `#[test]` 過程巨集的方式在瀏覽器中執行測試。 -有關此模組的更多信息,請參閱 [Rust Wasm 工作組的文檔](https://rustwasm.github.io/docs/wasm-bindgen/wasm-bindgen-test/index.html)。 +有關此模組的更多信息,請參閱 [Rust Wasm 工作組的文檔](https://wasm-bindgen.github.io/wasm-bindgen/wasm-bindgen-test/index.html)。 diff --git a/website/versioned_docs/version-0.18.0/concepts/wasm-bindgen/wasm-bindgen.mdx b/website/versioned_docs/version-0.18.0/concepts/wasm-bindgen/wasm-bindgen.mdx index 8896a97dd..0aa382b88 100644 --- a/website/versioned_docs/version-0.18.0/concepts/wasm-bindgen/wasm-bindgen.mdx +++ b/website/versioned_docs/version-0.18.0/concepts/wasm-bindgen/wasm-bindgen.mdx @@ -15,7 +15,7 @@ Yew builds off wasm-bindgen and specifically uses the following of its crates: This section will explore some of these crates in a high level in order to make it easier to understand and use `wasm-bindgen` APIs with Yew. For a more in-depth guide into `wasm-bindgen` and it's associated -crates then check out [The `wasm-bindgen` Guide](https://rustwasm.github.io/docs/wasm-bindgen/). +crates then check out [The `wasm-bindgen` Guide](https://wasm-bindgen.github.io/wasm-bindgen/). For documentation on the above crates check out [`wasm-bindgen docs.rs`](https://rustwasm.github.io/wasm-bindgen/api/wasm_bindgen/index.html). @@ -73,7 +73,7 @@ log_u32(42); log_many("Logging", "many values!"); ``` -_This example was adapted from [1.2 Using console.log of The `wasm-bindgen` Guide](https://rustwasm.github.io/docs/wasm-bindgen/examples/console-log.html)_. +_This example was adapted from [1.2 Using console.log of The `wasm-bindgen` Guide](https://wasm-bindgen.github.io/wasm-bindgen/examples/console-log.html)_. ### Simulating inheritance @@ -101,7 +101,7 @@ you can think of it as the `A` in the example above, this type is [`JsValue`](#j its own section below. -_[extends section in The `wasm-bindgen` Guide](https://rustwasm.github.io/docs/wasm-bindgen/reference/attributes/on-js-imports/extends.html)_ +_[extends section in The `wasm-bindgen` Guide](https://wasm-bindgen.github.io/wasm-bindgen/reference/attributes/on-js-imports/extends.html)_ ### [`JsValue`](https://rustwasm.github.io/wasm-bindgen/api/wasm_bindgen/struct.JsValue.html) diff --git a/website/versioned_docs/version-0.18.0/more/testing.mdx b/website/versioned_docs/version-0.18.0/more/testing.mdx index 5dd3db7be..f60304082 100644 --- a/website/versioned_docs/version-0.18.0/more/testing.mdx +++ b/website/versioned_docs/version-0.18.0/more/testing.mdx @@ -14,6 +14,6 @@ can be found in the GitHub repository. ## wasm_bindgen_test -The Rust Wasm working group maintains a crate called [`wasm_bindgen_test`](https://rustwasm.github.io/docs/wasm-bindgen/wasm-bindgen-test/index.html) which allows you to run tests in a browser in similar fashion to how -the built-in `#[test]` procedural macro works. More information is given in the [Rust Wasm working group's documentation](https://rustwasm.github.io/docs/wasm-bindgen/wasm-bindgen-test/index.html) +The Rust Wasm working group maintains a crate called [`wasm_bindgen_test`](https://wasm-bindgen.github.io/wasm-bindgen/wasm-bindgen-test/index.html) which allows you to run tests in a browser in similar fashion to how +the built-in `#[test]` procedural macro works. More information is given in the [Rust Wasm working group's documentation](https://wasm-bindgen.github.io/wasm-bindgen/wasm-bindgen-test/index.html) for this module. diff --git a/website/versioned_docs/version-0.19.0/concepts/wasm-bindgen/introduction.mdx b/website/versioned_docs/version-0.19.0/concepts/wasm-bindgen/introduction.mdx index 698e76669..0503171ce 100644 --- a/website/versioned_docs/version-0.19.0/concepts/wasm-bindgen/introduction.mdx +++ b/website/versioned_docs/version-0.19.0/concepts/wasm-bindgen/introduction.mdx @@ -17,7 +17,7 @@ Yew is built on `wasm-bindgen` and specifically uses the following of its crates This section will explore some of these crates in a high level in order to make it easier to understand and use `wasm-bindgen` APIs with Yew. For a more in-depth guide into `wasm-bindgen` and it's associated -crates then check out [The `wasm-bindgen` Guide](https://rustwasm.github.io/docs/wasm-bindgen/). +crates then check out [The `wasm-bindgen` Guide](https://wasm-bindgen.github.io/wasm-bindgen/). For documentation on the above crates check out [`wasm-bindgen docs.rs`](https://rustwasm.github.io/wasm-bindgen/api/wasm_bindgen/index.html). @@ -75,7 +75,7 @@ log_u32(42); log_many("Logging", "many values!"); ``` -_This example was adapted from [1.2 Using console.log of The `wasm-bindgen` Guide](https://rustwasm.github.io/docs/wasm-bindgen/examples/console-log.html)_. +_This example was adapted from [1.2 Using console.log of The `wasm-bindgen` Guide](https://wasm-bindgen.github.io/wasm-bindgen/examples/console-log.html)_. ### Simulating inheritance @@ -103,7 +103,7 @@ you can think of it as the `A` in the example above, this type is [`JsValue`](#j its own section below. -_[extends section in The `wasm-bindgen` Guide](https://rustwasm.github.io/docs/wasm-bindgen/reference/attributes/on-js-imports/extends.html)_ +_[extends section in The `wasm-bindgen` Guide](https://wasm-bindgen.github.io/wasm-bindgen/reference/attributes/on-js-imports/extends.html)_ ### [`JsValue`](https://rustwasm.github.io/wasm-bindgen/api/wasm_bindgen/struct.JsValue.html) diff --git a/website/versioned_docs/version-0.19.0/more/testing.mdx b/website/versioned_docs/version-0.19.0/more/testing.mdx index 5dd3db7be..f60304082 100644 --- a/website/versioned_docs/version-0.19.0/more/testing.mdx +++ b/website/versioned_docs/version-0.19.0/more/testing.mdx @@ -14,6 +14,6 @@ can be found in the GitHub repository. ## wasm_bindgen_test -The Rust Wasm working group maintains a crate called [`wasm_bindgen_test`](https://rustwasm.github.io/docs/wasm-bindgen/wasm-bindgen-test/index.html) which allows you to run tests in a browser in similar fashion to how -the built-in `#[test]` procedural macro works. More information is given in the [Rust Wasm working group's documentation](https://rustwasm.github.io/docs/wasm-bindgen/wasm-bindgen-test/index.html) +The Rust Wasm working group maintains a crate called [`wasm_bindgen_test`](https://wasm-bindgen.github.io/wasm-bindgen/wasm-bindgen-test/index.html) which allows you to run tests in a browser in similar fashion to how +the built-in `#[test]` procedural macro works. More information is given in the [Rust Wasm working group's documentation](https://wasm-bindgen.github.io/wasm-bindgen/wasm-bindgen-test/index.html) for this module. diff --git a/website/versioned_docs/version-0.20/concepts/basic-web-technologies/js.mdx b/website/versioned_docs/version-0.20/concepts/basic-web-technologies/js.mdx index bcce54f7f..c08faf448 100644 --- a/website/versioned_docs/version-0.20/concepts/basic-web-technologies/js.mdx +++ b/website/versioned_docs/version-0.20/concepts/basic-web-technologies/js.mdx @@ -18,7 +18,7 @@ sometimes rely on calling Javascript. What follows is an overview of the involve [`wasm-bindgen`](https://github.com/rustwasm/wasm-bindgen) is a library and tool that enables calls to javascript from rust and back to rust from javascript. -We highly recommend you take a look at their [documentation](https://rustwasm.github.io/docs/wasm-bindgen/) and our [quick guide](./wasm-bindgen.mdx). +We highly recommend you take a look at their [documentation](https://wasm-bindgen.github.io/wasm-bindgen/) and our [quick guide](./wasm-bindgen.mdx). ## web-sys @@ -50,4 +50,4 @@ let document = window() -Once again we highly recommend you take a look at their [documentation](https://rustwasm.github.io/docs/wasm-bindgen/) and our [quick guide](./web-sys.mdx). +Once again we highly recommend you take a look at their [documentation](https://wasm-bindgen.github.io/wasm-bindgen/) and our [quick guide](./web-sys.mdx). diff --git a/website/versioned_docs/version-0.20/concepts/basic-web-technologies/wasm-bindgen.mdx b/website/versioned_docs/version-0.20/concepts/basic-web-technologies/wasm-bindgen.mdx index 4a3baacdb..fbe12f6b3 100644 --- a/website/versioned_docs/version-0.20/concepts/basic-web-technologies/wasm-bindgen.mdx +++ b/website/versioned_docs/version-0.20/concepts/basic-web-technologies/wasm-bindgen.mdx @@ -16,7 +16,7 @@ Yew uses `wasm-bindgen` to interact with the browser through a number of crates: This section will explore some of these crates in a high level in order to make it easier to understand and use `wasm-bindgen` APIs with Yew. For a more in-depth guide to `wasm-bindgen` and its associated -crates then check out [The `wasm-bindgen` Guide](https://rustwasm.github.io/docs/wasm-bindgen/). +crates then check out [The `wasm-bindgen` Guide](https://wasm-bindgen.github.io/wasm-bindgen/). For documentation on the above crates check out [`wasm-bindgen docs.rs`](https://rustwasm.github.io/wasm-bindgen/api/wasm_bindgen/index.html). @@ -73,7 +73,7 @@ log_u32(42); log_many("Logging", "many values!"); ``` -_This example was adapted from [1.2 Using console.log of The `wasm-bindgen` Guide](https://rustwasm.github.io/docs/wasm-bindgen/examples/console-log.html)_. +_This example was adapted from [1.2 Using console.log of The `wasm-bindgen` Guide](https://wasm-bindgen.github.io/wasm-bindgen/examples/console-log.html)_. ### Simulating inheritance @@ -101,7 +101,7 @@ Its important to note that every single type imported using `#[wasm-bindgen]` ha you can think of it as the `A` in the example above, this type is [`JsValue`](#jsvalue) which has its own section below. -_[extends section in The `wasm-bindgen` Guide](https://rustwasm.github.io/docs/wasm-bindgen/reference/attributes/on-js-imports/extends.html)_ +_[extends section in The `wasm-bindgen` Guide](https://wasm-bindgen.github.io/wasm-bindgen/reference/attributes/on-js-imports/extends.html)_ ### [`JsValue`](https://rustwasm.github.io/wasm-bindgen/api/wasm_bindgen/struct.JsValue.html) {#jsvalue} diff --git a/website/versioned_docs/version-0.20/more/testing.mdx b/website/versioned_docs/version-0.20/more/testing.mdx index d6f97d4bb..b1f95ca45 100644 --- a/website/versioned_docs/version-0.20/more/testing.mdx +++ b/website/versioned_docs/version-0.20/more/testing.mdx @@ -19,7 +19,7 @@ Help improve the documentation for snapshot testing. ## wasm_bindgen_test -The Rust/WASM working group maintains a crate called [`wasm_bindgen_test`](https://rustwasm.github.io/docs/wasm-bindgen/wasm-bindgen-test/index.html) +The Rust/WASM working group maintains a crate called [`wasm_bindgen_test`](https://wasm-bindgen.github.io/wasm-bindgen/wasm-bindgen-test/index.html) which allows you to run tests in a browser in similar fashion to how the built-in `#[test]` procedural macro works. -More information is given in the [Rust Wasm working group's documentation](https://rustwasm.github.io/docs/wasm-bindgen/wasm-bindgen-test/index.html) +More information is given in the [Rust Wasm working group's documentation](https://wasm-bindgen.github.io/wasm-bindgen/wasm-bindgen-test/index.html) for this module. diff --git a/website/versioned_docs/version-0.21/concepts/basic-web-technologies/js.mdx b/website/versioned_docs/version-0.21/concepts/basic-web-technologies/js.mdx index b38fcde08..d894422a0 100644 --- a/website/versioned_docs/version-0.21/concepts/basic-web-technologies/js.mdx +++ b/website/versioned_docs/version-0.21/concepts/basic-web-technologies/js.mdx @@ -18,7 +18,7 @@ sometimes rely on calling JavaScript. What follows is an overview of the involve [`wasm-bindgen`](https://github.com/rustwasm/wasm-bindgen) is a library and tool that bridges calls between JavaScript and Rust functions. -We highly recommend you take a look at their [documentation](https://rustwasm.github.io/docs/wasm-bindgen/) and our [quick guide](./wasm-bindgen.mdx). +We highly recommend you take a look at their [documentation](https://wasm-bindgen.github.io/wasm-bindgen/) and our [quick guide](./wasm-bindgen.mdx). ## web-sys @@ -50,4 +50,4 @@ let document = window() -Once again we highly recommend you take a look at their [documentation](https://rustwasm.github.io/docs/wasm-bindgen/) and our [quick guide](./web-sys.mdx). +Once again we highly recommend you take a look at their [documentation](https://wasm-bindgen.github.io/wasm-bindgen/) and our [quick guide](./web-sys.mdx). diff --git a/website/versioned_docs/version-0.21/concepts/basic-web-technologies/wasm-bindgen.mdx b/website/versioned_docs/version-0.21/concepts/basic-web-technologies/wasm-bindgen.mdx index 459639aed..06a706c60 100644 --- a/website/versioned_docs/version-0.21/concepts/basic-web-technologies/wasm-bindgen.mdx +++ b/website/versioned_docs/version-0.21/concepts/basic-web-technologies/wasm-bindgen.mdx @@ -16,7 +16,7 @@ Yew uses `wasm-bindgen` to interact with the browser through a number of crates: This section will explore some of these crates at a high level, to make it easier to understand and use `wasm-bindgen` APIs with Yew. For a more in-depth guide to `wasm-bindgen` and its associated -crates then check out [The `wasm-bindgen` Guide](https://rustwasm.github.io/docs/wasm-bindgen/). +crates then check out [The `wasm-bindgen` Guide](https://wasm-bindgen.github.io/wasm-bindgen/). For documentation on the above crates check out [`wasm-bindgen docs.rs`](https://rustwasm.github.io/wasm-bindgen/api/wasm_bindgen/index.html). @@ -73,7 +73,7 @@ log_u32(42); log_many("Logging", "many values!"); ``` -_This example was adapted from [1.2 Using console.log of The `wasm-bindgen` Guide](https://rustwasm.github.io/docs/wasm-bindgen/examples/console-log.html)_. +_This example was adapted from [1.2 Using console.log of The `wasm-bindgen` Guide](https://wasm-bindgen.github.io/wasm-bindgen/examples/console-log.html)_. ### Simulating inheritance @@ -101,7 +101,7 @@ It is important to note that every single type imported using `#[wasm-bindgen]` you can think of it as the `A` in the example above, this type is [`JsValue`](#jsvalue) which has its section below. -_[extends section in The `wasm-bindgen` Guide](https://rustwasm.github.io/docs/wasm-bindgen/reference/attributes/on-js-imports/extends.html)_ +_[extends section in The `wasm-bindgen` Guide](https://wasm-bindgen.github.io/wasm-bindgen/reference/attributes/on-js-imports/extends.html)_ ### [`JsValue`](https://rustwasm.github.io/wasm-bindgen/api/wasm_bindgen/struct.JsValue.html) {#jsvalue} diff --git a/website/versioned_docs/version-0.21/more/testing.mdx b/website/versioned_docs/version-0.21/more/testing.mdx index d48a7b581..38ce7330e 100644 --- a/website/versioned_docs/version-0.21/more/testing.mdx +++ b/website/versioned_docs/version-0.21/more/testing.mdx @@ -19,7 +19,7 @@ Help improve the documentation for snapshot testing. ## wasm_bindgen_test -The Rust/WASM working group maintains a crate called [`wasm_bindgen_test`](https://rustwasm.github.io/docs/wasm-bindgen/wasm-bindgen-test/index.html) +The Rust/WASM working group maintains a crate called [`wasm_bindgen_test`](https://wasm-bindgen.github.io/wasm-bindgen/wasm-bindgen-test/index.html) which allows you to run tests in a browser in a similar fashion to how the built-in `#[test]` procedural macro works. -More information is given in the [Rust Wasm working group's documentation](https://rustwasm.github.io/docs/wasm-bindgen/wasm-bindgen-test/index.html) +More information is given in the [Rust Wasm working group's documentation](https://wasm-bindgen.github.io/wasm-bindgen/wasm-bindgen-test/index.html) for this module. diff --git a/website/versioned_docs/version-0.22/concepts/basic-web-technologies/js.mdx b/website/versioned_docs/version-0.22/concepts/basic-web-technologies/js.mdx index b38fcde08..d894422a0 100644 --- a/website/versioned_docs/version-0.22/concepts/basic-web-technologies/js.mdx +++ b/website/versioned_docs/version-0.22/concepts/basic-web-technologies/js.mdx @@ -18,7 +18,7 @@ sometimes rely on calling JavaScript. What follows is an overview of the involve [`wasm-bindgen`](https://github.com/rustwasm/wasm-bindgen) is a library and tool that bridges calls between JavaScript and Rust functions. -We highly recommend you take a look at their [documentation](https://rustwasm.github.io/docs/wasm-bindgen/) and our [quick guide](./wasm-bindgen.mdx). +We highly recommend you take a look at their [documentation](https://wasm-bindgen.github.io/wasm-bindgen/) and our [quick guide](./wasm-bindgen.mdx). ## web-sys @@ -50,4 +50,4 @@ let document = window() -Once again we highly recommend you take a look at their [documentation](https://rustwasm.github.io/docs/wasm-bindgen/) and our [quick guide](./web-sys.mdx). +Once again we highly recommend you take a look at their [documentation](https://wasm-bindgen.github.io/wasm-bindgen/) and our [quick guide](./web-sys.mdx). diff --git a/website/versioned_docs/version-0.22/concepts/basic-web-technologies/wasm-bindgen.mdx b/website/versioned_docs/version-0.22/concepts/basic-web-technologies/wasm-bindgen.mdx index bba12cc42..3eb0072ba 100644 --- a/website/versioned_docs/version-0.22/concepts/basic-web-technologies/wasm-bindgen.mdx +++ b/website/versioned_docs/version-0.22/concepts/basic-web-technologies/wasm-bindgen.mdx @@ -16,7 +16,7 @@ Yew uses `wasm-bindgen` to interact with the browser through a number of crates: This section will explore some of these crates at a high level, to make it easier to understand and use `wasm-bindgen` APIs with Yew. For a more in-depth guide to `wasm-bindgen` and its associated -crates then check out [The `wasm-bindgen` Guide](https://rustwasm.github.io/docs/wasm-bindgen/). +crates then check out [The `wasm-bindgen` Guide](https://wasm-bindgen.github.io/wasm-bindgen/). For documentation on the above crates check out [`wasm-bindgen docs.rs`](https://rustwasm.github.io/wasm-bindgen/api/wasm_bindgen/index.html). @@ -72,7 +72,7 @@ log_u32(42); log_many("Logging", "many values!"); ``` -_This example was adapted from [1.2 Using console.log of The `wasm-bindgen` Guide](https://rustwasm.github.io/docs/wasm-bindgen/examples/console-log.html)_. +_This example was adapted from [1.2 Using console.log of The `wasm-bindgen` Guide](https://wasm-bindgen.github.io/wasm-bindgen/examples/console-log.html)_. ### Simulating inheritance @@ -100,7 +100,7 @@ It is important to note that every single type imported using `#[wasm-bindgen]` you can think of it as the `A` in the example above, this type is [`JsValue`](https://rustwasm.github.io/wasm-bindgen/api/wasm_bindgen/struct.JsValue.html) which has its section below. -_[extends section in The `wasm-bindgen` Guide](https://rustwasm.github.io/docs/wasm-bindgen/reference/attributes/on-js-imports/extends.html)_ +_[extends section in The `wasm-bindgen` Guide](https://wasm-bindgen.github.io/wasm-bindgen/reference/attributes/on-js-imports/extends.html)_ ### [`JsValue`](https://rustwasm.github.io/wasm-bindgen/api/wasm_bindgen/struct.JsValue.html) diff --git a/website/versioned_docs/version-0.22/more/testing.mdx b/website/versioned_docs/version-0.22/more/testing.mdx index d48a7b581..38ce7330e 100644 --- a/website/versioned_docs/version-0.22/more/testing.mdx +++ b/website/versioned_docs/version-0.22/more/testing.mdx @@ -19,7 +19,7 @@ Help improve the documentation for snapshot testing. ## wasm_bindgen_test -The Rust/WASM working group maintains a crate called [`wasm_bindgen_test`](https://rustwasm.github.io/docs/wasm-bindgen/wasm-bindgen-test/index.html) +The Rust/WASM working group maintains a crate called [`wasm_bindgen_test`](https://wasm-bindgen.github.io/wasm-bindgen/wasm-bindgen-test/index.html) which allows you to run tests in a browser in a similar fashion to how the built-in `#[test]` procedural macro works. -More information is given in the [Rust Wasm working group's documentation](https://rustwasm.github.io/docs/wasm-bindgen/wasm-bindgen-test/index.html) +More information is given in the [Rust Wasm working group's documentation](https://wasm-bindgen.github.io/wasm-bindgen/wasm-bindgen-test/index.html) for this module.