diff --git a/tools/website-test/build.rs b/tools/website-test/build.rs index d4d86e17826..a74e756f272 100644 --- a/tools/website-test/build.rs +++ b/tools/website-test/build.rs @@ -13,7 +13,7 @@ struct Level { fn main() { let home = env::var("CARGO_MANIFEST_DIR").unwrap(); - let pattern = format!("{}/../../website/docs/**/*.mdx", home); + let pattern = format!("{}/../../website/docs/**/*.md", home); let base = format!("{}/../../website", home); let base = Path::new(&base).canonicalize().unwrap(); let dir_pattern = format!("{}/../../website/docs/**", home); diff --git a/website/README.md b/website/README.md index 7bf6d35b749..948dfeadcb2 100644 --- a/website/README.md +++ b/website/README.md @@ -18,8 +18,20 @@ This command starts a local development server and opens up a browser window. Mo without having to restart the server. Note this only builds for English locale unlike a production build. -> Documentation is written in `mdx`, markdown empowered with jsx. -> JetBrains and VSCode both provide MDX plugins. +Documentation is written in `mdx`, a superset of markdown empowered with jsx. +JetBrains and VSCode both provide MDX plugins. + +However, we name all our documentation with the `.md` suffix +because our localization tool GitLocalize doesn't support the `.mdx` file extension. +You can still enable `mdx` IDE support by associating the suffix `.md` with mdx +and deleting the original markdown association. + +Here's where you can find the settings in JetBrains: + +![mdx association in jetbrains](mdx-jetbrains.jpg) + +Since mdx is a superset of md, other markdown files will have the correct syntax highlighting, hotkeys, etc. +The only downside is there will be no more live preview of other markdown files. ## Production Build diff --git a/website/docs/advanced-topics/how-it-works.mdx b/website/docs/advanced-topics/how-it-works.md similarity index 100% rename from website/docs/advanced-topics/how-it-works.mdx rename to website/docs/advanced-topics/how-it-works.md diff --git a/website/docs/advanced-topics/optimizations.mdx b/website/docs/advanced-topics/optimizations.md similarity index 100% rename from website/docs/advanced-topics/optimizations.mdx rename to website/docs/advanced-topics/optimizations.md diff --git a/website/docs/advanced-topics/portals.mdx b/website/docs/advanced-topics/portals.md similarity index 100% rename from website/docs/advanced-topics/portals.mdx rename to website/docs/advanced-topics/portals.md diff --git a/website/docs/concepts/agents.mdx b/website/docs/concepts/agents.md similarity index 100% rename from website/docs/concepts/agents.mdx rename to website/docs/concepts/agents.md diff --git a/website/docs/concepts/components/callbacks.mdx b/website/docs/concepts/components/callbacks.md similarity index 100% rename from website/docs/concepts/components/callbacks.mdx rename to website/docs/concepts/components/callbacks.md diff --git a/website/docs/concepts/components/children.mdx b/website/docs/concepts/components/children.md similarity index 95% rename from website/docs/concepts/components/children.mdx rename to website/docs/concepts/components/children.md index 4bdb93f202d..f3f98b95d9d 100644 --- a/website/docs/concepts/components/children.mdx +++ b/website/docs/concepts/components/children.md @@ -250,3 +250,7 @@ pub fn render_page(with_sidebar: bool) -> Html { } } ``` +:::note Extra Braces Required +`sidebar = {{html_nested!{...}}}` appears to require one extra set of braces. +This is unintuitive, and we will fix the behavior in a later release. [related issue](https://github.com/yewstack/yew/issues/2267) +::: diff --git a/website/docs/concepts/components/introduction.mdx b/website/docs/concepts/components/introduction.md similarity index 100% rename from website/docs/concepts/components/introduction.mdx rename to website/docs/concepts/components/introduction.md diff --git a/website/docs/concepts/components/lifecycle.mdx b/website/docs/concepts/components/lifecycle.md similarity index 100% rename from website/docs/concepts/components/lifecycle.mdx rename to website/docs/concepts/components/lifecycle.md diff --git a/website/docs/concepts/components/properties.mdx b/website/docs/concepts/components/properties.md similarity index 100% rename from website/docs/concepts/components/properties.mdx rename to website/docs/concepts/components/properties.md diff --git a/website/docs/concepts/components/refs.mdx b/website/docs/concepts/components/refs.md similarity index 100% rename from website/docs/concepts/components/refs.mdx rename to website/docs/concepts/components/refs.md diff --git a/website/docs/concepts/components/scope.mdx b/website/docs/concepts/components/scope.md similarity index 100% rename from website/docs/concepts/components/scope.mdx rename to website/docs/concepts/components/scope.md diff --git a/website/docs/concepts/contexts.mdx b/website/docs/concepts/contexts.md similarity index 99% rename from website/docs/concepts/contexts.mdx rename to website/docs/concepts/contexts.md index bf2234cf7b6..03d440f182a 100644 --- a/website/docs/concepts/contexts.mdx +++ b/website/docs/concepts/contexts.md @@ -146,4 +146,4 @@ impl Component for ContextDemo { #### Function components `use_context` hook is used to consume contexts in function components. -See [docs for use_context](function-components/pre-defined-hooks.mdx#use_context) to learn more. +See [docs for use_context](function-components/pre-defined-hooks.md#use_context) to learn more. diff --git a/website/docs/concepts/function-components/attribute.mdx b/website/docs/concepts/function-components/attribute.md similarity index 100% rename from website/docs/concepts/function-components/attribute.mdx rename to website/docs/concepts/function-components/attribute.md diff --git a/website/docs/concepts/function-components/custom-hooks.mdx b/website/docs/concepts/function-components/custom-hooks.md similarity index 100% rename from website/docs/concepts/function-components/custom-hooks.mdx rename to website/docs/concepts/function-components/custom-hooks.md diff --git a/website/docs/concepts/function-components/introduction.mdx b/website/docs/concepts/function-components/introduction.md similarity index 77% rename from website/docs/concepts/function-components/introduction.mdx rename to website/docs/concepts/function-components/introduction.md index 7aab0326701..34502ed2a22 100644 --- a/website/docs/concepts/function-components/introduction.mdx +++ b/website/docs/concepts/function-components/introduction.md @@ -13,7 +13,7 @@ implement the `Component` trait. ## Creating function components -The easiest way to create a function component is to add the [`#[function_component]`](./../function-components/attribute.mdx) attribute to a function. +The easiest way to create a function component is to add the [`#[function_component]`](./../function-components/attribute.md) attribute to a function. ```rust use yew::{function_component, html, Html}; @@ -43,21 +43,21 @@ actions. Yew comes with a few pre-defined Hooks. You can also create your own. #### Pre-defined Hooks Yew comes with the following predefined Hooks: -- [`use_state`](./../function-components/pre-defined-hooks.mdx#use_state) -- [`use_state_eq`](./../function-components/pre-defined-hooks.mdx#use_state_eq) -- [`use_ref`](./../function-components/pre-defined-hooks.mdx#use_ref) -- [`use_mut_ref`](./../function-components/pre-defined-hooks.mdx#use_mut_ref) -- [`use_node_ref`](./../function-components/pre-defined-hooks.mdx#use_node_ref) -- [`use_reducer`](./../function-components/pre-defined-hooks.mdx#use_reducer) -- [`use_reducer_eq`](./../function-components/pre-defined-hooks.mdx#use_reducer_eq) -- [`use_effect`](./../function-components/pre-defined-hooks.mdx#use_effect) -- [`use_effect_with_deps`](./../function-components/pre-defined-hooks.mdx#use_effect_with_deps) -- [`use_context`](./../function-components/pre-defined-hooks.mdx#use_context) +- [`use_state`](./../function-components/pre-defined-hooks.md#use_state) +- [`use_state_eq`](./../function-components/pre-defined-hooks.md#use_state_eq) +- [`use_ref`](./../function-components/pre-defined-hooks.md#use_ref) +- [`use_mut_ref`](./../function-components/pre-defined-hooks.md#use_mut_ref) +- [`use_node_ref`](./../function-components/pre-defined-hooks.md#use_node_ref) +- [`use_reducer`](./../function-components/pre-defined-hooks.md#use_reducer) +- [`use_reducer_eq`](./../function-components/pre-defined-hooks.md#use_reducer_eq) +- [`use_effect`](./../function-components/pre-defined-hooks.md#use_effect) +- [`use_effect_with_deps`](./../function-components/pre-defined-hooks.md#use_effect_with_deps) +- [`use_context`](./../function-components/pre-defined-hooks.md#use_context) #### Custom Hooks There are cases where you want to define your own Hooks for reasons. Yew allows you to define your own Hooks which lets you extract your potentially stateful logic from the component into reusable functions. -See the [Defining custom hooks](./../function-components/custom-hooks.mdx#defining-custom-hooks) section for more information. +See the [Defining custom hooks](./../function-components/custom-hooks.md#defining-custom-hooks) section for more information. ## Further reading diff --git a/website/docs/concepts/function-components/pre-defined-hooks.mdx b/website/docs/concepts/function-components/pre-defined-hooks.md similarity index 99% rename from website/docs/concepts/function-components/pre-defined-hooks.mdx rename to website/docs/concepts/function-components/pre-defined-hooks.md index 0c800dfbce4..a8843255c9b 100644 --- a/website/docs/concepts/function-components/pre-defined-hooks.mdx +++ b/website/docs/concepts/function-components/pre-defined-hooks.md @@ -343,7 +343,7 @@ use_effect_with_deps( ## `use_context` -`use_context` is used for consuming [contexts](../contexts.mdx) in function components. +`use_context` is used for consuming [contexts](../contexts.md) in function components. ### Example diff --git a/website/docs/concepts/html/classes.mdx b/website/docs/concepts/html/classes.md similarity index 100% rename from website/docs/concepts/html/classes.mdx rename to website/docs/concepts/html/classes.md diff --git a/website/docs/concepts/html/components.mdx b/website/docs/concepts/html/components.md similarity index 100% rename from website/docs/concepts/html/components.mdx rename to website/docs/concepts/html/components.md diff --git a/website/docs/concepts/html/conditional-rendering.mdx b/website/docs/concepts/html/conditional-rendering.md similarity index 100% rename from website/docs/concepts/html/conditional-rendering.mdx rename to website/docs/concepts/html/conditional-rendering.md diff --git a/website/docs/concepts/html/elements.mdx b/website/docs/concepts/html/elements.md similarity index 100% rename from website/docs/concepts/html/elements.mdx rename to website/docs/concepts/html/elements.md diff --git a/website/docs/concepts/html/events.mdx b/website/docs/concepts/html/events.md similarity index 99% rename from website/docs/concepts/html/events.mdx rename to website/docs/concepts/html/events.md index 35e700d2ab1..8edc565235d 100644 --- a/website/docs/concepts/html/events.mdx +++ b/website/docs/concepts/html/events.md @@ -8,7 +8,7 @@ Yew integrates with the [`web-sys`](https://rustwasm.github.io/wasm-bindgen/api/ uses the events from that crate. The [table below](#event-types) lists all of the `web-sys` events that are accepted in the `html!` macro. -You can still add a [`Callback`](../components/callbacks.mdx) for an event that is not listed in the table +You can still add a [`Callback`](../components/callbacks.md) for an event that is not listed in the table below, see [Manual event listener](#manual-event-listener). ## Event Types diff --git a/website/docs/concepts/html/fragments.mdx b/website/docs/concepts/html/fragments.md similarity index 100% rename from website/docs/concepts/html/fragments.mdx rename to website/docs/concepts/html/fragments.md diff --git a/website/docs/concepts/html/introduction.mdx b/website/docs/concepts/html/introduction.md similarity index 98% rename from website/docs/concepts/html/introduction.mdx rename to website/docs/concepts/html/introduction.md index 756d533f568..8053a15f28a 100644 --- a/website/docs/concepts/html/introduction.mdx +++ b/website/docs/concepts/html/introduction.md @@ -14,7 +14,7 @@ The `html!` macro allows you to write HTML and SVG code declaratively. It is sim **Important notes** 1. The `html!` macro only accepts one root html node (you can counteract this by using - [fragments](./fragments.mdx) or [iterators](./../html/lists.mdx)) + [fragments](./fragments.md) or [iterators](./../html/lists.md)) 2. An empty `html! {}` invocation is valid and will not render anything 3. Literals must always be quoted and wrapped in braces: `html! {

{ "Hello, World" }

}` diff --git a/website/docs/concepts/html/lists.mdx b/website/docs/concepts/html/lists.md similarity index 100% rename from website/docs/concepts/html/lists.mdx rename to website/docs/concepts/html/lists.md diff --git a/website/docs/concepts/html/literals-and-expressions.mdx b/website/docs/concepts/html/literals-and-expressions.md similarity index 100% rename from website/docs/concepts/html/literals-and-expressions.mdx rename to website/docs/concepts/html/literals-and-expressions.md diff --git a/website/docs/concepts/router.mdx b/website/docs/concepts/router.md similarity index 100% rename from website/docs/concepts/router.mdx rename to website/docs/concepts/router.md diff --git a/website/docs/concepts/wasm-bindgen/introduction.mdx b/website/docs/concepts/wasm-bindgen/introduction.md similarity index 100% rename from website/docs/concepts/wasm-bindgen/introduction.mdx rename to website/docs/concepts/wasm-bindgen/introduction.md diff --git a/website/docs/concepts/wasm-bindgen/web-sys.mdx b/website/docs/concepts/wasm-bindgen/web-sys.md similarity index 98% rename from website/docs/concepts/wasm-bindgen/web-sys.mdx rename to website/docs/concepts/wasm-bindgen/web-sys.md index b1206366adc..17baa7c7224 100644 --- a/website/docs/concepts/wasm-bindgen/web-sys.mdx +++ b/website/docs/concepts/wasm-bindgen/web-sys.md @@ -80,7 +80,7 @@ _[Inheritance in `web-sys` in The `wasm-bindgen` Guide](https://rustwasm.github. ## The `Node` in `NodeRef` Yew uses a [`NodeRef`](../components/refs) in order to provide a way for keeping a reference to -a `Node` made by the [`html!`](../html/introduction.mdx) macro. The `Node` part of `NodeRef` is referring to +a `Node` made by the [`html!`](../html/introduction.md) macro. The `Node` part of `NodeRef` is referring to [`web_sys::Node`](https://rustwasm.github.io/wasm-bindgen/api/web_sys/struct.Node.html). The `NodeRef::get` method will return a `Option` value, however, most of the time in Yew you want to cast this value to a specific element so you can use it's specific methods. This casting diff --git a/website/docs/getting-started/build-a-sample-app.mdx b/website/docs/getting-started/build-a-sample-app.md similarity index 89% rename from website/docs/getting-started/build-a-sample-app.mdx rename to website/docs/getting-started/build-a-sample-app.md index 6428567cd9e..edf8a077ba6 100644 --- a/website/docs/getting-started/build-a-sample-app.mdx +++ b/website/docs/getting-started/build-a-sample-app.md @@ -58,12 +58,12 @@ yew = "0.19" #### Update main.rs -We need to generate a template which sets up a root Component called `App` which renders a button that updates its value when clicked. +We need to generate a template which sets up a root Component called `Model` which renders a button that updates its value when clicked. Replace the contents of `src/main.rs` with the following code. :::note -The line `yew::start_app::()` inside `main()` starts your application and mounts it to the page's `` tag. -If you would like to start your application with any dynamic properties, you can instead use `yew::start_app_with_props::(..)`. +The line `yew::start_app::()` inside `main()` starts your application and mounts it to the page's `` tag. +If you would like to start your application with any dynamic properties, you can instead use `yew::start_app_with_props::(..)`. ::: ```rust ,no_run, title=main.rs @@ -121,4 +121,4 @@ Trunk will helpfully rebuild your application if you modify any of its files. You have now successfully setup your Yew development environment, and built your first web application. -Experiment with this application and review the [examples](./examples.mdx) to further your learning. +Experiment with this application and review the [examples](./examples.md) to further your learning. diff --git a/website/docs/getting-started/editor-setup.mdx b/website/docs/getting-started/editor-setup.md similarity index 100% rename from website/docs/getting-started/editor-setup.mdx rename to website/docs/getting-started/editor-setup.md diff --git a/website/docs/getting-started/examples.mdx b/website/docs/getting-started/examples.md similarity index 100% rename from website/docs/getting-started/examples.mdx rename to website/docs/getting-started/examples.md diff --git a/website/docs/getting-started/introduction.mdx b/website/docs/getting-started/introduction.md similarity index 100% rename from website/docs/getting-started/introduction.mdx rename to website/docs/getting-started/introduction.md diff --git a/website/docs/migration-guides/yew-agent/from-0_0_0-to-0_1_0.mdx b/website/docs/migration-guides/yew-agent/from-0_0_0-to-0_1_0.md similarity index 100% rename from website/docs/migration-guides/yew-agent/from-0_0_0-to-0_1_0.mdx rename to website/docs/migration-guides/yew-agent/from-0_0_0-to-0_1_0.md diff --git a/website/docs/migration-guides/yew-agent/from-0_1_0-to-0_2_0.mdx b/website/docs/migration-guides/yew-agent/from-0_1_0-to-0_2_0.md similarity index 100% rename from website/docs/migration-guides/yew-agent/from-0_1_0-to-0_2_0.mdx rename to website/docs/migration-guides/yew-agent/from-0_1_0-to-0_2_0.md diff --git a/website/docs/migration-guides/yew-router/from-0_15_0-to-0_16_0.mdx b/website/docs/migration-guides/yew-router/from-0_15_0-to-0_16_0.md similarity index 100% rename from website/docs/migration-guides/yew-router/from-0_15_0-to-0_16_0.mdx rename to website/docs/migration-guides/yew-router/from-0_15_0-to-0_16_0.md diff --git a/website/docs/migration-guides/yew/from-0_18_0-to-0_19_0.mdx b/website/docs/migration-guides/yew/from-0_18_0-to-0_19_0.md similarity index 100% rename from website/docs/migration-guides/yew/from-0_18_0-to-0_19_0.mdx rename to website/docs/migration-guides/yew/from-0_18_0-to-0_19_0.md diff --git a/website/docs/more/css.mdx b/website/docs/more/css.md similarity index 100% rename from website/docs/more/css.mdx rename to website/docs/more/css.md diff --git a/website/docs/more/debugging.mdx b/website/docs/more/debugging.md similarity index 100% rename from website/docs/more/debugging.mdx rename to website/docs/more/debugging.md diff --git a/website/docs/more/external-libs.mdx b/website/docs/more/external-libs.md similarity index 100% rename from website/docs/more/external-libs.mdx rename to website/docs/more/external-libs.md diff --git a/website/docs/more/roadmap.mdx b/website/docs/more/roadmap.md similarity index 100% rename from website/docs/more/roadmap.mdx rename to website/docs/more/roadmap.md diff --git a/website/docs/more/testing.mdx b/website/docs/more/testing.md similarity index 100% rename from website/docs/more/testing.mdx rename to website/docs/more/testing.md diff --git a/website/docs/tutorial.mdx b/website/docs/tutorial.md similarity index 100% rename from website/docs/tutorial.mdx rename to website/docs/tutorial.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/SUMMARY.md b/website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/SUMMARY.md new file mode 100644 index 00000000000..c40d53ee67a --- /dev/null +++ b/website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/SUMMARY.md @@ -0,0 +1,44 @@ +# Table of contents + +* [はじめに](index) + +## 始める + +* [プロジェクトの準備](getting-started/project-setup) + * [wasm-packを使う](getting-started/project-setup/using-wasm-pack) + * [wasm-bindgenを使う](getting-started/project-setup/using-wasm-bindgen) + * [cargo-webを使う](getting-started/project-setup/using-cargo-web) +* [入門用テンプレート](getting-started/starter-templates) +* [サンプルアプリを作る](getting-started/build-a-sample-app) +* [web-sysかstdweb選ぶ](getting-started/choose-web-library) +* [例から学ぶ](getting-started/examples) + +## 基本となる概念 + +* [html!を使う](concepts/html) + * [リスト](concepts/html/lists) + * [要素](concepts/html/elements) + * [リテラルと式](concepts/html/literals-and-expressions) + * [コンポーネント](concepts/html/components) +* [コンポーネント (Components)](concepts/components) + * [属性 (Properties)](concepts/components/properties) + * [コールバック (Callbacks)](concepts/components/callbacks) + * [参照 (Refs)](concepts/components/refs) +* [Agents](concepts/agents) +* [Services](concepts/services) + * [Format](concepts/services/format) +* [ルータ](concepts/router) + +## 高度な内容 + +* [最適化とベストプラクティス](advanced-topics/optimizations) +* [低レベルなライブラリの中身](advanced-topics/how-it-works) + +## 更なる内容 + +* [CSS](more/css) +* [ロードマップ](more/roadmap) +* [テスト](more/testing) +* [デバッグ](more/debugging) +* [外部ライブラリ](more/external-libs) + diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/SUMMARY.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/SUMMARY.mdx deleted file mode 100644 index f78283e43bf..00000000000 --- a/website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/SUMMARY.mdx +++ /dev/null @@ -1,44 +0,0 @@ -# Table of contents - -* [はじめに](index.mdx) - -## 始める - -* [プロジェクトの準備](getting-started/project-setup.mdx) - * [wasm-packを使う](getting-started/project-setup/using-wasm-pack.mdx) - * [wasm-bindgenを使う](getting-started/project-setup/using-wasm-bindgen.mdx) - * [cargo-webを使う](getting-started/project-setup/using-cargo-web.mdx) -* [入門用テンプレート](getting-started/starter-templates.mdx) -* [サンプルアプリを作る](getting-started/build-a-sample-app.mdx) -* [web-sysかstdweb選ぶ](getting-started/choose-web-library.mdx) -* [例から学ぶ](getting-started/examples.mdx) - -## 基本となる概念 - -* [html!を使う](concepts/html.mdx) - * [リスト](concepts/html/lists.mdx) - * [要素](concepts/html/elements.mdx) - * [リテラルと式](concepts/html/literals-and-expressions.mdx) - * [コンポーネント](concepts/html/components.mdx) -* [コンポーネント (Components)](concepts/components.mdx) - * [属性 (Properties)](concepts/components/properties.mdx) - * [コールバック (Callbacks)](concepts/components/callbacks.mdx) - * [参照 (Refs)](concepts/components/refs.mdx) -* [Agents](concepts/agents.mdx) -* [Services](concepts/services.mdx) - * [Format](concepts/services/format.mdx) -* [ルータ](concepts/router.mdx) - -## 高度な内容 - -* [最適化とベストプラクティス](advanced-topics/optimizations.mdx) -* [低レベルなライブラリの中身](advanced-topics/how-it-works.mdx) - -## 更なる内容 - -* [CSS](more/css.mdx) -* [ロードマップ](more/roadmap.mdx) -* [テスト](more/testing.mdx) -* [デバッグ](more/debugging.mdx) -* [外部ライブラリ](more/external-libs.mdx) - diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/advanced-topics/how-it-works.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/advanced-topics/how-it-works.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/advanced-topics/how-it-works.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/advanced-topics/how-it-works.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/advanced-topics/optimizations.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/advanced-topics/optimizations.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/advanced-topics/optimizations.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/advanced-topics/optimizations.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/concepts/agents.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/concepts/agents.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/concepts/agents.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/concepts/agents.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/concepts/components.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/concepts/components.md similarity index 98% rename from website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/concepts/components.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/concepts/components.md index 18bd93c3747..c0f4da4a89d 100644 --- a/website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/concepts/components.mdx +++ b/website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/concepts/components.md @@ -61,7 +61,7 @@ impl Component for MyComponent { } ``` -使い方については[`html!`ガイド](html.mdx)をご確認ください。 +使い方については[`html!`ガイド](html)をご確認ください。 ### Rendered diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/concepts/components/callbacks.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/concepts/components/callbacks.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/concepts/components/callbacks.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/concepts/components/callbacks.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/concepts/components/properties.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/concepts/components/properties.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/concepts/components/properties.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/concepts/components/properties.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/concepts/components/refs.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/concepts/components/refs.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/concepts/components/refs.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/concepts/components/refs.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/concepts/html.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/concepts/html.md similarity index 96% rename from website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/concepts/html.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/concepts/html.md index c3b07b1c21c..1d77a975e80 100644 --- a/website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/concepts/html.mdx +++ b/website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/concepts/html.md @@ -8,7 +8,7 @@ JSX \(HTMLのようなコードをJavaScript内部に書くことができるJav **重要な注意** -1. `html!`マクロはルートのHTMLノードのみ受け付けます \([フラグメントかイテレータを使う](html/lists.mdx)ことでやり取りできます\) +1. `html!`マクロはルートのHTMLノードのみ受け付けます \([フラグメントかイテレータを使う](html/lists)ことでやり取りできます\) 2. 空の`html! {}`の呼び出しは可能ですが何もレンダリングしません 3. リテラルはクオーテーションがつけられ、ブレースで囲う必要があります: `html! { "Hello, World" }` diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/concepts/html/components.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/concepts/html/components.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/concepts/html/components.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/concepts/html/components.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/concepts/html/elements.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/concepts/html/elements.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/concepts/html/elements.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/concepts/html/elements.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/concepts/html/lists.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/concepts/html/lists.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/concepts/html/lists.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/concepts/html/lists.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/concepts/html/literals-and-expressions.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/concepts/html/literals-and-expressions.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/concepts/html/literals-and-expressions.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/concepts/html/literals-and-expressions.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/concepts/router.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/concepts/router.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/concepts/router.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/concepts/router.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/concepts/services.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/concepts/services.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/concepts/services.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/concepts/services.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/concepts/services/format.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/concepts/services/format.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/concepts/services/format.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/concepts/services/format.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/getting-started/build-a-sample-app.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/getting-started/build-a-sample-app.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/getting-started/build-a-sample-app.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/getting-started/build-a-sample-app.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/getting-started/choose-web-library.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/getting-started/choose-web-library.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/getting-started/choose-web-library.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/getting-started/choose-web-library.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/getting-started/examples.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/getting-started/examples.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/getting-started/examples.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/getting-started/examples.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/getting-started/project-setup.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/getting-started/project-setup.md similarity index 98% rename from website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/getting-started/project-setup.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/getting-started/project-setup.md index dc771d6f173..88f1181c75e 100644 --- a/website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/getting-started/project-setup.mdx +++ b/website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/getting-started/project-setup.md @@ -20,7 +20,7 @@ WebAssemblyとJavaScriptの互換を持たせるために他にツールが必 Rust / Wasm活動チームによって開発されているCLIツールで、WebAssemblyをパッケージ化することができます。 Webpackには[`wasm-pack-plugin`](https://github.com/wasm-tool/wasm-pack-plugin)が最もよく使われています。 -[`wasm-pack`で始める](project-setup/using-wasm-pack.mdx) +[`wasm-pack`で始める](project-setup/using-wasm-pack) ### [**`wasm-bindgen`**](https://rustwasm.github.io/docs/wasm-bindgen/) @@ -29,14 +29,14 @@ Rust/Wasm活動チームによって開発されているライブラリとCLI `wasm-bindgen`は手書きのJavaScriptでWebAssemblyのバイナリを使う必要があるため、直接使うのは非推奨です。 しかし、詳細な情報については[**`wasm-bindgen` ガイド**](https://rustwasm.github.io/docs/wasm-bindgen/)から得られます。 -[`wasm-bindgen`で始める。](project-setup/using-wasm-bindgen.mdx) +[`wasm-bindgen`で始める。](project-setup/using-wasm-bindgen) ### [**`cargo-web`**](https://github.com/koute/cargo-web) `wasm-pack`と`wasm-bindgen`を導入する前は好まれたWebワークフローツールです。 `wasm-pack`がサポートされていないサンプルを動かすのにインストールする価値があり、依然として**最もお手軽に**始められる方法です。 -[`cargo web`で始める](project-setup/using-cargo-web.mdx) +[`cargo web`で始める](project-setup/using-cargo-web) ### 比較 diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/getting-started/project-setup/using-cargo-web.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/getting-started/project-setup/using-cargo-web.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/getting-started/project-setup/using-cargo-web.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/getting-started/project-setup/using-cargo-web.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/getting-started/project-setup/using-wasm-bindgen.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/getting-started/project-setup/using-wasm-bindgen.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/getting-started/project-setup/using-wasm-bindgen.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/getting-started/project-setup/using-wasm-bindgen.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/getting-started/project-setup/using-wasm-pack.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/getting-started/project-setup/using-wasm-pack.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/getting-started/project-setup/using-wasm-pack.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/getting-started/project-setup/using-wasm-pack.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/getting-started/starter-templates.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/getting-started/starter-templates.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/getting-started/starter-templates.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/getting-started/starter-templates.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/more/css.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/more/css.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/more/css.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/more/css.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/more/debugging.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/more/debugging.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/more/debugging.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/more/debugging.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/more/external-libs.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/more/external-libs.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/more/external-libs.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/more/external-libs.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/more/roadmap.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/more/roadmap.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/more/roadmap.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/more/roadmap.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/more/testing.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/more/testing.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/more/testing.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/more/testing.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/current/advanced-topics/how-it-works.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/current/advanced-topics/how-it-works.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/current/advanced-topics/how-it-works.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/current/advanced-topics/how-it-works.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/current/advanced-topics/optimizations.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/current/advanced-topics/optimizations.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/current/advanced-topics/optimizations.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/current/advanced-topics/optimizations.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/agents.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/agents.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/agents.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/agents.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/components.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/components.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/components.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/components.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/components/callbacks.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/components/callbacks.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/components/callbacks.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/components/callbacks.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/components/introduction.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/components/introduction.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/components/introduction.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/components/introduction.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/components/properties.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/components/properties.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/components/properties.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/components/properties.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/components/refs.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/components/refs.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/components/refs.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/components/refs.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/concepts/html.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/html.md similarity index 96% rename from website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/concepts/html.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/html.md index c3b07b1c21c..1d77a975e80 100644 --- a/website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/concepts/html.mdx +++ b/website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/html.md @@ -8,7 +8,7 @@ JSX \(HTMLのようなコードをJavaScript内部に書くことができるJav **重要な注意** -1. `html!`マクロはルートのHTMLノードのみ受け付けます \([フラグメントかイテレータを使う](html/lists.mdx)ことでやり取りできます\) +1. `html!`マクロはルートのHTMLノードのみ受け付けます \([フラグメントかイテレータを使う](html/lists)ことでやり取りできます\) 2. 空の`html! {}`の呼び出しは可能ですが何もレンダリングしません 3. リテラルはクオーテーションがつけられ、ブレースで囲う必要があります: `html! { "Hello, World" }` diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/html/components.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/html/components.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/html/components.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/html/components.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/html/elements.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/html/elements.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/html/elements.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/html/elements.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/html/introduction.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/html/introduction.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/html/introduction.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/html/introduction.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/html/lists.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/html/lists.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/html/lists.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/html/lists.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/html/literals-and-expressions.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/html/literals-and-expressions.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/html/literals-and-expressions.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/html/literals-and-expressions.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/router.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/router.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/router.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/router.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/services.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/services.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/services.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/services.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/services/format.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/services/format.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/services/format.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/services/format.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/current/getting-started/build-a-sample-app.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/current/getting-started/build-a-sample-app.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/current/getting-started/build-a-sample-app.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/current/getting-started/build-a-sample-app.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/current/getting-started/choose-web-library.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/current/getting-started/choose-web-library.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/current/getting-started/choose-web-library.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/current/getting-started/choose-web-library.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/current/getting-started/examples.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/current/getting-started/examples.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/current/getting-started/examples.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/current/getting-started/examples.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/current/getting-started/project-setup.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/current/getting-started/project-setup.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/current/getting-started/project-setup.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/current/getting-started/project-setup.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/current/getting-started/project-setup/introduction.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/current/getting-started/project-setup/introduction.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/current/getting-started/project-setup/introduction.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/current/getting-started/project-setup/introduction.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/current/getting-started/project-setup/using-cargo-web.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/current/getting-started/project-setup/using-cargo-web.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/current/getting-started/project-setup/using-cargo-web.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/current/getting-started/project-setup/using-cargo-web.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/current/getting-started/project-setup/using-wasm-bindgen.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/current/getting-started/project-setup/using-wasm-bindgen.md similarity index 87% rename from website/i18n/ja/docusaurus-plugin-content-docs/current/getting-started/project-setup/using-wasm-bindgen.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/current/getting-started/project-setup/using-wasm-bindgen.md index 3b4edee5833..b3b89cb6280 100644 --- a/website/i18n/ja/docusaurus-plugin-content-docs/current/getting-started/project-setup/using-wasm-bindgen.mdx +++ b/website/i18n/ja/docusaurus-plugin-content-docs/current/getting-started/project-setup/using-wasm-bindgen.md @@ -11,7 +11,7 @@ cargo install wasm-bindgen-cli ## ビルド はじめに、Wasmファイルを生成するアプリをビルドしましょう。 -[サンプルアプリをビルド](../build-a-sample-app.mdx)のアプリをビルドしたいとします。 +[サンプルアプリをビルド](../build-a-sample-app)のアプリをビルドしたいとします。 生成されたファイルのパスは`target/wasm32-unknown-unknown/debug/yew-app.wasm`にあるはずです。 もしクレートに何か別の名前をつけた場合、Wasmファイルの名前は`yew-app.wasm`ではなく、`Cargo.toml`ファイルに `package.name`として名前をつけたものになるでしょう。 @@ -25,7 +25,7 @@ cargo build --target wasm32-unknown-unknown コンパイルされたWebAssemblyとJavaScriptのラッパーが入っています。 現在のブラウザは直接WebAssemblyファイルを読み込むことができないため、代わりにJavaScript経由で読み込まれるなければならず、 そのためにこれらのラッパーが必要となります。 -[サンプルアプリを作る(../build-a-sample-app.mdx)の例では`static`フォルダにファイルが生成されるようにしており +[サンプルアプリを作る(../build-a-sample-app)の例では`static`フォルダにファイルが生成されるようにしており (そのために`wasm-bindgen`へ`--out-dir static`と渡す必要があります)、 `wasm.js`と`wasm_bg.wasm`という名前になります(`wasm-bindgen`へ`--out-name wasm`と渡すことで実現できます) diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/current/getting-started/project-setup/using-wasm-pack.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/current/getting-started/project-setup/using-wasm-pack.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/current/getting-started/project-setup/using-wasm-pack.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/current/getting-started/project-setup/using-wasm-pack.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/current/getting-started/starter-templates.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/current/getting-started/starter-templates.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/current/getting-started/starter-templates.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/current/getting-started/starter-templates.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/current/more/css.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/current/more/css.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/current/more/css.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/current/more/css.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/current/more/debugging.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/current/more/debugging.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/current/more/debugging.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/current/more/debugging.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/current/more/external-libs.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/current/more/external-libs.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/current/more/external-libs.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/current/more/external-libs.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/current/more/roadmap.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/current/more/roadmap.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/current/more/roadmap.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/current/more/roadmap.md 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.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/current/more/testing.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/current/more/testing.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/SUMMARY.md b/website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/SUMMARY.md new file mode 100644 index 00000000000..cc8f93cfbaf --- /dev/null +++ b/website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/SUMMARY.md @@ -0,0 +1,44 @@ +# Table of contents + +* [はじめに](index) + +## 始める + +* [プロジェクトの準備](getting-started/project-setup) + * [trunkを使う](getting-started/project-setup/using-trunk) + * [wasm-packを使う](getting-started/project-setup/using-wasm-pack) + * [cargo-webを使う](getting-started/project-setup/using-cargo-web) +* [入門用テンプレート](getting-started/starter-templates) +* [サンプルアプリを作る](getting-started/build-a-sample-app) +* [web-sysかstdweb選ぶ](getting-started/choose-web-library) +* [例から学ぶ](getting-started/examples) + +## 基本となる概念 + +* [html!を使う](concepts/html) + * [リスト](concepts/html/lists) + * [要素](concepts/html/elements) + * [リテラルと式](concepts/html/literals-and-expressions) + * [コンポーネント](concepts/html/components) +* [コンポーネント (Components)](concepts/components) + * [属性 (Properties)](concepts/components/properties) + * [コールバック (Callbacks)](concepts/components/callbacks) + * [参照 (Refs)](concepts/components/refs) +* [Agents](concepts/agents) +* [Services](concepts/services) + * [Format](concepts/services/format) +* [ルータ](concepts/router) + +## 高度な内容 + +* [最適化とベストプラクティス](advanced-topics/optimizations) +* [低レベルなライブラリの中身](advanced-topics/how-it-works) + +## 更なる内容 + +* [CSS](more/css) +* [ロードマップ](more/roadmap) +* [テスト](more/testing) +* [デバッグ](more/debugging) +* [外部ライブラリ](more/external-libs) + diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/SUMMARY.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/SUMMARY.mdx deleted file mode 100644 index ff6aad9093a..00000000000 --- a/website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/SUMMARY.mdx +++ /dev/null @@ -1,44 +0,0 @@ -# Table of contents - -* [はじめに](index.mdx) - -## 始める - -* [プロジェクトの準備](getting-started/project-setup.mdx) - * [trunkを使う](getting-started/project-setup/using-trunk.mdx) - * [wasm-packを使う](getting-started/project-setup/using-wasm-pack.mdx) - * [cargo-webを使う](getting-started/project-setup/using-cargo-web.mdx) -* [入門用テンプレート](getting-started/starter-templates.mdx) -* [サンプルアプリを作る](getting-started/build-a-sample-app.mdx) -* [web-sysかstdweb選ぶ](getting-started/choose-web-library.mdx) -* [例から学ぶ](getting-started/examples.mdx) - -## 基本となる概念 - -* [html!を使う](concepts/html.mdx) - * [リスト](concepts/html/lists.mdx) - * [要素](concepts/html/elements.mdx) - * [リテラルと式](concepts/html/literals-and-expressions.mdx) - * [コンポーネント](concepts/html/components.mdx) -* [コンポーネント (Components)](concepts/components.mdx) - * [属性 (Properties)](concepts/components/properties.mdx) - * [コールバック (Callbacks)](concepts/components/callbacks.mdx) - * [参照 (Refs)](concepts/components/refs.mdx) -* [Agents](concepts/agents.mdx) -* [Services](concepts/services.mdx) - * [Format](concepts/services/format.mdx) -* [ルータ](concepts/router.mdx) - -## 高度な内容 - -* [最適化とベストプラクティス](advanced-topics/optimizations.mdx) -* [低レベルなライブラリの中身](advanced-topics/how-it-works.mdx) - -## 更なる内容 - -* [CSS](more/css.mdx) -* [ロードマップ](more/roadmap.mdx) -* [テスト](more/testing.mdx) -* [デバッグ](more/debugging.mdx) -* [外部ライブラリ](more/external-libs.mdx) - diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/advanced-topics/how-it-works.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/advanced-topics/how-it-works.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/advanced-topics/how-it-works.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/advanced-topics/how-it-works.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/advanced-topics/optimizations.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/advanced-topics/optimizations.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/advanced-topics/optimizations.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/advanced-topics/optimizations.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/concepts/agents.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/concepts/agents.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/concepts/agents.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/concepts/agents.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/concepts/components.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/concepts/components.md similarity index 98% rename from website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/concepts/components.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/concepts/components.md index 18bd93c3747..c0f4da4a89d 100644 --- a/website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/concepts/components.mdx +++ b/website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/concepts/components.md @@ -61,7 +61,7 @@ impl Component for MyComponent { } ``` -使い方については[`html!`ガイド](html.mdx)をご確認ください。 +使い方については[`html!`ガイド](html)をご確認ください。 ### Rendered diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/concepts/components/callbacks.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/concepts/components/callbacks.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/concepts/components/callbacks.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/concepts/components/callbacks.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/concepts/components/properties.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/concepts/components/properties.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/concepts/components/properties.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/concepts/components/properties.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/concepts/components/refs.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/concepts/components/refs.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/concepts/components/refs.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/concepts/components/refs.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/html.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/concepts/html.md similarity index 96% rename from website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/html.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/concepts/html.md index c3b07b1c21c..1d77a975e80 100644 --- a/website/i18n/ja/docusaurus-plugin-content-docs/current/concepts/html.mdx +++ b/website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/concepts/html.md @@ -8,7 +8,7 @@ JSX \(HTMLのようなコードをJavaScript内部に書くことができるJav **重要な注意** -1. `html!`マクロはルートのHTMLノードのみ受け付けます \([フラグメントかイテレータを使う](html/lists.mdx)ことでやり取りできます\) +1. `html!`マクロはルートのHTMLノードのみ受け付けます \([フラグメントかイテレータを使う](html/lists)ことでやり取りできます\) 2. 空の`html! {}`の呼び出しは可能ですが何もレンダリングしません 3. リテラルはクオーテーションがつけられ、ブレースで囲う必要があります: `html! { "Hello, World" }` diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/concepts/html/components.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/concepts/html/components.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/concepts/html/components.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/concepts/html/components.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/concepts/html/elements.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/concepts/html/elements.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/concepts/html/elements.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/concepts/html/elements.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/concepts/html/lists.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/concepts/html/lists.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/concepts/html/lists.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/concepts/html/lists.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/concepts/html/literals-and-expressions.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/concepts/html/literals-and-expressions.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/concepts/html/literals-and-expressions.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/concepts/html/literals-and-expressions.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/concepts/router.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/concepts/router.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/concepts/router.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/concepts/router.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/concepts/services.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/concepts/services.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/concepts/services.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/concepts/services.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/getting-started/build-a-sample-app.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/getting-started/build-a-sample-app.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/getting-started/build-a-sample-app.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/getting-started/build-a-sample-app.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/getting-started/choose-web-library.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/getting-started/choose-web-library.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/getting-started/choose-web-library.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/getting-started/choose-web-library.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/getting-started/examples.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/getting-started/examples.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/getting-started/examples.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/getting-started/examples.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/getting-started/project-setup.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/getting-started/project-setup.md similarity index 98% rename from website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/getting-started/project-setup.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/getting-started/project-setup.md index dc771d6f173..88f1181c75e 100644 --- a/website/i18n/ja/docusaurus-plugin-content-docs/0.17.3/getting-started/project-setup.mdx +++ b/website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/getting-started/project-setup.md @@ -20,7 +20,7 @@ WebAssemblyとJavaScriptの互換を持たせるために他にツールが必 Rust / Wasm活動チームによって開発されているCLIツールで、WebAssemblyをパッケージ化することができます。 Webpackには[`wasm-pack-plugin`](https://github.com/wasm-tool/wasm-pack-plugin)が最もよく使われています。 -[`wasm-pack`で始める](project-setup/using-wasm-pack.mdx) +[`wasm-pack`で始める](project-setup/using-wasm-pack) ### [**`wasm-bindgen`**](https://rustwasm.github.io/docs/wasm-bindgen/) @@ -29,14 +29,14 @@ Rust/Wasm活動チームによって開発されているライブラリとCLI `wasm-bindgen`は手書きのJavaScriptでWebAssemblyのバイナリを使う必要があるため、直接使うのは非推奨です。 しかし、詳細な情報については[**`wasm-bindgen` ガイド**](https://rustwasm.github.io/docs/wasm-bindgen/)から得られます。 -[`wasm-bindgen`で始める。](project-setup/using-wasm-bindgen.mdx) +[`wasm-bindgen`で始める。](project-setup/using-wasm-bindgen) ### [**`cargo-web`**](https://github.com/koute/cargo-web) `wasm-pack`と`wasm-bindgen`を導入する前は好まれたWebワークフローツールです。 `wasm-pack`がサポートされていないサンプルを動かすのにインストールする価値があり、依然として**最もお手軽に**始められる方法です。 -[`cargo web`で始める](project-setup/using-cargo-web.mdx) +[`cargo web`で始める](project-setup/using-cargo-web) ### 比較 diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/getting-started/project-setup/using-cargo-web.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/getting-started/project-setup/using-cargo-web.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/getting-started/project-setup/using-cargo-web.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/getting-started/project-setup/using-cargo-web.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/getting-started/project-setup/using-wasm-bindgen.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/getting-started/project-setup/using-wasm-bindgen.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/getting-started/project-setup/using-wasm-bindgen.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/getting-started/project-setup/using-wasm-bindgen.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/getting-started/project-setup/using-wasm-pack.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/getting-started/project-setup/using-wasm-pack.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/getting-started/project-setup/using-wasm-pack.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/getting-started/project-setup/using-wasm-pack.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/getting-started/starter-templates.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/getting-started/starter-templates.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/getting-started/starter-templates.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/getting-started/starter-templates.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/more/css.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/more/css.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/more/css.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/more/css.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/more/debugging.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/more/debugging.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/more/debugging.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/more/debugging.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/more/external-libs.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/more/external-libs.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/more/external-libs.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/more/external-libs.md diff --git a/website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/more/roadmap.mdx b/website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/more/roadmap.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/more/roadmap.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/more/roadmap.md 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.md similarity index 100% rename from website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/more/testing.mdx rename to website/i18n/ja/docusaurus-plugin-content-docs/version-0.18.0/more/testing.md diff --git a/website/i18n/ja/docusaurus-plugin-content-pages/index.mdx b/website/i18n/ja/docusaurus-plugin-content-pages/index.md similarity index 99% rename from website/i18n/ja/docusaurus-plugin-content-pages/index.mdx rename to website/i18n/ja/docusaurus-plugin-content-pages/index.md index dc5ca31fd7d..920c73de1fa 100644 --- a/website/i18n/ja/docusaurus-plugin-content-pages/index.mdx +++ b/website/i18n/ja/docusaurus-plugin-content-pages/index.md @@ -21,7 +21,7 @@ slug: / 以下のリンクをクリックして初めてのYewアプリの作り方を学び、コミュニティのプロジェクト例を見てみましょう。 -[始める](getting-started/project-setup.mdx) +[始める](getting-started/project-setup) ### まだ満足していませんか? diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/SUMMARY.md b/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/SUMMARY.md new file mode 100644 index 00000000000..78a261ccaab --- /dev/null +++ b/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/SUMMARY.md @@ -0,0 +1,44 @@ +# Table of contents + +* [简介](README) + +## 从零开始 + +* [项目设置](getting-started/project-setup) + * [使用 wasm-pack](getting-started/project-setup/using-wasm-pack) + * [使用 wasm-bindgen](getting-started/project-setup/using-wasm-bindgen) + * [使用 cargo-web](getting-started/project-setup/using-cargo-web) +* [新手模板](getting-started/starter-templates) +* [第一个简单的 App](getting-started/build-a-sample-app) +* [选择 web-sys 还是 stdweb](getting-started/choose-web-library) +* [通过例子学习](getting-started/examples) + +## 核心概念 + +* [使用 html! 宏](concepts/html) + * [列表](concepts/html/lists) + * [元素](concepts/html/elements) + * [常量和表达式](concepts/html/literals-and-expressions) + * [组件](concepts/html/components) +* [组件(Components)](concepts/components) + * [属性(Properties)](concepts/components/properties) + * [回调(Callbacks)](concepts/components/callbacks) + * [Refs](concepts/components/refs) +* [Agents](concepts/agents) +* [Services](concepts/services) + * [Format](concepts/services/format) +* [Router](concepts/router) + +## 高级主题 + +* [性能优化与最佳实践](advanced-topics/optimizations) +* [底层库的内部细节](advanced-topics/how-it-works) + +## 更多 + +* [CSS](more/css) +* [路线图](more/roadmap) +* [测试](more/testing) +* [Debugging](more/debugging) +* [外部库](more/external-libs) + diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/SUMMARY.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/SUMMARY.mdx deleted file mode 100644 index c259bc93711..00000000000 --- a/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/SUMMARY.mdx +++ /dev/null @@ -1,44 +0,0 @@ -# Table of contents - -* [简介](README.mdx) - -## 从零开始 - -* [项目设置](getting-started/project-setup.mdx) - * [使用 wasm-pack](getting-started/project-setup/using-wasm-pack.mdx) - * [使用 wasm-bindgen](getting-started/project-setup/using-wasm-bindgen.mdx) - * [使用 cargo-web](getting-started/project-setup/using-cargo-web.mdx) -* [新手模板](getting-started/starter-templates.mdx) -* [第一个简单的 App](getting-started/build-a-sample-app.mdx) -* [选择 web-sys 还是 stdweb](getting-started/choose-web-library.mdx) -* [通过例子学习](getting-started/examples.mdx) - -## 核心概念 - -* [使用 html! 宏](concepts/html.mdx) - * [列表](concepts/html/lists.mdx) - * [元素](concepts/html/elements.mdx) - * [常量和表达式](concepts/html/literals-and-expressions.mdx) - * [组件](concepts/html/components.mdx) -* [组件(Components)](concepts/components.mdx) - * [属性(Properties)](concepts/components/properties.mdx) - * [回调(Callbacks)](concepts/components/callbacks.mdx) - * [Refs](concepts/components/refs.mdx) -* [Agents](concepts/agents.mdx) -* [Services](concepts/services.mdx) - * [Format](concepts/services/format.mdx) -* [Router](concepts/router.mdx) - -## 高级主题 - -* [性能优化与最佳实践](advanced-topics/optimizations.mdx) -* [底层库的内部细节](advanced-topics/how-it-works.mdx) - -## 更多 - -* [CSS](more/css.mdx) -* [路线图](more/roadmap.mdx) -* [测试](more/testing.mdx) -* [Debugging](more/debugging.mdx) -* [外部库](more/external-libs.mdx) - diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/advanced-topics/how-it-works.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/advanced-topics/how-it-works.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/current/advanced-topics/how-it-works.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/current/advanced-topics/how-it-works.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/advanced-topics/optimizations.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/advanced-topics/optimizations.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/current/advanced-topics/optimizations.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/current/advanced-topics/optimizations.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/agents.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/agents.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/agents.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/agents.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/components.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/components.md similarity index 99% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/components.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/components.md index 1ecc664d22c..04d11e9d44b 100644 --- a/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/components.mdx +++ b/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/components.md @@ -57,7 +57,7 @@ impl Component for MyComponent { } ``` -有关用法的详细信息,请查看 [`html!` 宏指南](html.mdx)] +有关用法的详细信息,请查看 [`html!` 宏指南](html)] ### Mounted diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/components/callbacks.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/components/callbacks.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/components/callbacks.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/components/callbacks.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/components/introduction.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/components/introduction.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/components/introduction.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/components/introduction.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/components/properties.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/components/properties.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/components/properties.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/components/properties.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/components/refs.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/components/refs.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/components/refs.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/components/refs.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/html.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/html.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/html.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/html.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/html/components.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/html/components.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/html/components.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/html/components.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/html/elements.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/html/elements.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/html/elements.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/html/elements.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/html/introduction.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/html/introduction.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/html/introduction.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/html/introduction.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/html/lists.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/html/lists.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/html/lists.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/html/lists.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/html/literals-and-expressions.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/html/literals-and-expressions.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/html/literals-and-expressions.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/html/literals-and-expressions.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/router.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/router.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/router.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/router.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/services.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/services.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/services.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/services.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/services/format.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/services/format.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/services/format.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/current/concepts/services/format.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/getting-started/build-a-sample-app.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/getting-started/build-a-sample-app.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/current/getting-started/build-a-sample-app.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/current/getting-started/build-a-sample-app.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/getting-started/choose-web-library.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/getting-started/choose-web-library.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/current/getting-started/choose-web-library.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/current/getting-started/choose-web-library.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/getting-started/examples.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/getting-started/examples.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/current/getting-started/examples.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/current/getting-started/examples.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/getting-started/project-setup.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/getting-started/project-setup.md similarity index 97% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/getting-started/project-setup.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/current/getting-started/project-setup.md index 939f0019858..168d6213355 100644 --- a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/getting-started/project-setup.mdx +++ b/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/getting-started/project-setup.md @@ -16,19 +16,19 @@ description: 为成功做好准备 一个由 Rust / Wasm 工作组开发的用于打包 WebAssembly 的 CLI 工具。与 Webpack 的 [`wasm-pack-plugin`](https://github.com/wasm-tool/wasm-pack-plugin) 插件搭配使用最佳。 -[开始使用 wasm-pack](project-setup/using-wasm-pack.mdx) +[开始使用 wasm-pack](project-setup/using-wasm-pack) ### [**`wasm-bindgen`**](https://rustwasm.github.io/docs/wasm-bindgen/) 同时是一个库和一个 CLI 工具,也是由 Rust / Wasm 工作组开发。它是一个促进 JS 和 WebAssembly 之间互操作性的底层工具(在 `wasm-pack` 内部被用到)。我们不建议直接使用 `wasm-bindgen` 因为它需要手写一些 JavaScript 代码来引导你的 WebAssembly 二进制程序。但是,直接使用它也是可能的并且可以在 [**`wasm-bindgen` 指南**](https://rustwasm.github.io/docs/wasm-bindgen/) 上找到更多信息。 -[开始使用 wasm-bindgen](project-setup/using-wasm-bindgen.mdx) +[开始使用 wasm-bindgen](project-setup/using-wasm-bindgen) ### [**`cargo-web`**](https://github.com/koute/cargo-web) 在 `wasm-pack` 和 `wasm-bindgen` 被介绍前的首选 web 工作流工具。它仍然是**最快捷**的启动和运行方式,值得安装以运行尚未迁移到支持 `wasm-pack` 的示例程序。 -[开始使用 cargo-web](project-setup/using-cargo-web.mdx) +[开始使用 cargo-web](project-setup/using-cargo-web) ### 对比 diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/getting-started/project-setup/introduction.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/getting-started/project-setup/introduction.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/current/getting-started/project-setup/introduction.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/current/getting-started/project-setup/introduction.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/getting-started/project-setup/using-cargo-web.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/getting-started/project-setup/using-cargo-web.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/current/getting-started/project-setup/using-cargo-web.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/current/getting-started/project-setup/using-cargo-web.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/getting-started/project-setup/using-trunk.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/getting-started/project-setup/using-trunk.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/current/getting-started/project-setup/using-trunk.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/current/getting-started/project-setup/using-trunk.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/getting-started/project-setup/using-wasm-bindgen.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/getting-started/project-setup/using-wasm-bindgen.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/current/getting-started/project-setup/using-wasm-bindgen.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/current/getting-started/project-setup/using-wasm-bindgen.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/getting-started/project-setup/using-wasm-pack.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/getting-started/project-setup/using-wasm-pack.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/current/getting-started/project-setup/using-wasm-pack.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/current/getting-started/project-setup/using-wasm-pack.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/getting-started/starter-templates.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/getting-started/starter-templates.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/current/getting-started/starter-templates.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/current/getting-started/starter-templates.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/intro.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/intro.md similarity index 98% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/current/intro.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/current/intro.md index a158ff950ab..151b6e89866 100644 --- a/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/intro.mdx +++ b/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/intro.md @@ -21,7 +21,7 @@ slug: / 点击下面的链接,来学习并编写你的第一个 Yew 前端 App , 并通过丰富的社区示例项目来学习。 -[项目设置](getting-started/project-setup.mdx) +[项目设置](getting-started/project-setup) ### 还没有完全信服? diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/more/css.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/more/css.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/current/more/css.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/current/more/css.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/more/debugging.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/more/debugging.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/current/more/debugging.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/current/more/debugging.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/more/external-libs.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/more/external-libs.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/current/more/external-libs.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/current/more/external-libs.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/more/roadmap.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/more/roadmap.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/current/more/roadmap.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/current/more/roadmap.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/more/testing.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/more/testing.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/current/more/testing.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/current/more/testing.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/SUMMARY.md b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/SUMMARY.md new file mode 100644 index 00000000000..78a261ccaab --- /dev/null +++ b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/SUMMARY.md @@ -0,0 +1,44 @@ +# Table of contents + +* [简介](README) + +## 从零开始 + +* [项目设置](getting-started/project-setup) + * [使用 wasm-pack](getting-started/project-setup/using-wasm-pack) + * [使用 wasm-bindgen](getting-started/project-setup/using-wasm-bindgen) + * [使用 cargo-web](getting-started/project-setup/using-cargo-web) +* [新手模板](getting-started/starter-templates) +* [第一个简单的 App](getting-started/build-a-sample-app) +* [选择 web-sys 还是 stdweb](getting-started/choose-web-library) +* [通过例子学习](getting-started/examples) + +## 核心概念 + +* [使用 html! 宏](concepts/html) + * [列表](concepts/html/lists) + * [元素](concepts/html/elements) + * [常量和表达式](concepts/html/literals-and-expressions) + * [组件](concepts/html/components) +* [组件(Components)](concepts/components) + * [属性(Properties)](concepts/components/properties) + * [回调(Callbacks)](concepts/components/callbacks) + * [Refs](concepts/components/refs) +* [Agents](concepts/agents) +* [Services](concepts/services) + * [Format](concepts/services/format) +* [Router](concepts/router) + +## 高级主题 + +* [性能优化与最佳实践](advanced-topics/optimizations) +* [底层库的内部细节](advanced-topics/how-it-works) + +## 更多 + +* [CSS](more/css) +* [路线图](more/roadmap) +* [测试](more/testing) +* [Debugging](more/debugging) +* [外部库](more/external-libs) + diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/SUMMARY.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/SUMMARY.mdx deleted file mode 100644 index c259bc93711..00000000000 --- a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/SUMMARY.mdx +++ /dev/null @@ -1,44 +0,0 @@ -# Table of contents - -* [简介](README.mdx) - -## 从零开始 - -* [项目设置](getting-started/project-setup.mdx) - * [使用 wasm-pack](getting-started/project-setup/using-wasm-pack.mdx) - * [使用 wasm-bindgen](getting-started/project-setup/using-wasm-bindgen.mdx) - * [使用 cargo-web](getting-started/project-setup/using-cargo-web.mdx) -* [新手模板](getting-started/starter-templates.mdx) -* [第一个简单的 App](getting-started/build-a-sample-app.mdx) -* [选择 web-sys 还是 stdweb](getting-started/choose-web-library.mdx) -* [通过例子学习](getting-started/examples.mdx) - -## 核心概念 - -* [使用 html! 宏](concepts/html.mdx) - * [列表](concepts/html/lists.mdx) - * [元素](concepts/html/elements.mdx) - * [常量和表达式](concepts/html/literals-and-expressions.mdx) - * [组件](concepts/html/components.mdx) -* [组件(Components)](concepts/components.mdx) - * [属性(Properties)](concepts/components/properties.mdx) - * [回调(Callbacks)](concepts/components/callbacks.mdx) - * [Refs](concepts/components/refs.mdx) -* [Agents](concepts/agents.mdx) -* [Services](concepts/services.mdx) - * [Format](concepts/services/format.mdx) -* [Router](concepts/router.mdx) - -## 高级主题 - -* [性能优化与最佳实践](advanced-topics/optimizations.mdx) -* [底层库的内部细节](advanced-topics/how-it-works.mdx) - -## 更多 - -* [CSS](more/css.mdx) -* [路线图](more/roadmap.mdx) -* [测试](more/testing.mdx) -* [Debugging](more/debugging.mdx) -* [外部库](more/external-libs.mdx) - diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/advanced-topics/how-it-works.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/advanced-topics/how-it-works.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/advanced-topics/how-it-works.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/advanced-topics/how-it-works.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/advanced-topics/optimizations.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/advanced-topics/optimizations.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/advanced-topics/optimizations.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/advanced-topics/optimizations.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/concepts/agents.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/concepts/agents.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/concepts/agents.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/concepts/agents.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/concepts/components.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/concepts/components.md similarity index 99% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/concepts/components.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/concepts/components.md index ff960371e42..db17261997c 100644 --- a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/concepts/components.mdx +++ b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/concepts/components.md @@ -57,7 +57,7 @@ impl Component for MyComponent { } ``` -有关用法的详细信息,请查看 [`html!` 宏指南](html.mdx)] +有关用法的详细信息,请查看 [`html!` 宏指南](html)] ### Mounted diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/concepts/components/callbacks.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/concepts/components/callbacks.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/concepts/components/callbacks.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/concepts/components/callbacks.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/concepts/components/properties.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/concepts/components/properties.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/concepts/components/properties.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/concepts/components/properties.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/concepts/components/refs.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/concepts/components/refs.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/concepts/components/refs.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/concepts/components/refs.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/concepts/html.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/concepts/html.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/concepts/html.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/concepts/html.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/concepts/html/components.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/concepts/html/components.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/concepts/html/components.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/concepts/html/components.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/concepts/html/elements.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/concepts/html/elements.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/concepts/html/elements.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/concepts/html/elements.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/concepts/html/lists.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/concepts/html/lists.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/concepts/html/lists.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/concepts/html/lists.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/concepts/html/literals-and-expressions.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/concepts/html/literals-and-expressions.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/concepts/html/literals-and-expressions.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/concepts/html/literals-and-expressions.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/concepts/router.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/concepts/router.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/concepts/router.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/concepts/router.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/concepts/services.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/concepts/services.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/concepts/services.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/concepts/services.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/concepts/services/format.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/concepts/services/format.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/concepts/services/format.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/concepts/services/format.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/getting-started/build-a-sample-app.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/getting-started/build-a-sample-app.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/getting-started/build-a-sample-app.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/getting-started/build-a-sample-app.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/getting-started/choose-web-library.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/getting-started/choose-web-library.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/getting-started/choose-web-library.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/getting-started/choose-web-library.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/getting-started/examples.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/getting-started/examples.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/getting-started/examples.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/getting-started/examples.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/getting-started/project-setup.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/getting-started/project-setup.md similarity index 97% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/current/getting-started/project-setup.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/getting-started/project-setup.md index 939f0019858..168d6213355 100644 --- a/website/i18n/zh-CN/docusaurus-plugin-content-docs/current/getting-started/project-setup.mdx +++ b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/getting-started/project-setup.md @@ -16,19 +16,19 @@ description: 为成功做好准备 一个由 Rust / Wasm 工作组开发的用于打包 WebAssembly 的 CLI 工具。与 Webpack 的 [`wasm-pack-plugin`](https://github.com/wasm-tool/wasm-pack-plugin) 插件搭配使用最佳。 -[开始使用 wasm-pack](project-setup/using-wasm-pack.mdx) +[开始使用 wasm-pack](project-setup/using-wasm-pack) ### [**`wasm-bindgen`**](https://rustwasm.github.io/docs/wasm-bindgen/) 同时是一个库和一个 CLI 工具,也是由 Rust / Wasm 工作组开发。它是一个促进 JS 和 WebAssembly 之间互操作性的底层工具(在 `wasm-pack` 内部被用到)。我们不建议直接使用 `wasm-bindgen` 因为它需要手写一些 JavaScript 代码来引导你的 WebAssembly 二进制程序。但是,直接使用它也是可能的并且可以在 [**`wasm-bindgen` 指南**](https://rustwasm.github.io/docs/wasm-bindgen/) 上找到更多信息。 -[开始使用 wasm-bindgen](project-setup/using-wasm-bindgen.mdx) +[开始使用 wasm-bindgen](project-setup/using-wasm-bindgen) ### [**`cargo-web`**](https://github.com/koute/cargo-web) 在 `wasm-pack` 和 `wasm-bindgen` 被介绍前的首选 web 工作流工具。它仍然是**最快捷**的启动和运行方式,值得安装以运行尚未迁移到支持 `wasm-pack` 的示例程序。 -[开始使用 cargo-web](project-setup/using-cargo-web.mdx) +[开始使用 cargo-web](project-setup/using-cargo-web) ### 对比 diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/getting-started/project-setup/using-cargo-web.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/getting-started/project-setup/using-cargo-web.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/getting-started/project-setup/using-cargo-web.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/getting-started/project-setup/using-cargo-web.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/getting-started/project-setup/using-wasm-bindgen.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/getting-started/project-setup/using-wasm-bindgen.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/getting-started/project-setup/using-wasm-bindgen.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/getting-started/project-setup/using-wasm-bindgen.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/getting-started/project-setup/using-wasm-pack.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/getting-started/project-setup/using-wasm-pack.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/getting-started/project-setup/using-wasm-pack.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/getting-started/project-setup/using-wasm-pack.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/getting-started/starter-templates.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/getting-started/starter-templates.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/getting-started/starter-templates.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/getting-started/starter-templates.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/index.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/index.md similarity index 98% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/index.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/index.md index 4403a1f58d8..09cf9aa3dc7 100644 --- a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/index.mdx +++ b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/index.md @@ -20,7 +20,7 @@ title: Introduction 点击下面的链接,来学习并编写你的第一个 Yew 前端 App , 并通过丰富的社区示例项目来学习。 -[项目设置](getting-started/project-setup.mdx) +[项目设置](getting-started/project-setup) ### 还没有完全信服? diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/more/css.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/more/css.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/more/css.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/more/css.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/more/debugging.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/more/debugging.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/more/debugging.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/more/debugging.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/more/external-libs.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/more/external-libs.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/more/external-libs.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/more/external-libs.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/more/roadmap.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/more/roadmap.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/more/roadmap.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/more/roadmap.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/more/testing.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/more/testing.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/more/testing.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.17.3/more/testing.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/SUMMARY.md b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/SUMMARY.md new file mode 100644 index 00000000000..78a261ccaab --- /dev/null +++ b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/SUMMARY.md @@ -0,0 +1,44 @@ +# Table of contents + +* [简介](README) + +## 从零开始 + +* [项目设置](getting-started/project-setup) + * [使用 wasm-pack](getting-started/project-setup/using-wasm-pack) + * [使用 wasm-bindgen](getting-started/project-setup/using-wasm-bindgen) + * [使用 cargo-web](getting-started/project-setup/using-cargo-web) +* [新手模板](getting-started/starter-templates) +* [第一个简单的 App](getting-started/build-a-sample-app) +* [选择 web-sys 还是 stdweb](getting-started/choose-web-library) +* [通过例子学习](getting-started/examples) + +## 核心概念 + +* [使用 html! 宏](concepts/html) + * [列表](concepts/html/lists) + * [元素](concepts/html/elements) + * [常量和表达式](concepts/html/literals-and-expressions) + * [组件](concepts/html/components) +* [组件(Components)](concepts/components) + * [属性(Properties)](concepts/components/properties) + * [回调(Callbacks)](concepts/components/callbacks) + * [Refs](concepts/components/refs) +* [Agents](concepts/agents) +* [Services](concepts/services) + * [Format](concepts/services/format) +* [Router](concepts/router) + +## 高级主题 + +* [性能优化与最佳实践](advanced-topics/optimizations) +* [底层库的内部细节](advanced-topics/how-it-works) + +## 更多 + +* [CSS](more/css) +* [路线图](more/roadmap) +* [测试](more/testing) +* [Debugging](more/debugging) +* [外部库](more/external-libs) + diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/SUMMARY.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/SUMMARY.mdx deleted file mode 100644 index c259bc93711..00000000000 --- a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/SUMMARY.mdx +++ /dev/null @@ -1,44 +0,0 @@ -# Table of contents - -* [简介](README.mdx) - -## 从零开始 - -* [项目设置](getting-started/project-setup.mdx) - * [使用 wasm-pack](getting-started/project-setup/using-wasm-pack.mdx) - * [使用 wasm-bindgen](getting-started/project-setup/using-wasm-bindgen.mdx) - * [使用 cargo-web](getting-started/project-setup/using-cargo-web.mdx) -* [新手模板](getting-started/starter-templates.mdx) -* [第一个简单的 App](getting-started/build-a-sample-app.mdx) -* [选择 web-sys 还是 stdweb](getting-started/choose-web-library.mdx) -* [通过例子学习](getting-started/examples.mdx) - -## 核心概念 - -* [使用 html! 宏](concepts/html.mdx) - * [列表](concepts/html/lists.mdx) - * [元素](concepts/html/elements.mdx) - * [常量和表达式](concepts/html/literals-and-expressions.mdx) - * [组件](concepts/html/components.mdx) -* [组件(Components)](concepts/components.mdx) - * [属性(Properties)](concepts/components/properties.mdx) - * [回调(Callbacks)](concepts/components/callbacks.mdx) - * [Refs](concepts/components/refs.mdx) -* [Agents](concepts/agents.mdx) -* [Services](concepts/services.mdx) - * [Format](concepts/services/format.mdx) -* [Router](concepts/router.mdx) - -## 高级主题 - -* [性能优化与最佳实践](advanced-topics/optimizations.mdx) -* [底层库的内部细节](advanced-topics/how-it-works.mdx) - -## 更多 - -* [CSS](more/css.mdx) -* [路线图](more/roadmap.mdx) -* [测试](more/testing.mdx) -* [Debugging](more/debugging.mdx) -* [外部库](more/external-libs.mdx) - diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/advanced-topics/how-it-works.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/advanced-topics/how-it-works.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/advanced-topics/how-it-works.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/advanced-topics/how-it-works.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/advanced-topics/optimizations.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/advanced-topics/optimizations.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/advanced-topics/optimizations.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/advanced-topics/optimizations.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/agents.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/agents.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/agents.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/agents.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/components.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/components.md similarity index 99% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/components.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/components.md index c8d23da27a4..cd170fc69a5 100644 --- a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/components.mdx +++ b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/components.md @@ -56,7 +56,7 @@ impl Component for MyComponent { } ``` -有关用法的详细信息,请查看 [`html!` 宏指南](html.mdx)。 +有关用法的详细信息,请查看 [`html!` 宏指南](html)。 ### Rendered diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/components/callbacks.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/components/callbacks.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/components/callbacks.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/components/callbacks.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/components/children.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/components/children.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/components/children.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/components/children.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/components/properties.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/components/properties.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/components/properties.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/components/properties.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/components/refs.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/components/refs.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/components/refs.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/components/refs.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/function-components.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/function-components.md similarity index 81% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/function-components.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/function-components.md index 6bdf874a1ae..b1894a57a6e 100644 --- a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/function-components.mdx +++ b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/function-components.md @@ -12,7 +12,7 @@ description: 介绍函数式组件 ## 创建函数式组件 -创建函数式组件的最简单方法是在函数前添加[`#[function_component]`](function-components/attribute.mdx)属性。 +创建函数式组件的最简单方法是在函数前添加[`#[function_component]`](function-components/attribute)属性。 ```rust #[function_component(HelloWorld)] @@ -33,13 +33,13 @@ fn hello_world() -> Html { Yew 带有以下预定义的钩子: -- [`use_state`](function-components/pre-defined-hooks.mdx#use_state) -- [`use_ref`](function-components/pre-defined-hooks.mdx#use_ref) -- [`use_reducer`](function-components/pre-defined-hooks.mdx#use_reducer) -- [`use_reducer_with_init`](function-components/pre-defined-hooks.mdx#use_reducer_with_init) -- [`use_effect`](function-components/pre-defined-hooks.mdx#use_effect) -- [`use_effect_with_deps`](function-components/pre-defined-hooks.mdx#use_effect_with_deps) +- [`use_state`](function-components/pre-defined-hooks#use_state) +- [`use_ref`](function-components/pre-defined-hooks#use_ref) +- [`use_reducer`](function-components/pre-defined-hooks#use_reducer) +- [`use_reducer_with_init`](function-components/pre-defined-hooks#use_reducer_with_init) +- [`use_effect`](function-components/pre-defined-hooks#use_effect) +- [`use_effect_with_deps`](function-components/pre-defined-hooks#use_effect_with_deps) #### 自定义钩子(Custom Hooks) -在某些情况下,您出于一些原因想要定义自己的 Hook。 Yew 允许你这么做,即你可以使用 Hooks 从组件中提取潜在的带有状态的逻辑到可重用的函数中。更多有关信息,请参阅[定义自定义挂钩部分](function-components/custom-hooks.mdx#defining-custom-hooks)。 +在某些情况下,您出于一些原因想要定义自己的 Hook。 Yew 允许你这么做,即你可以使用 Hooks 从组件中提取潜在的带有状态的逻辑到可重用的函数中。更多有关信息,请参阅[定义自定义挂钩部分](function-components/custom-hooks#defining-custom-hooks)。 diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/function-components/attribute.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/function-components/attribute.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/function-components/attribute.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/function-components/attribute.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/function-components/custom-hooks.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/function-components/custom-hooks.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/function-components/custom-hooks.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/function-components/custom-hooks.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/html.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/html.md similarity index 97% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/html.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/html.md index 017b6a74f68..b50f4ed9d5b 100644 --- a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/html.mdx +++ b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/html.md @@ -8,7 +8,7 @@ description: 用于生成 HTML 和 SVG 的宏程序 **重要提示** -1. `html!` 宏调用中只能有一个根节点(你可以通过[使用片段(fragments)或迭代器](html/lists.mdx)来绕过这一点) +1. `html!` 宏调用中只能有一个根节点(你可以通过[使用片段(fragments)或迭代器](html/lists)来绕过这一点) 2. 空的 `html! {}` 宏调用是有效的但不会渲染任何内容 3. 常量必须始终被引号括起来并被包含在大括号里:`html! { "Hello, World" }` diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/html/components.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/html/components.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/html/components.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/html/components.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/html/elements.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/html/elements.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/html/elements.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/html/elements.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/html/lists.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/html/lists.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/html/lists.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/html/lists.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/html/literals-and-expressions.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/html/literals-and-expressions.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/html/literals-and-expressions.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/html/literals-and-expressions.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/router.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/router.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/router.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/router.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/services.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/services.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/services.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/services.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/services/format.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/services/format.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/services/format.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/concepts/services/format.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/getting-started/build-a-sample-app.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/getting-started/build-a-sample-app.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/getting-started/build-a-sample-app.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/getting-started/build-a-sample-app.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/getting-started/choose-web-library.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/getting-started/choose-web-library.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/getting-started/choose-web-library.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/getting-started/choose-web-library.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/getting-started/examples.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/getting-started/examples.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/getting-started/examples.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/getting-started/examples.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/getting-started/project-setup.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/getting-started/project-setup.md similarity index 97% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/getting-started/project-setup.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/getting-started/project-setup.md index cb79a9aa31c..9c9ea976d24 100644 --- a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/getting-started/project-setup.mdx +++ b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/getting-started/project-setup.md @@ -24,19 +24,19 @@ Yew 支持的最低 Rust 版本 (MSRV) 是`1.49.0` 。旧版本可能会导致 我们所有的示例都基于 Trunk 构建。 -[开始使用 `trunk`](project-setup/using-trunk.mdx) +[开始使用 `trunk`](project-setup/using-trunk) ### [**`wasm-pack`**](https://rustwasm.github.io/docs/wasm-pack/) 由 Rust / Wasm 工作组开发的用于打包 WebAssembly 的 CLI 工具。最好与[`wasm-pack-plugin`](https://github.com/wasm-tool/wasm-pack-plugin)一起使用。 `wasm-pack`的主要目的是构建用于 JavaScript 的 Wasm 库。因此,它只能构建库,不提供开发服务器或自动重建等有用工具。 -[开始使用 `wasm-pack`](project-setup/using-wasm-pack.mdx) +[开始使用 `wasm-pack`](project-setup/using-wasm-pack) ### [**`cargo-web`**](https://github.com/koute/cargo-web) 在`wasm-bindgen`创造之前,可以称之为首选的最佳工具。 -[开始使用 `cargo web`](project-setup/using-cargo-web.mdx) +[开始使用 `cargo web`](project-setup/using-cargo-web) ### 对比 diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/getting-started/project-setup/using-cargo-web.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/getting-started/project-setup/using-cargo-web.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/getting-started/project-setup/using-cargo-web.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/getting-started/project-setup/using-cargo-web.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/getting-started/project-setup/using-trunk.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/getting-started/project-setup/using-trunk.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/getting-started/project-setup/using-trunk.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/getting-started/project-setup/using-trunk.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/getting-started/project-setup/using-wasm-bindgen.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/getting-started/project-setup/using-wasm-bindgen.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/getting-started/project-setup/using-wasm-bindgen.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/getting-started/project-setup/using-wasm-bindgen.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/getting-started/project-setup/using-wasm-pack.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/getting-started/project-setup/using-wasm-pack.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/getting-started/project-setup/using-wasm-pack.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/getting-started/project-setup/using-wasm-pack.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/getting-started/starter-templates.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/getting-started/starter-templates.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/getting-started/starter-templates.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/getting-started/starter-templates.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-pages/index.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/intro.md similarity index 98% rename from website/i18n/zh-CN/docusaurus-plugin-content-pages/index.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/intro.md index abced202dbb..f3631290d44 100644 --- a/website/i18n/zh-CN/docusaurus-plugin-content-pages/index.mdx +++ b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/intro.md @@ -21,7 +21,7 @@ slug: / 点击下面的链接,来学习并编写你的第一个 Yew 前端 App , 并通过丰富的社区示例项目来学习。 -[项目设置](getting-started/project-setup.mdx) +[项目设置](getting-started/project-setup) ### 还没有完全信服? diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/more/css.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/more/css.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/more/css.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/more/css.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/more/debugging.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/more/debugging.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/more/debugging.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/more/debugging.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/more/external-libs.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/more/external-libs.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/more/external-libs.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/more/external-libs.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/more/roadmap.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/more/roadmap.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/more/roadmap.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/more/roadmap.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/more/testing.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/more/testing.md similarity index 100% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/more/testing.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/more/testing.md diff --git a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/intro.mdx b/website/i18n/zh-CN/docusaurus-plugin-content-pages/index.md similarity index 98% rename from website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/intro.mdx rename to website/i18n/zh-CN/docusaurus-plugin-content-pages/index.md index abced202dbb..f3631290d44 100644 --- a/website/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.18.0/intro.mdx +++ b/website/i18n/zh-CN/docusaurus-plugin-content-pages/index.md @@ -21,7 +21,7 @@ slug: / 点击下面的链接,来学习并编写你的第一个 Yew 前端 App , 并通过丰富的社区示例项目来学习。 -[项目设置](getting-started/project-setup.mdx) +[项目设置](getting-started/project-setup) ### 还没有完全信服? diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/SUMMARY.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/SUMMARY.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/current/SUMMARY.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/current/SUMMARY.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/advanced-topics/how-it-works.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/advanced-topics/how-it-works.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/current/advanced-topics/how-it-works.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/current/advanced-topics/how-it-works.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/advanced-topics/optimizations.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/advanced-topics/optimizations.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/current/advanced-topics/optimizations.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/current/advanced-topics/optimizations.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/concepts/agents.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/concepts/agents.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/current/concepts/agents.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/current/concepts/agents.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/concepts/components.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/concepts/components.md similarity index 98% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/current/concepts/components.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/current/concepts/components.md index 6737af81582..d685119235a 100644 --- a/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/concepts/components.mdx +++ b/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/concepts/components.md @@ -57,7 +57,7 @@ impl Component for MyComponent { } ``` -更多使用細節,請參考 [`html!` 教學](html.mdx)。 +更多使用細節,請參考 [`html!` 教學](html)。 ### Rendered diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/concepts/components/callbacks.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/concepts/components/callbacks.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/current/concepts/components/callbacks.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/current/concepts/components/callbacks.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/concepts/components/introduction.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/concepts/components/introduction.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/current/concepts/components/introduction.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/current/concepts/components/introduction.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/concepts/components/properties.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/concepts/components/properties.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/current/concepts/components/properties.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/current/concepts/components/properties.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/concepts/components/refs.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/concepts/components/refs.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/current/concepts/components/refs.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/current/concepts/components/refs.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/concepts/html.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/concepts/html.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/current/concepts/html.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/current/concepts/html.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/concepts/html/components.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/concepts/html/components.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/current/concepts/html/components.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/current/concepts/html/components.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/concepts/html/elements.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/concepts/html/elements.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/current/concepts/html/elements.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/current/concepts/html/elements.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/concepts/html/introduction.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/concepts/html/introduction.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/current/concepts/html/introduction.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/current/concepts/html/introduction.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/concepts/html/lists.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/concepts/html/lists.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/current/concepts/html/lists.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/current/concepts/html/lists.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/concepts/html/literals-and-expressions.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/concepts/html/literals-and-expressions.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/current/concepts/html/literals-and-expressions.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/current/concepts/html/literals-and-expressions.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/concepts/router.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/concepts/router.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/current/concepts/router.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/current/concepts/router.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/concepts/services.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/concepts/services.md similarity index 75% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/current/concepts/services.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/current/concepts/services.md index 8fd1a58fe5b..4f459d8ffbf 100644 --- a/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/concepts/services.mdx +++ b/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/concepts/services.md @@ -6,4 +6,4 @@ description: Yew 與瀏覽器的 API 的接合劑 這個區塊有的文章: -- [Format](services/format.mdx) +- [Format](services/format) diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/concepts/services/format.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/concepts/services/format.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/current/concepts/services/format.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/current/concepts/services/format.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/getting-started/build-a-sample-app.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/getting-started/build-a-sample-app.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/current/getting-started/build-a-sample-app.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/current/getting-started/build-a-sample-app.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/getting-started/choose-web-library.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/getting-started/choose-web-library.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/current/getting-started/choose-web-library.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/current/getting-started/choose-web-library.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/getting-started/examples.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/getting-started/examples.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/current/getting-started/examples.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/current/getting-started/examples.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/getting-started/project-setup.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/getting-started/project-setup.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/current/getting-started/project-setup.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/current/getting-started/project-setup.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/getting-started/project-setup/introduction.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/getting-started/project-setup/introduction.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/current/getting-started/project-setup/introduction.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/current/getting-started/project-setup/introduction.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/getting-started/project-setup/using-cargo-web.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/getting-started/project-setup/using-cargo-web.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/current/getting-started/project-setup/using-cargo-web.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/current/getting-started/project-setup/using-cargo-web.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/getting-started/project-setup/using-wasm-bindgen.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/getting-started/project-setup/using-wasm-bindgen.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/current/getting-started/project-setup/using-wasm-bindgen.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/current/getting-started/project-setup/using-wasm-bindgen.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/getting-started/project-setup/using-wasm-pack.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/getting-started/project-setup/using-wasm-pack.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/current/getting-started/project-setup/using-wasm-pack.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/current/getting-started/project-setup/using-wasm-pack.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/getting-started/starter-templates.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/getting-started/starter-templates.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/current/getting-started/starter-templates.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/current/getting-started/starter-templates.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/more/css.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/more/css.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/current/more/css.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/current/more/css.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/more/debugging.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/more/debugging.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/current/more/debugging.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/current/more/debugging.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/more/external-libs.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/more/external-libs.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/current/more/external-libs.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/current/more/external-libs.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/more/roadmap.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/more/roadmap.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/current/more/roadmap.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/current/more/roadmap.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/more/testing.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/current/more/testing.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/current/more/testing.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/current/more/testing.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/SUMMARY.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/SUMMARY.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/SUMMARY.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/SUMMARY.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/advanced-topics/how-it-works.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/advanced-topics/how-it-works.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/advanced-topics/how-it-works.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/advanced-topics/how-it-works.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/advanced-topics/optimizations.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/advanced-topics/optimizations.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/advanced-topics/optimizations.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/advanced-topics/optimizations.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/concepts/agents.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/concepts/agents.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/concepts/agents.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/concepts/agents.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/concepts/components.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/concepts/components.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/concepts/components.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/concepts/components.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/concepts/components/callbacks.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/concepts/components/callbacks.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/concepts/components/callbacks.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/concepts/components/callbacks.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/concepts/components/properties.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/concepts/components/properties.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/concepts/components/properties.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/concepts/components/properties.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/concepts/components/refs.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/concepts/components/refs.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/concepts/components/refs.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/concepts/components/refs.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/concepts/html.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/concepts/html.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/concepts/html.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/concepts/html.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/concepts/html/components.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/concepts/html/components.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/concepts/html/components.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/concepts/html/components.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/concepts/html/elements.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/concepts/html/elements.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/concepts/html/elements.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/concepts/html/elements.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/concepts/html/lists.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/concepts/html/lists.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/concepts/html/lists.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/concepts/html/lists.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/concepts/html/literals-and-expressions.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/concepts/html/literals-and-expressions.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/concepts/html/literals-and-expressions.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/concepts/html/literals-and-expressions.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/concepts/router.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/concepts/router.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/concepts/router.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/concepts/router.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/concepts/services.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/concepts/services.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/concepts/services.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/concepts/services.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/concepts/services/format.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/concepts/services/format.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/concepts/services/format.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/concepts/services/format.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/getting-started/build-a-sample-app.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/getting-started/build-a-sample-app.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/getting-started/build-a-sample-app.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/getting-started/build-a-sample-app.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/getting-started/choose-web-library.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/getting-started/choose-web-library.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/getting-started/choose-web-library.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/getting-started/choose-web-library.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/getting-started/examples.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/getting-started/examples.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/getting-started/examples.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/getting-started/examples.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/getting-started/project-setup.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/getting-started/project-setup.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/getting-started/project-setup.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/getting-started/project-setup.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/getting-started/project-setup/using-cargo-web.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/getting-started/project-setup/using-cargo-web.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/getting-started/project-setup/using-cargo-web.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/getting-started/project-setup/using-cargo-web.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/getting-started/project-setup/using-wasm-bindgen.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/getting-started/project-setup/using-wasm-bindgen.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/getting-started/project-setup/using-wasm-bindgen.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/getting-started/project-setup/using-wasm-bindgen.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/getting-started/project-setup/using-wasm-pack.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/getting-started/project-setup/using-wasm-pack.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/getting-started/project-setup/using-wasm-pack.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/getting-started/project-setup/using-wasm-pack.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/getting-started/starter-templates.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/getting-started/starter-templates.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/getting-started/starter-templates.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/getting-started/starter-templates.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/index.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/index.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/index.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/index.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/more/css.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/more/css.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/more/css.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/more/css.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/more/debugging.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/more/debugging.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/more/debugging.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/more/debugging.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/more/external-libs.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/more/external-libs.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/more/external-libs.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/more/external-libs.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/more/roadmap.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/more/roadmap.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/more/roadmap.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/more/roadmap.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/more/testing.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/more/testing.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/more/testing.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.17.3/more/testing.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/SUMMARY.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/SUMMARY.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/SUMMARY.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/SUMMARY.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/advanced-topics/how-it-works.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/advanced-topics/how-it-works.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/advanced-topics/how-it-works.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/advanced-topics/how-it-works.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/advanced-topics/optimizations.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/advanced-topics/optimizations.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/advanced-topics/optimizations.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/advanced-topics/optimizations.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/concepts/agents.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/concepts/agents.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/concepts/agents.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/concepts/agents.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/concepts/components.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/concepts/components.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/concepts/components.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/concepts/components.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/concepts/components/callbacks.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/concepts/components/callbacks.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/concepts/components/callbacks.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/concepts/components/callbacks.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/concepts/components/properties.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/concepts/components/properties.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/concepts/components/properties.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/concepts/components/properties.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/concepts/components/refs.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/concepts/components/refs.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/concepts/components/refs.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/concepts/components/refs.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/concepts/html.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/concepts/html.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/concepts/html.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/concepts/html.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/concepts/html/components.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/concepts/html/components.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/concepts/html/components.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/concepts/html/components.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/concepts/html/elements.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/concepts/html/elements.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/concepts/html/elements.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/concepts/html/elements.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/concepts/html/lists.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/concepts/html/lists.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/concepts/html/lists.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/concepts/html/lists.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/concepts/html/literals-and-expressions.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/concepts/html/literals-and-expressions.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/concepts/html/literals-and-expressions.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/concepts/html/literals-and-expressions.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/concepts/router.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/concepts/router.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/concepts/router.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/concepts/router.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/concepts/services.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/concepts/services.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/concepts/services.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/concepts/services.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/concepts/services/format.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/concepts/services/format.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/concepts/services/format.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/concepts/services/format.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/getting-started/build-a-sample-app.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/getting-started/build-a-sample-app.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/getting-started/build-a-sample-app.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/getting-started/build-a-sample-app.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/getting-started/choose-web-library.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/getting-started/choose-web-library.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/getting-started/choose-web-library.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/getting-started/choose-web-library.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/getting-started/examples.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/getting-started/examples.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/getting-started/examples.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/getting-started/examples.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/getting-started/project-setup.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/getting-started/project-setup.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/getting-started/project-setup.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/getting-started/project-setup.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/getting-started/project-setup/using-cargo-web.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/getting-started/project-setup/using-cargo-web.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/getting-started/project-setup/using-cargo-web.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/getting-started/project-setup/using-cargo-web.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/getting-started/project-setup/using-wasm-bindgen.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/getting-started/project-setup/using-wasm-bindgen.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/getting-started/project-setup/using-wasm-bindgen.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/getting-started/project-setup/using-wasm-bindgen.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/getting-started/project-setup/using-wasm-pack.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/getting-started/project-setup/using-wasm-pack.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/getting-started/project-setup/using-wasm-pack.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/getting-started/project-setup/using-wasm-pack.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/getting-started/starter-templates.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/getting-started/starter-templates.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/getting-started/starter-templates.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/getting-started/starter-templates.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/more/css.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/more/css.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/more/css.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/more/css.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/more/debugging.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/more/debugging.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/more/debugging.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/more/debugging.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/more/external-libs.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/more/external-libs.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/more/external-libs.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/more/external-libs.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/more/roadmap.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/more/roadmap.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/more/roadmap.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/more/roadmap.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/more/testing.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/more/testing.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/more/testing.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-docs/version-0.18.0/more/testing.md diff --git a/website/i18n/zh-TW/docusaurus-plugin-content-pages/index.mdx b/website/i18n/zh-TW/docusaurus-plugin-content-pages/index.md similarity index 100% rename from website/i18n/zh-TW/docusaurus-plugin-content-pages/index.mdx rename to website/i18n/zh-TW/docusaurus-plugin-content-pages/index.md diff --git a/website/mdx-jetbrains.jpg b/website/mdx-jetbrains.jpg new file mode 100644 index 00000000000..7b5cc00c629 Binary files /dev/null and b/website/mdx-jetbrains.jpg differ diff --git a/website/src/pages/index.mdx b/website/src/pages/index.md similarity index 100% rename from website/src/pages/index.mdx rename to website/src/pages/index.md diff --git a/website/versioned_docs/version-0.18.0/advanced-topics/how-it-works.mdx b/website/versioned_docs/version-0.18.0/advanced-topics/how-it-works.md similarity index 100% rename from website/versioned_docs/version-0.18.0/advanced-topics/how-it-works.mdx rename to website/versioned_docs/version-0.18.0/advanced-topics/how-it-works.md diff --git a/website/versioned_docs/version-0.18.0/advanced-topics/optimizations.mdx b/website/versioned_docs/version-0.18.0/advanced-topics/optimizations.md similarity index 100% rename from website/versioned_docs/version-0.18.0/advanced-topics/optimizations.mdx rename to website/versioned_docs/version-0.18.0/advanced-topics/optimizations.md diff --git a/website/versioned_docs/version-0.18.0/concepts/agents.mdx b/website/versioned_docs/version-0.18.0/concepts/agents.md similarity index 100% rename from website/versioned_docs/version-0.18.0/concepts/agents.mdx rename to website/versioned_docs/version-0.18.0/concepts/agents.md diff --git a/website/versioned_docs/version-0.18.0/concepts/components/callbacks.mdx b/website/versioned_docs/version-0.18.0/concepts/components/callbacks.md similarity index 100% rename from website/versioned_docs/version-0.18.0/concepts/components/callbacks.mdx rename to website/versioned_docs/version-0.18.0/concepts/components/callbacks.md diff --git a/website/versioned_docs/version-0.18.0/concepts/components/children.mdx b/website/versioned_docs/version-0.18.0/concepts/components/children.md similarity index 100% rename from website/versioned_docs/version-0.18.0/concepts/components/children.mdx rename to website/versioned_docs/version-0.18.0/concepts/components/children.md diff --git a/website/versioned_docs/version-0.18.0/concepts/components/introduction.mdx b/website/versioned_docs/version-0.18.0/concepts/components/introduction.md similarity index 99% rename from website/versioned_docs/version-0.18.0/concepts/components/introduction.mdx rename to website/versioned_docs/version-0.18.0/concepts/components/introduction.md index 1e543416b65..8de4917c3fa 100644 --- a/website/versioned_docs/version-0.18.0/concepts/components/introduction.mdx +++ b/website/versioned_docs/version-0.18.0/concepts/components/introduction.md @@ -67,7 +67,7 @@ impl Component for MyComponent { } ``` -For usage details, check out [the `html!` guide](../html/introduction.mdx). +For usage details, check out [the `html!` guide](../html/introduction). ### Rendered diff --git a/website/versioned_docs/version-0.18.0/concepts/components/properties.mdx b/website/versioned_docs/version-0.18.0/concepts/components/properties.md similarity index 100% rename from website/versioned_docs/version-0.18.0/concepts/components/properties.mdx rename to website/versioned_docs/version-0.18.0/concepts/components/properties.md diff --git a/website/versioned_docs/version-0.18.0/concepts/components/refs.mdx b/website/versioned_docs/version-0.18.0/concepts/components/refs.md similarity index 100% rename from website/versioned_docs/version-0.18.0/concepts/components/refs.mdx rename to website/versioned_docs/version-0.18.0/concepts/components/refs.md diff --git a/website/versioned_docs/version-0.18.0/concepts/html/classes.mdx b/website/versioned_docs/version-0.18.0/concepts/html/classes.md similarity index 100% rename from website/versioned_docs/version-0.18.0/concepts/html/classes.mdx rename to website/versioned_docs/version-0.18.0/concepts/html/classes.md diff --git a/website/versioned_docs/version-0.18.0/concepts/html/components.mdx b/website/versioned_docs/version-0.18.0/concepts/html/components.md similarity index 100% rename from website/versioned_docs/version-0.18.0/concepts/html/components.mdx rename to website/versioned_docs/version-0.18.0/concepts/html/components.md diff --git a/website/versioned_docs/version-0.18.0/concepts/html/elements.mdx b/website/versioned_docs/version-0.18.0/concepts/html/elements.md similarity index 100% rename from website/versioned_docs/version-0.18.0/concepts/html/elements.mdx rename to website/versioned_docs/version-0.18.0/concepts/html/elements.md diff --git a/website/versioned_docs/version-0.18.0/concepts/html/events.mdx b/website/versioned_docs/version-0.18.0/concepts/html/events.md similarity index 99% rename from website/versioned_docs/version-0.18.0/concepts/html/events.mdx rename to website/versioned_docs/version-0.18.0/concepts/html/events.md index d35b0f8cf0e..8b6d4279df5 100644 --- a/website/versioned_docs/version-0.18.0/concepts/html/events.mdx +++ b/website/versioned_docs/version-0.18.0/concepts/html/events.md @@ -8,7 +8,7 @@ Yew integrates with the [`web-sys`](https://rustwasm.github.io/wasm-bindgen/api/ uses the events from that crate. The [table below](#event-types) lists all of the `web-sys` events that are accepted in the `html!` macro. -You can still add a [`Callback`](../components/callbacks.mdx) for an event that is not listed in the table +You can still add a [`Callback`](../components/callbacks) for an event that is not listed in the table below, see [Manual event listener](#manual-event-listener). ## Event Types @@ -487,7 +487,7 @@ _1 As safe as anything can be when JS land is involved._ ### Using `NodeRef` -[`NodeRef`](../components/refs.mdx) can be used instead of querying the event given to a `Callback`. +[`NodeRef`](../components/refs) can be used instead of querying the event given to a `Callback`. ```rust //highlight-next-line diff --git a/website/versioned_docs/version-0.18.0/concepts/html/introduction.mdx b/website/versioned_docs/version-0.18.0/concepts/html/introduction.md similarity index 97% rename from website/versioned_docs/version-0.18.0/concepts/html/introduction.mdx rename to website/versioned_docs/version-0.18.0/concepts/html/introduction.md index 0bdcffe81de..5b83cd508d6 100644 --- a/website/versioned_docs/version-0.18.0/concepts/html/introduction.mdx +++ b/website/versioned_docs/version-0.18.0/concepts/html/introduction.md @@ -13,7 +13,7 @@ The `html!` macro allows you to write HTML and SVG code declaratively. It is sim **Important notes** 1. The `html!` macro only accepts a single root HTML node \(this obstacle is easily overcome by - [using fragments or iterators](../html/lists.mdx)\) + [using fragments or iterators](../html/lists)\) 2. An empty `html! {}` invocation is valid and will not render anything 3. Literals must always be wrapped in quotes as well as braces (i.e. `html! {

{"Hello, World"}

}` is valid, but not `html! {

Hello, World

}` or @@ -159,7 +159,7 @@ display your components. Currently, there are two such special props: `ref` and `key`. `ref` allows you to access and manipulate the underlying DOM node directly. See -[Refs](../components/refs.mdx) for more details. This can be very useful if you want to interoperate with +[Refs](../components/refs) for more details. This can be very useful if you want to interoperate with Javascript libraries (for example, to add a map or code editor written in Javascript that would not be feasible to rewrite in Rust). diff --git a/website/versioned_docs/version-0.18.0/concepts/html/lists.mdx b/website/versioned_docs/version-0.18.0/concepts/html/lists.md similarity index 100% rename from website/versioned_docs/version-0.18.0/concepts/html/lists.mdx rename to website/versioned_docs/version-0.18.0/concepts/html/lists.md diff --git a/website/versioned_docs/version-0.18.0/concepts/html/literals-and-expressions.mdx b/website/versioned_docs/version-0.18.0/concepts/html/literals-and-expressions.md similarity index 100% rename from website/versioned_docs/version-0.18.0/concepts/html/literals-and-expressions.mdx rename to website/versioned_docs/version-0.18.0/concepts/html/literals-and-expressions.md diff --git a/website/versioned_docs/version-0.18.0/concepts/router.mdx b/website/versioned_docs/version-0.18.0/concepts/router.md similarity index 100% rename from website/versioned_docs/version-0.18.0/concepts/router.mdx rename to website/versioned_docs/version-0.18.0/concepts/router.md diff --git a/website/versioned_docs/version-0.18.0/concepts/services/fetch.mdx b/website/versioned_docs/version-0.18.0/concepts/services/fetch.md similarity index 99% rename from website/versioned_docs/version-0.18.0/concepts/services/fetch.mdx rename to website/versioned_docs/version-0.18.0/concepts/services/fetch.md index 2a5d52b4318..d21f954bc01 100644 --- a/website/versioned_docs/version-0.18.0/concepts/services/fetch.mdx +++ b/website/versioned_docs/version-0.18.0/concepts/services/fetch.md @@ -7,7 +7,7 @@ The fetch service can be used to make HTTP requests to a server. This enables ap communicate with external services. :::note -You might find it helpful to read the [documentation for the format module](format.mdx) before +You might find it helpful to read the [documentation for the format module](format) before reading this page. ::: diff --git a/website/versioned_docs/version-0.18.0/concepts/services/format.mdx b/website/versioned_docs/version-0.18.0/concepts/services/format.md similarity index 100% rename from website/versioned_docs/version-0.18.0/concepts/services/format.mdx rename to website/versioned_docs/version-0.18.0/concepts/services/format.md diff --git a/website/versioned_docs/version-0.18.0/concepts/services/introduction.mdx b/website/versioned_docs/version-0.18.0/concepts/services/introduction.md similarity index 100% rename from website/versioned_docs/version-0.18.0/concepts/services/introduction.mdx rename to website/versioned_docs/version-0.18.0/concepts/services/introduction.md 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.md similarity index 100% rename from website/versioned_docs/version-0.18.0/concepts/wasm-bindgen/wasm-bindgen.mdx rename to website/versioned_docs/version-0.18.0/concepts/wasm-bindgen/wasm-bindgen.md diff --git a/website/versioned_docs/version-0.18.0/concepts/wasm-bindgen/web-sys.mdx b/website/versioned_docs/version-0.18.0/concepts/wasm-bindgen/web-sys.md similarity index 100% rename from website/versioned_docs/version-0.18.0/concepts/wasm-bindgen/web-sys.mdx rename to website/versioned_docs/version-0.18.0/concepts/wasm-bindgen/web-sys.md diff --git a/website/versioned_docs/version-0.18.0/getting-started/build-a-sample-app.mdx b/website/versioned_docs/version-0.18.0/getting-started/build-a-sample-app.md similarity index 100% rename from website/versioned_docs/version-0.18.0/getting-started/build-a-sample-app.mdx rename to website/versioned_docs/version-0.18.0/getting-started/build-a-sample-app.md diff --git a/website/versioned_docs/version-0.18.0/getting-started/choose-web-library.mdx b/website/versioned_docs/version-0.18.0/getting-started/choose-web-library.md similarity index 100% rename from website/versioned_docs/version-0.18.0/getting-started/choose-web-library.mdx rename to website/versioned_docs/version-0.18.0/getting-started/choose-web-library.md diff --git a/website/versioned_docs/version-0.18.0/getting-started/examples.mdx b/website/versioned_docs/version-0.18.0/getting-started/examples.md similarity index 100% rename from website/versioned_docs/version-0.18.0/getting-started/examples.mdx rename to website/versioned_docs/version-0.18.0/getting-started/examples.md diff --git a/website/versioned_docs/version-0.18.0/getting-started/introduction.mdx b/website/versioned_docs/version-0.18.0/getting-started/introduction.md similarity index 93% rename from website/versioned_docs/version-0.18.0/getting-started/introduction.mdx rename to website/versioned_docs/version-0.18.0/getting-started/introduction.md index 112f5296367..4387935948d 100644 --- a/website/versioned_docs/version-0.18.0/getting-started/introduction.mdx +++ b/website/versioned_docs/version-0.18.0/getting-started/introduction.md @@ -32,7 +32,7 @@ It can bundle assets for your app and even ships with a Sass compiler. All of our examples are built with Trunk. -[Getting started with `trunk`](./project-setup/using-trunk.mdx) +[Getting started with `trunk`](./project-setup/using-trunk) ### [**`wasm-pack`**](https://rustwasm.github.io/docs/wasm-pack/) @@ -41,13 +41,13 @@ together with the [`wasm-pack-plugin`](https://github.com/wasm-tool/wasm-pack-pl The primary purpose of `wasm-pack` is building Wasm libraries for use in JavaScript. Because of this, it can only build libraries and doesn't provide useful tools like a development server or automatic rebuilds. -[Get started with `wasm-pack`](./project-setup/using-wasm-pack.mdx) +[Get started with `wasm-pack`](./project-setup/using-wasm-pack) ### [**`cargo-web`**](https://github.com/koute/cargo-web) This was the best preferred tool to use before the creation of `wasm-bindgen`. -[Getting started with `cargo web`](./project-setup/using-cargo-web.mdx) +[Getting started with `cargo web`](./project-setup/using-cargo-web) ### Comparison @@ -62,4 +62,4 @@ This was the best preferred tool to use before the creation of `wasm-bindgen`. | Supported Targets |
  • wasm32-unknown-unknown
|
  • wasm32-unknown-unknown
|
  • wasm32-unknown-unknown
  • wasm32-unknown-emscripten
  • asmjs-unknown-emscripten
| | `web-sys` | Compatible | Compatible | Incompatible | | `stdweb` | Incompatible | Compatible | Compatible | -| Example Usage | [Sample app](./build-a-sample-app.mdx) | [Starter template](https://github.com/yewstack/yew-wasm-pack-minimal) | [Build script](https://www.github.com/yewstack/yew/tree/master/packages/yew-stdweb/examples) for `yew-stdweb` examples | +| Example Usage | [Sample app](./build-a-sample-app) | [Starter template](https://github.com/yewstack/yew-wasm-pack-minimal) | [Build script](https://www.github.com/yewstack/yew/tree/master/packages/yew-stdweb/examples) for `yew-stdweb` examples | diff --git a/website/versioned_docs/version-0.18.0/getting-started/project-setup/using-cargo-web.mdx b/website/versioned_docs/version-0.18.0/getting-started/project-setup/using-cargo-web.md similarity index 100% rename from website/versioned_docs/version-0.18.0/getting-started/project-setup/using-cargo-web.mdx rename to website/versioned_docs/version-0.18.0/getting-started/project-setup/using-cargo-web.md diff --git a/website/versioned_docs/version-0.18.0/getting-started/project-setup/using-trunk.mdx b/website/versioned_docs/version-0.18.0/getting-started/project-setup/using-trunk.md similarity index 91% rename from website/versioned_docs/version-0.18.0/getting-started/project-setup/using-trunk.mdx rename to website/versioned_docs/version-0.18.0/getting-started/project-setup/using-trunk.md index 5de6ed3b34c..9f2ffe6b38a 100644 --- a/website/versioned_docs/version-0.18.0/getting-started/project-setup/using-trunk.mdx +++ b/website/versioned_docs/version-0.18.0/getting-started/project-setup/using-trunk.md @@ -10,7 +10,7 @@ cargo install trunk wasm-bindgen-cli ## Usage -Check out ["Build a sample app"](../build-a-sample-app.mdx) for a short guide on how to build Yew apps with Trunk. +Check out ["Build a sample app"](../build-a-sample-app) for a short guide on how to build Yew apps with Trunk. You can also see it in action by looking at our [examples](https://github.com/yewstack/yew/tree/master/examples), all of which are built with Trunk. diff --git a/website/versioned_docs/version-0.18.0/getting-started/project-setup/using-wasm-pack.mdx b/website/versioned_docs/version-0.18.0/getting-started/project-setup/using-wasm-pack.md similarity index 100% rename from website/versioned_docs/version-0.18.0/getting-started/project-setup/using-wasm-pack.mdx rename to website/versioned_docs/version-0.18.0/getting-started/project-setup/using-wasm-pack.md diff --git a/website/versioned_docs/version-0.18.0/getting-started/starter-templates.mdx b/website/versioned_docs/version-0.18.0/getting-started/starter-templates.md similarity index 100% rename from website/versioned_docs/version-0.18.0/getting-started/starter-templates.mdx rename to website/versioned_docs/version-0.18.0/getting-started/starter-templates.md diff --git a/website/versioned_docs/version-0.18.0/more/css.mdx b/website/versioned_docs/version-0.18.0/more/css.md similarity index 95% rename from website/versioned_docs/version-0.18.0/more/css.mdx rename to website/versioned_docs/version-0.18.0/more/css.md index 79b885148db..09c7f290b47 100644 --- a/website/versioned_docs/version-0.18.0/more/css.mdx +++ b/website/versioned_docs/version-0.18.0/more/css.md @@ -23,5 +23,5 @@ projects. A few are given below: :::important contribute If you're developing a project adding styles to Yew please submit a PR adding yourself to this list! -[Link to the file containing the list](https://github.com/yewstack/yew/blob/master/website/docs/more/css.mdx). +[Link to the file containing the list](https://github.com/yewstack/yew/blob/master/website/docs/more/css). ::: diff --git a/website/versioned_docs/version-0.18.0/more/debugging.mdx b/website/versioned_docs/version-0.18.0/more/debugging.md similarity index 100% rename from website/versioned_docs/version-0.18.0/more/debugging.mdx rename to website/versioned_docs/version-0.18.0/more/debugging.md diff --git a/website/versioned_docs/version-0.18.0/more/external-libs.mdx b/website/versioned_docs/version-0.18.0/more/external-libs.md similarity index 97% rename from website/versioned_docs/version-0.18.0/more/external-libs.mdx rename to website/versioned_docs/version-0.18.0/more/external-libs.md index ed3083aa47a..15c059d7c0f 100644 --- a/website/versioned_docs/version-0.18.0/more/external-libs.mdx +++ b/website/versioned_docs/version-0.18.0/more/external-libs.md @@ -8,7 +8,7 @@ description: "Libraries that can help with Yew development" Yewtil is a collection of common utilities that help you build applications using Yew. It includes: * NeqAssign - This is described in more detail in the section on -[optimizations and best practices](../advanced-topics/optimizations.mdx) and ensures that identical +[optimizations and best practices](../advanced-topics/optimizations) and ensures that identical sets of props don't cause a component to re-render. * PureComponents - Components that don't update any of their state. Using NeqAssign under the hood, they act as memoized diff --git a/website/versioned_docs/version-0.18.0/more/roadmap.mdx b/website/versioned_docs/version-0.18.0/more/roadmap.md similarity index 100% rename from website/versioned_docs/version-0.18.0/more/roadmap.mdx rename to website/versioned_docs/version-0.18.0/more/roadmap.md diff --git a/website/versioned_docs/version-0.18.0/more/testing.mdx b/website/versioned_docs/version-0.18.0/more/testing.md similarity index 100% rename from website/versioned_docs/version-0.18.0/more/testing.mdx rename to website/versioned_docs/version-0.18.0/more/testing.md diff --git a/website/versioned_docs/version-0.19.0/advanced-topics/how-it-works.mdx b/website/versioned_docs/version-0.19.0/advanced-topics/how-it-works.md similarity index 100% rename from website/versioned_docs/version-0.19.0/advanced-topics/how-it-works.mdx rename to website/versioned_docs/version-0.19.0/advanced-topics/how-it-works.md diff --git a/website/versioned_docs/version-0.19.0/advanced-topics/optimizations.mdx b/website/versioned_docs/version-0.19.0/advanced-topics/optimizations.md similarity index 100% rename from website/versioned_docs/version-0.19.0/advanced-topics/optimizations.mdx rename to website/versioned_docs/version-0.19.0/advanced-topics/optimizations.md diff --git a/website/versioned_docs/version-0.19.0/advanced-topics/portals.mdx b/website/versioned_docs/version-0.19.0/advanced-topics/portals.md similarity index 100% rename from website/versioned_docs/version-0.19.0/advanced-topics/portals.mdx rename to website/versioned_docs/version-0.19.0/advanced-topics/portals.md diff --git a/website/versioned_docs/version-0.19.0/concepts/agents.mdx b/website/versioned_docs/version-0.19.0/concepts/agents.md similarity index 100% rename from website/versioned_docs/version-0.19.0/concepts/agents.mdx rename to website/versioned_docs/version-0.19.0/concepts/agents.md diff --git a/website/versioned_docs/version-0.19.0/concepts/components/callbacks.mdx b/website/versioned_docs/version-0.19.0/concepts/components/callbacks.md similarity index 100% rename from website/versioned_docs/version-0.19.0/concepts/components/callbacks.mdx rename to website/versioned_docs/version-0.19.0/concepts/components/callbacks.md diff --git a/website/versioned_docs/version-0.19.0/concepts/components/children.mdx b/website/versioned_docs/version-0.19.0/concepts/components/children.md similarity index 95% rename from website/versioned_docs/version-0.19.0/concepts/components/children.mdx rename to website/versioned_docs/version-0.19.0/concepts/components/children.md index 4bdb93f202d..50086215acc 100644 --- a/website/versioned_docs/version-0.19.0/concepts/components/children.mdx +++ b/website/versioned_docs/version-0.19.0/concepts/components/children.md @@ -250,3 +250,8 @@ pub fn render_page(with_sidebar: bool) -> Html { } } ``` + +:::note Extra Braces Required +`sidebar = {{html_nested!{...}}}` appears to require one extra set of braces. +This is unintuitive, and we will fix the behavior in a later release. [related issue](https://github.com/yewstack/yew/issues/2267) +::: \ No newline at end of file diff --git a/website/versioned_docs/version-0.19.0/concepts/components/introduction.mdx b/website/versioned_docs/version-0.19.0/concepts/components/introduction.md similarity index 100% rename from website/versioned_docs/version-0.19.0/concepts/components/introduction.mdx rename to website/versioned_docs/version-0.19.0/concepts/components/introduction.md diff --git a/website/versioned_docs/version-0.19.0/concepts/components/properties.mdx b/website/versioned_docs/version-0.19.0/concepts/components/properties.md similarity index 100% rename from website/versioned_docs/version-0.19.0/concepts/components/properties.mdx rename to website/versioned_docs/version-0.19.0/concepts/components/properties.md diff --git a/website/versioned_docs/version-0.19.0/concepts/components/refs.mdx b/website/versioned_docs/version-0.19.0/concepts/components/refs.md similarity index 100% rename from website/versioned_docs/version-0.19.0/concepts/components/refs.mdx rename to website/versioned_docs/version-0.19.0/concepts/components/refs.md diff --git a/website/versioned_docs/version-0.19.0/concepts/components/scope.mdx b/website/versioned_docs/version-0.19.0/concepts/components/scope.md similarity index 100% rename from website/versioned_docs/version-0.19.0/concepts/components/scope.mdx rename to website/versioned_docs/version-0.19.0/concepts/components/scope.md diff --git a/website/versioned_docs/version-0.19.0/concepts/contexts.mdx b/website/versioned_docs/version-0.19.0/concepts/contexts.md similarity index 99% rename from website/versioned_docs/version-0.19.0/concepts/contexts.mdx rename to website/versioned_docs/version-0.19.0/concepts/contexts.md index bf2234cf7b6..97786eb56a8 100644 --- a/website/versioned_docs/version-0.19.0/concepts/contexts.mdx +++ b/website/versioned_docs/version-0.19.0/concepts/contexts.md @@ -146,4 +146,4 @@ impl Component for ContextDemo { #### Function components `use_context` hook is used to consume contexts in function components. -See [docs for use_context](function-components/pre-defined-hooks.mdx#use_context) to learn more. +See [docs for use_context](function-components/pre-defined-hooks#use_context) to learn more. diff --git a/website/versioned_docs/version-0.19.0/concepts/function-components/attribute.mdx b/website/versioned_docs/version-0.19.0/concepts/function-components/attribute.md similarity index 100% rename from website/versioned_docs/version-0.19.0/concepts/function-components/attribute.mdx rename to website/versioned_docs/version-0.19.0/concepts/function-components/attribute.md diff --git a/website/versioned_docs/version-0.19.0/concepts/function-components/custom-hooks.mdx b/website/versioned_docs/version-0.19.0/concepts/function-components/custom-hooks.md similarity index 100% rename from website/versioned_docs/version-0.19.0/concepts/function-components/custom-hooks.mdx rename to website/versioned_docs/version-0.19.0/concepts/function-components/custom-hooks.md diff --git a/website/versioned_docs/version-0.19.0/concepts/function-components/introduction.mdx b/website/versioned_docs/version-0.19.0/concepts/function-components/introduction.md similarity index 71% rename from website/versioned_docs/version-0.19.0/concepts/function-components/introduction.mdx rename to website/versioned_docs/version-0.19.0/concepts/function-components/introduction.md index 05d14fcd5af..edf26c854f3 100644 --- a/website/versioned_docs/version-0.19.0/concepts/function-components/introduction.mdx +++ b/website/versioned_docs/version-0.19.0/concepts/function-components/introduction.md @@ -13,7 +13,7 @@ implement the `Component` trait. ## Creating function components -The easiest way to create a function component is to add the [`#[function_component]`](./../function-components/attribute.mdx) attribute to a function. +The easiest way to create a function component is to add the [`#[function_component]`](./../function-components/attribute) attribute to a function. ```rust use yew::{function_component, html}; @@ -43,21 +43,21 @@ actions. Yew comes with a few pre-defined Hooks. You can also create your own. #### Pre-defined Hooks Yew comes with the following predefined Hooks: -- [`use_state`](./../function-components/pre-defined-hooks.mdx#use_state) -- [`use_state_eq`](./../function-components/pre-defined-hooks.mdx#use_state_eq) -- [`use_ref`](./../function-components/pre-defined-hooks.mdx#use_ref) -- [`use_mut_ref`](./../function-components/pre-defined-hooks.mdx#use_mut_ref) -- [`use_node_ref`](./../function-components/pre-defined-hooks.mdx#use_node_ref) -- [`use_reducer`](./../function-components/pre-defined-hooks.mdx#use_reducer) -- [`use_reducer_eq`](./../function-components/pre-defined-hooks.mdx#use_reducer_eq) -- [`use_effect`](./../function-components/pre-defined-hooks.mdx#use_effect) -- [`use_effect_with_deps`](./../function-components/pre-defined-hooks.mdx#use_effect_with_deps) -- [`use_context`](./../function-components/pre-defined-hooks.mdx#use_context) +- [`use_state`](./../function-components/pre-defined-hooks#use_state) +- [`use_state_eq`](./../function-components/pre-defined-hooks#use_state_eq) +- [`use_ref`](./../function-components/pre-defined-hooks#use_ref) +- [`use_mut_ref`](./../function-components/pre-defined-hooks#use_mut_ref) +- [`use_node_ref`](./../function-components/pre-defined-hooks#use_node_ref) +- [`use_reducer`](./../function-components/pre-defined-hooks#use_reducer) +- [`use_reducer_eq`](./../function-components/pre-defined-hooks#use_reducer_eq) +- [`use_effect`](./../function-components/pre-defined-hooks#use_effect) +- [`use_effect_with_deps`](./../function-components/pre-defined-hooks#use_effect_with_deps) +- [`use_context`](./../function-components/pre-defined-hooks#use_context) #### Custom Hooks There are cases where you want to define your own Hooks for reasons. Yew allows you to define your own Hooks which lets you extract your potentially stateful logic from the component into reusable functions. -See the [Defining custom hooks](./../function-components/custom-hooks.mdx#defining-custom-hooks) section for more information. +See the [Defining custom hooks](./../function-components/custom-hooks#defining-custom-hooks) section for more information. ## Further reading diff --git a/website/versioned_docs/version-0.19.0/concepts/function-components/pre-defined-hooks.mdx b/website/versioned_docs/version-0.19.0/concepts/function-components/pre-defined-hooks.md similarity index 99% rename from website/versioned_docs/version-0.19.0/concepts/function-components/pre-defined-hooks.mdx rename to website/versioned_docs/version-0.19.0/concepts/function-components/pre-defined-hooks.md index 2703fcf28c8..4274aa5f77c 100644 --- a/website/versioned_docs/version-0.19.0/concepts/function-components/pre-defined-hooks.mdx +++ b/website/versioned_docs/version-0.19.0/concepts/function-components/pre-defined-hooks.md @@ -352,7 +352,7 @@ use_effect_with_deps( ## `use_context` -`use_context` is used for consuming [contexts](../contexts.mdx) in function components. +`use_context` is used for consuming [contexts](../contexts) in function components. ### Example diff --git a/website/versioned_docs/version-0.19.0/concepts/html/classes.mdx b/website/versioned_docs/version-0.19.0/concepts/html/classes.md similarity index 100% rename from website/versioned_docs/version-0.19.0/concepts/html/classes.mdx rename to website/versioned_docs/version-0.19.0/concepts/html/classes.md diff --git a/website/versioned_docs/version-0.19.0/concepts/html/components.mdx b/website/versioned_docs/version-0.19.0/concepts/html/components.md similarity index 100% rename from website/versioned_docs/version-0.19.0/concepts/html/components.mdx rename to website/versioned_docs/version-0.19.0/concepts/html/components.md diff --git a/website/versioned_docs/version-0.19.0/concepts/html/elements.mdx b/website/versioned_docs/version-0.19.0/concepts/html/elements.md similarity index 100% rename from website/versioned_docs/version-0.19.0/concepts/html/elements.mdx rename to website/versioned_docs/version-0.19.0/concepts/html/elements.md diff --git a/website/versioned_docs/version-0.19.0/concepts/html/events.mdx b/website/versioned_docs/version-0.19.0/concepts/html/events.md similarity index 99% rename from website/versioned_docs/version-0.19.0/concepts/html/events.mdx rename to website/versioned_docs/version-0.19.0/concepts/html/events.md index 928319afb7e..cd683281e8c 100644 --- a/website/versioned_docs/version-0.19.0/concepts/html/events.mdx +++ b/website/versioned_docs/version-0.19.0/concepts/html/events.md @@ -8,7 +8,7 @@ Yew integrates with the [`web-sys`](https://rustwasm.github.io/wasm-bindgen/api/ uses the events from that crate. The [table below](#event-types) lists all of the `web-sys` events that are accepted in the `html!` macro. -You can still add a [`Callback`](../components/callbacks.mdx) for an event that is not listed in the table +You can still add a [`Callback`](../components/callbacks) for an event that is not listed in the table below, see [Manual event listener](#manual-event-listener). ## Event Types @@ -365,7 +365,7 @@ does the cast on the target of the event. `TargetCast::target_unchecked_into` is ### Using `NodeRef` -[`NodeRef`](../components/refs.mdx) can be used instead of querying the event given to a `Callback`. +[`NodeRef`](../components/refs) can be used instead of querying the event given to a `Callback`. ```rust //highlight-start diff --git a/website/versioned_docs/version-0.19.0/concepts/html/fragments.mdx b/website/versioned_docs/version-0.19.0/concepts/html/fragments.md similarity index 100% rename from website/versioned_docs/version-0.19.0/concepts/html/fragments.mdx rename to website/versioned_docs/version-0.19.0/concepts/html/fragments.md diff --git a/website/versioned_docs/version-0.19.0/concepts/html/introduction.mdx b/website/versioned_docs/version-0.19.0/concepts/html/introduction.md similarity index 99% rename from website/versioned_docs/version-0.19.0/concepts/html/introduction.mdx rename to website/versioned_docs/version-0.19.0/concepts/html/introduction.md index 02abfb98a78..0fe05024fdc 100644 --- a/website/versioned_docs/version-0.19.0/concepts/html/introduction.mdx +++ b/website/versioned_docs/version-0.19.0/concepts/html/introduction.md @@ -13,7 +13,7 @@ The `html!` macro allows you to write HTML and SVG code declaratively. It is sim **Important notes** 1. The `html!` macro only accepts one root html node \(you can counteract this by - [using fragments or iterators](./../html/lists.mdx)\) + [using fragments or iterators](./../html/lists)\) 2. An empty `html! {}` invocation is valid and will not render anything 3. Literals must always be quoted and wrapped in braces: `html! { "Hello, World" }` diff --git a/website/versioned_docs/version-0.19.0/concepts/html/lists.mdx b/website/versioned_docs/version-0.19.0/concepts/html/lists.md similarity index 100% rename from website/versioned_docs/version-0.19.0/concepts/html/lists.mdx rename to website/versioned_docs/version-0.19.0/concepts/html/lists.md diff --git a/website/versioned_docs/version-0.19.0/concepts/html/literals-and-expressions.mdx b/website/versioned_docs/version-0.19.0/concepts/html/literals-and-expressions.md similarity index 100% rename from website/versioned_docs/version-0.19.0/concepts/html/literals-and-expressions.mdx rename to website/versioned_docs/version-0.19.0/concepts/html/literals-and-expressions.md diff --git a/website/versioned_docs/version-0.19.0/concepts/router.mdx b/website/versioned_docs/version-0.19.0/concepts/router.md similarity index 100% rename from website/versioned_docs/version-0.19.0/concepts/router.mdx rename to website/versioned_docs/version-0.19.0/concepts/router.md 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.md similarity index 100% rename from website/versioned_docs/version-0.19.0/concepts/wasm-bindgen/introduction.mdx rename to website/versioned_docs/version-0.19.0/concepts/wasm-bindgen/introduction.md diff --git a/website/versioned_docs/version-0.19.0/concepts/wasm-bindgen/web-sys.mdx b/website/versioned_docs/version-0.19.0/concepts/wasm-bindgen/web-sys.md similarity index 100% rename from website/versioned_docs/version-0.19.0/concepts/wasm-bindgen/web-sys.mdx rename to website/versioned_docs/version-0.19.0/concepts/wasm-bindgen/web-sys.md diff --git a/website/versioned_docs/version-0.19.0/getting-started/build-a-sample-app.mdx b/website/versioned_docs/version-0.19.0/getting-started/build-a-sample-app.md similarity index 98% rename from website/versioned_docs/version-0.19.0/getting-started/build-a-sample-app.mdx rename to website/versioned_docs/version-0.19.0/getting-started/build-a-sample-app.md index aae1d8b50b3..8acea64b785 100644 --- a/website/versioned_docs/version-0.19.0/getting-started/build-a-sample-app.mdx +++ b/website/versioned_docs/version-0.19.0/getting-started/build-a-sample-app.md @@ -130,4 +130,4 @@ Trunk will helpfully rebuild your application if you modify any of its files. You have now successfully setup your Yew development environment, and built your first web application. -Experiment with this application and review the [examples](./examples.mdx) to further your learning. +Experiment with this application and review the [examples](./examples) to further your learning. diff --git a/website/versioned_docs/version-0.19.0/getting-started/examples.mdx b/website/versioned_docs/version-0.19.0/getting-started/examples.md similarity index 100% rename from website/versioned_docs/version-0.19.0/getting-started/examples.mdx rename to website/versioned_docs/version-0.19.0/getting-started/examples.md diff --git a/website/versioned_docs/version-0.19.0/getting-started/introduction.mdx b/website/versioned_docs/version-0.19.0/getting-started/introduction.md similarity index 91% rename from website/versioned_docs/version-0.19.0/getting-started/introduction.mdx rename to website/versioned_docs/version-0.19.0/getting-started/introduction.md index 8dfe7ae037d..35bc467cc60 100644 --- a/website/versioned_docs/version-0.19.0/getting-started/introduction.mdx +++ b/website/versioned_docs/version-0.19.0/getting-started/introduction.md @@ -29,7 +29,7 @@ rustup target add wasm32-unknown-unknown ## Install Trunk Trunk is the recommended tool for managing deployment and packaging, and will be used throughout the documentation and examples. -See [Wasm Build Tools](./../more/wasm-build-tools.mdx) for more information on packaging and alternatives. +See [Wasm Build Tools](./../more/wasm-build-tools) for more information on packaging and alternatives. ```shell # note that this might take a while to install, because it compiles everything from scratch @@ -40,4 +40,4 @@ cargo install trunk ## Summary -Now that you have all the tools needed, we can [build a sample application](./build-a-sample-app.mdx). +Now that you have all the tools needed, we can [build a sample application](./build-a-sample-app). diff --git a/website/versioned_docs/version-0.19.0/getting-started/project-setup/using-trunk.mdx b/website/versioned_docs/version-0.19.0/getting-started/project-setup/using-trunk.md similarity index 91% rename from website/versioned_docs/version-0.19.0/getting-started/project-setup/using-trunk.mdx rename to website/versioned_docs/version-0.19.0/getting-started/project-setup/using-trunk.md index 25da4f82d8d..2362d16ce22 100644 --- a/website/versioned_docs/version-0.19.0/getting-started/project-setup/using-trunk.mdx +++ b/website/versioned_docs/version-0.19.0/getting-started/project-setup/using-trunk.md @@ -11,7 +11,7 @@ cargo install wasm-bindgen-cli ## Usage -Check out ["Build a sample app"](../build-a-sample-app.mdx) for a short guide on how to build Yew apps with Trunk. +Check out ["Build a sample app"](../build-a-sample-app) for a short guide on how to build Yew apps with Trunk. You can also see it in action by looking at our [examples](https://github.com/yewstack/yew/tree/master/examples), all of which are built with Trunk. diff --git a/website/versioned_docs/version-0.19.0/getting-started/project-setup/using-wasm-pack.mdx b/website/versioned_docs/version-0.19.0/getting-started/project-setup/using-wasm-pack.md similarity index 100% rename from website/versioned_docs/version-0.19.0/getting-started/project-setup/using-wasm-pack.mdx rename to website/versioned_docs/version-0.19.0/getting-started/project-setup/using-wasm-pack.md diff --git a/website/versioned_docs/version-0.19.0/getting-started/starter-templates.mdx b/website/versioned_docs/version-0.19.0/getting-started/starter-templates.md similarity index 100% rename from website/versioned_docs/version-0.19.0/getting-started/starter-templates.mdx rename to website/versioned_docs/version-0.19.0/getting-started/starter-templates.md diff --git a/website/versioned_docs/version-0.19.0/migration-guides/yew-agent/from-0_0_0-to-0_1_0.mdx b/website/versioned_docs/version-0.19.0/migration-guides/yew-agent/from-0_0_0-to-0_1_0.md similarity index 100% rename from website/versioned_docs/version-0.19.0/migration-guides/yew-agent/from-0_0_0-to-0_1_0.mdx rename to website/versioned_docs/version-0.19.0/migration-guides/yew-agent/from-0_0_0-to-0_1_0.md diff --git a/website/versioned_docs/version-0.19.0/migration-guides/yew-router/from-0_15_0-to-0_16_0.mdx b/website/versioned_docs/version-0.19.0/migration-guides/yew-router/from-0_15_0-to-0_16_0.md similarity index 100% rename from website/versioned_docs/version-0.19.0/migration-guides/yew-router/from-0_15_0-to-0_16_0.mdx rename to website/versioned_docs/version-0.19.0/migration-guides/yew-router/from-0_15_0-to-0_16_0.md diff --git a/website/versioned_docs/version-0.19.0/migration-guides/yew/from-0_18_0-to-0_19_0.mdx b/website/versioned_docs/version-0.19.0/migration-guides/yew/from-0_18_0-to-0_19_0.md similarity index 100% rename from website/versioned_docs/version-0.19.0/migration-guides/yew/from-0_18_0-to-0_19_0.mdx rename to website/versioned_docs/version-0.19.0/migration-guides/yew/from-0_18_0-to-0_19_0.md diff --git a/website/versioned_docs/version-0.19.0/more/css.mdx b/website/versioned_docs/version-0.19.0/more/css.md similarity index 96% rename from website/versioned_docs/version-0.19.0/more/css.mdx rename to website/versioned_docs/version-0.19.0/more/css.md index 5c83a688c77..0dc6c23125e 100644 --- a/website/versioned_docs/version-0.19.0/more/css.mdx +++ b/website/versioned_docs/version-0.19.0/more/css.md @@ -29,5 +29,5 @@ projects. A few are given below: :::important contribute If you're developing a project adding styles to Yew please submit a PR adding yourself to this list! -[Link to the file containing the list](https://github.com/yewstack/yew/blob/master/website/docs/more/css.mdx). +[Link to the file containing the list](https://github.com/yewstack/yew/blob/master/website/docs/more/css). ::: diff --git a/website/versioned_docs/version-0.19.0/more/debugging.mdx b/website/versioned_docs/version-0.19.0/more/debugging.md similarity index 100% rename from website/versioned_docs/version-0.19.0/more/debugging.mdx rename to website/versioned_docs/version-0.19.0/more/debugging.md diff --git a/website/versioned_docs/version-0.19.0/more/development-tips.mdx b/website/versioned_docs/version-0.19.0/more/development-tips.md similarity index 100% rename from website/versioned_docs/version-0.19.0/more/development-tips.mdx rename to website/versioned_docs/version-0.19.0/more/development-tips.md diff --git a/website/versioned_docs/version-0.19.0/more/external-libs.mdx b/website/versioned_docs/version-0.19.0/more/external-libs.md similarity index 100% rename from website/versioned_docs/version-0.19.0/more/external-libs.mdx rename to website/versioned_docs/version-0.19.0/more/external-libs.md diff --git a/website/versioned_docs/version-0.19.0/more/roadmap.mdx b/website/versioned_docs/version-0.19.0/more/roadmap.md similarity index 100% rename from website/versioned_docs/version-0.19.0/more/roadmap.mdx rename to website/versioned_docs/version-0.19.0/more/roadmap.md diff --git a/website/versioned_docs/version-0.19.0/more/testing.mdx b/website/versioned_docs/version-0.19.0/more/testing.md similarity index 100% rename from website/versioned_docs/version-0.19.0/more/testing.mdx rename to website/versioned_docs/version-0.19.0/more/testing.md diff --git a/website/versioned_docs/version-0.19.0/more/wasm-build-tools.mdx b/website/versioned_docs/version-0.19.0/more/wasm-build-tools.md similarity index 94% rename from website/versioned_docs/version-0.19.0/more/wasm-build-tools.mdx rename to website/versioned_docs/version-0.19.0/more/wasm-build-tools.md index 9750d7bfc74..740e9d5a176 100644 --- a/website/versioned_docs/version-0.19.0/more/wasm-build-tools.mdx +++ b/website/versioned_docs/version-0.19.0/more/wasm-build-tools.md @@ -20,7 +20,7 @@ It can bundle assets for your app and even ships with a Sass compiler. All of our examples are built with Trunk. -[Getting started with `trunk`](../getting-started/project-setup/using-trunk.mdx) +[Getting started with `trunk`](../getting-started/project-setup/using-trunk) ### [**`wasm-pack`**](https://rustwasm.github.io/docs/wasm-pack/) @@ -29,7 +29,7 @@ together with the [`wasm-pack-plugin`](https://github.com/wasm-tool/wasm-pack-pl The primary purpose of `wasm-pack` is building Wasm libraries for use in JavaScript. Because of this, it can only build libraries and doesn't provide useful tools like a development server or automatic rebuilds. -[Get started with `wasm-pack`](../getting-started/project-setup/using-wasm-pack.mdx) +[Get started with `wasm-pack`](../getting-started/project-setup/using-wasm-pack) ### Comparison @@ -42,4 +42,4 @@ Because of this, it can only build libraries and doesn't provide useful tools li | Asset handling | Supported | Only with webpack plugin | | Headless Browser Testing | [In Progress](https://github.com/thedodd/trunk/issues/20) | [Supported](https://rustwasm.github.io/wasm-pack/book/commands/test.html) | | Supported Targets |
  • wasm32-unknown-unknown
|
  • wasm32-unknown-unknown
| -| Example Usage | [Sample app](./../getting-started/build-a-sample-app.mdx) | [Starter template](https://github.com/yewstack/yew-wasm-pack-minimal) | +| Example Usage | [Sample app](./../getting-started/build-a-sample-app) | [Starter template](https://github.com/yewstack/yew-wasm-pack-minimal) | diff --git a/website/versioned_docs/version-0.19.0/tutorial.mdx b/website/versioned_docs/version-0.19.0/tutorial.md similarity index 100% rename from website/versioned_docs/version-0.19.0/tutorial.mdx rename to website/versioned_docs/version-0.19.0/tutorial.md