diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile
index 842b761bd..a82a03cd7 100644
--- a/.devcontainer/Dockerfile
+++ b/.devcontainer/Dockerfile
@@ -4,7 +4,7 @@ FROM rustlang/rust:${VARIANT}
ENV DEBIAN_FRONTEND=noninteractive
# Install required system libraries and NPM
-# Reference: https://dioxuslabs.com/learn/0.6/contributing/#before-you-contribute
+# Reference: https://dioxuslabs.com/learn/0.7/beyond/contributing#before-you-contribute
RUN apt-get update -qq \
&& apt-get install -y -qq \
libgdk3.0-cil \
diff --git a/README.md b/README.md
index 893badd7b..4c4024540 100644
--- a/README.md
+++ b/README.md
@@ -49,7 +49,7 @@
| Examples |
- Guide
+ Tutorial | 中文 |
@@ -89,7 +89,7 @@ fn app() -> Element {
- Built-in featureful, type-safe, fullstack web framework
- Integrated bundler for deploying to the web, macOS, Linux, and Windows
- Subsecond Rust hot-patching and asset hot-reloading
-- And more! [Take a tour of Dioxus](https://dioxuslabs.com/learn/0.6/).
+- And more! [Take a tour of Dioxus](https://dioxuslabs.com/learn/0.7/).
## Instant hot-reloading
@@ -148,7 +148,7 @@ Dioxus is the fastest way to build native mobile apps with Rust. Simply run `dx
## Bundle for web, desktop, and mobile
-Simply run `dx bundle` and your app will be built and bundled with maximization optimizations. On the web, take advantage of [`.avif` generation, `.wasm` compression, minification](https://dioxuslabs.com/learn/0.6/guides/assets), and more. Build WebApps weighing [less than 50kb](https://github.com/ealmloff/tiny-dioxus/) and desktop/mobile apps less than 5mb.
+Simply run `dx bundle` and your app will be built and bundled with maximization optimizations. On the web, take advantage of [`.avif` generation, `.wasm` compression, minification](https://dioxuslabs.com/learn/0.7/tutorial/assets), and more. Build WebApps weighing [less than 50kb](https://github.com/ealmloff/tiny-dioxus/) and desktop/mobile apps less than 5mb.
@@ -157,7 +157,7 @@ Simply run `dx bundle` and your app will be built and bundled with maximization
## Fantastic documentation
-We've put a ton of effort into building clean, readable, and comprehensive documentation. All html elements and listeners are documented with MDN docs, and our Docs runs continuous integration with Dioxus itself to ensure that the docs are always up to date. Check out the [Dioxus website](https://dioxuslabs.com/learn/0.6/) for guides, references, recipes, and more. Fun fact: we use the Dioxus website as a testbed for new Dioxus features - [check it out!](https://github.com/dioxusLabs/docsite)
+We've put a ton of effort into building clean, readable, and comprehensive documentation. All html elements and listeners are documented with MDN docs, and our Docs runs continuous integration with Dioxus itself to ensure that the docs are always up to date. Check out the [Dioxus website](https://dioxuslabs.com/learn/0.7/) for guides, references, recipes, and more. Fun fact: we use the Dioxus website as a testbed for new Dioxus features - [check it out!](https://github.com/dioxusLabs/docsite)
@@ -257,7 +257,7 @@ cargo run --example
However, we encourage you to download the dioxus-cli to test out features like hot-reloading. To install the most recent binary CLI, you can use cargo binstall.
```sh
-cargo binstall dioxus-cli@0.7.0-rc.4 --force
+cargo binstall dioxus-cli@0.7.0 --force
```
If this CLI is out-of-date, you can install it directly from git
@@ -274,7 +274,7 @@ dx serve --example --platform web -- --no-default-features
## Contributing
-- Check out the website [section on contributing](https://dioxuslabs.com/learn/0.6/contributing).
+- Check out the website [section on contributing](https://dioxuslabs.com/learn/0.7/beyond/contributing).
- Report issues on our [issue tracker](https://github.com/dioxuslabs/dioxus/issues).
- [Join](https://discord.gg/XgGxMSkvUM) the discord and ask questions!
diff --git a/examples/10-integrations/tailwind/README.md b/examples/10-integrations/tailwind/README.md
index 6206f2845..ca7b4c1c5 100644
--- a/examples/10-integrations/tailwind/README.md
+++ b/examples/10-integrations/tailwind/README.md
@@ -4,6 +4,6 @@ This example shows how an app might be styled with TailwindCSS.
## Running
-Our [Tailwind](https://dioxuslabs.com/learn/0.6/cookbook/tailwind) guide explains how to setup and run Dioxus-Tailwind projects.
+Our [Tailwind](https://dioxuslabs.com/learn/0.7/guides/utilities/tailwind) guide explains how to setup and run Dioxus-Tailwind projects.
Note that in Dioxus 0.7, the Tailwind watcher is initialized automatically if a `tailwind.css` file is find in your app's root.
diff --git a/packages/autofmt/README.md b/packages/autofmt/README.md
index 4236eef15..2ddccd512 100644
--- a/packages/autofmt/README.md
+++ b/packages/autofmt/README.md
@@ -15,7 +15,7 @@
[discord-url]: https://discord.gg/XgGxMSkvUM
[Website](https://dioxuslabs.com) |
-[Guides](https://dioxuslabs.com/learn/0.6) |
+[Guides](https://dioxuslabs.com/learn/0.7/) |
[API Docs](https://docs.rs/dioxus-autofmt/latest/dioxus_autofmt) |
[Chat](https://discord.gg/XgGxMSkvUM)
diff --git a/packages/check/README.md b/packages/check/README.md
index e735e7d5c..244b1b257 100644
--- a/packages/check/README.md
+++ b/packages/check/README.md
@@ -15,13 +15,13 @@
[discord-url]: https://discord.gg/XgGxMSkvUM
[Website](https://dioxuslabs.com) |
-[Guides](https://dioxuslabs.com/learn/0.6) |
+[Guides](https://dioxuslabs.com/learn/0.7/) |
[API Docs](https://docs.rs/dioxus-check) |
[Chat](https://discord.gg/XgGxMSkvUM)
## Overview
-`dioxus-check` analyzes Dioxus source code and reports errors and warnings. Primarily, it enforces the [Rules of Hooks](https://dioxuslabs.com/learn/0.6/reference/hooks#rules-of-hooks).
+`dioxus-check` analyzes Dioxus source code and reports errors and warnings. Primarily, it enforces the [Rules of Hooks](https://dioxuslabs.com/learn/0.7/essentials/basics/hooks#rules-of-hooks).
## Contributing
diff --git a/packages/check/src/issues.rs b/packages/check/src/issues.rs
index bc33a9275..7e39d17ba 100644
--- a/packages/check/src/issues.rs
+++ b/packages/check/src/issues.rs
@@ -162,11 +162,11 @@ impl Display for IssueReport {
#[allow(clippy::enum_variant_names)] // we'll add non-hook ones in the future
/// Issues that might be found via static analysis of a Dioxus file.
pub enum Issue {
- ///
+ ///
HookInsideConditional(HookInfo, ConditionalInfo),
- ///
+ ///
HookInsideLoop(HookInfo, AnyLoopInfo),
- ///
+ ///
HookInsideClosure(HookInfo, ClosureInfo),
HookInsideAsync(HookInfo, AsyncInfo),
HookOutsideComponent(HookInfo),
diff --git a/packages/cli/src/cli/doctor.rs b/packages/cli/src/cli/doctor.rs
index 8008bbb52..db8c9ac93 100644
--- a/packages/cli/src/cli/doctor.rs
+++ b/packages/cli/src/cli/doctor.rs
@@ -252,7 +252,7 @@ impl Doctor {
{HINT_STYLE}{has_aarch64_apple_darwin}{HINT_STYLE:#} aarch64-apple-darwin {HINT_STYLE}(iOS){HINT_STYLE:#}
Get help: {LINK_STYLE}https://discord.gg/XgGxMSkvUM{LINK_STYLE:#}
-More info: {LINK_STYLE}https://dioxuslabs.com/learn/0.6/{LINK_STYLE:#}
+More info: {LINK_STYLE}https://dioxuslabs.com/learn/0.7/{LINK_STYLE:#}
"#
);
diff --git a/packages/config-macro/README.md b/packages/config-macro/README.md
index 39ca7e98d..d239e6674 100644
--- a/packages/config-macro/README.md
+++ b/packages/config-macro/README.md
@@ -15,7 +15,7 @@
[discord-url]: https://discord.gg/XgGxMSkvUM
[Website](https://dioxuslabs.com) |
-[Guide](https://dioxuslabs.com/learn/0.6) |
+[Guide](https://dioxuslabs.com/learn/0.7/) |
[API Docs](https://docs.rs/dioxus-config-macro/latest/dioxus_config_macro/) |
[Chat](https://discord.gg/XgGxMSkvUM)
diff --git a/packages/core-macro/README.md b/packages/core-macro/README.md
index 7a7d1639a..527cf0c95 100644
--- a/packages/core-macro/README.md
+++ b/packages/core-macro/README.md
@@ -15,7 +15,7 @@
[discord-url]: https://discord.gg/XgGxMSkvUM
[Website](https://dioxuslabs.com) |
-[Guides](https://dioxuslabs.com/learn/0.6) |
+[Guides](https://dioxuslabs.com/learn/0.7/) |
[API Docs](https://docs.rs/dioxus-core-macro/latest/dioxus_core_macro) |
[Chat](https://discord.gg/XgGxMSkvUM)
diff --git a/packages/core-macro/src/props/mod.rs b/packages/core-macro/src/props/mod.rs
index eb4463d58..31b62945c 100644
--- a/packages/core-macro/src/props/mod.rs
+++ b/packages/core-macro/src/props/mod.rs
@@ -1066,7 +1066,7 @@ Finally, call `.build()` to create the instance of `{name}`.
name: field_name, ..
} = field;
if *field_name == "key" {
- return Err(Error::new_spanned(field_name, "Naming a prop `key` is not allowed because the name can conflict with the built in key attribute. See https://dioxuslabs.com/learn/0.6/reference/dynamic_rendering#rendering-lists for more information about keys"));
+ return Err(Error::new_spanned(field_name, "Naming a prop `key` is not allowed because the name can conflict with the built in key attribute. See https://dioxuslabs.com/learn/0.7/essentials/ui/iteration for more information about keys"));
}
let StructInfo {
ref builder_name, ..
diff --git a/packages/core/README.md b/packages/core/README.md
index ae568c14d..ad265689d 100644
--- a/packages/core/README.md
+++ b/packages/core/README.md
@@ -80,7 +80,7 @@ fn main() {
## Contributing
-- Check out the website [section on contributing](https://dioxuslabs.com/learn/0.6/contributing).
+- Check out the website [section on contributing](https://dioxuslabs.com/learn/0.7/contributing).
- Report issues on our [issue tracker](https://github.com/dioxuslabs/dioxus/issues).
- [Join](https://discord.gg/XgGxMSkvUM) the discord and ask questions!
diff --git a/packages/desktop/Cargo.toml b/packages/desktop/Cargo.toml
index 4706e09b8..715c379f2 100644
--- a/packages/desktop/Cargo.toml
+++ b/packages/desktop/Cargo.toml
@@ -6,7 +6,7 @@ edition = "2021"
description = "WebView renderer for Dioxus"
license = "MIT OR Apache-2.0"
repository = "https://github.com/DioxusLabs/dioxus/"
-homepage = "https://dioxuslabs.com/learn/0.6/getting_started"
+homepage = "https://dioxuslabs.com/learn/0.7/getting_started"
keywords = ["dom", "ui", "gui", "react"]
rust-version = "1.76.0"
diff --git a/packages/desktop/README.md b/packages/desktop/README.md
index cebf39cbc..cd7aae6ae 100644
--- a/packages/desktop/README.md
+++ b/packages/desktop/README.md
@@ -15,7 +15,7 @@
[discord-url]: https://discord.gg/XgGxMSkvUM
[Website](https://dioxuslabs.com) |
-[Guides](https://dioxuslabs.com/learn/0.6) |
+[Guides](https://dioxuslabs.com/learn/0.7/) |
[API Docs](https://docs.rs/dioxus-desktop/latest/dioxus_desktop) |
[Chat](https://discord.gg/XgGxMSkvUM)
@@ -25,7 +25,7 @@
This requires that webview is installed on the target system. WebView is installed by default on macOS and iOS devices, but might not come preinstalled on Windows or Linux devices. To fix these issues, follow the [instructions in the guide](guide-url).
-[guide-url]: https://dioxuslabs.com/learn/0.6/getting_started
+[guide-url]: https://dioxuslabs.com/learn/0.7/getting_started
## Features
diff --git a/packages/desktop/src/readme.md b/packages/desktop/src/readme.md
index 2cd1809dd..a4cf9d4bf 100644
--- a/packages/desktop/src/readme.md
+++ b/packages/desktop/src/readme.md
@@ -47,4 +47,4 @@ To configure the webview, menubar, and other important desktop-specific features
## Future Steps
-Make sure to read the [Dioxus Guide](https://dioxuslabs.com/learn/0.6/) if you already haven't!
+Make sure to read the [Dioxus Guide](https://dioxuslabs.com/learn/0.7/) if you already haven't!
diff --git a/packages/dioxus/README.md b/packages/dioxus/README.md
index b0a8eec42..e0799642c 100644
--- a/packages/dioxus/README.md
+++ b/packages/dioxus/README.md
@@ -6,7 +6,7 @@
class="darkmode-image"
>
@@ -156,7 +156,7 @@ fn Header(title: String, color: String) -> Element {
}
```
-> You can read more about props in the [reference](https://dioxuslabs.com/learn/0.6/reference/component_props).
+> You can read more about props in the [reference](https://dioxuslabs.com/learn/0.7/essentials/ui/components).
## Hooks
@@ -176,7 +176,7 @@ fn App() -> Element {
}
```
-Hooks are sensitive to how they are used. To use hooks, you must abide by the ["rules of hooks"](https://dioxuslabs.com/learn/0.6/reference/hooks#rules-of-hooks):
+Hooks are sensitive to how they are used. To use hooks, you must abide by the ["rules of hooks"](https://dioxuslabs.com/learn/0.7/reference/hooks#rules-of-hooks):
- Hooks can only be called in the body of a component or another hook. Not inside of another expression like a loop, conditional or function call.
- Hooks should start with "use\_"
@@ -210,7 +210,7 @@ fn App() -> Element {
## Conclusion
-This overview doesn't cover everything. Make sure to check out the [tutorial](https://dioxuslabs.com/learn/0.6/guide) and [guides](https://dioxuslabs.com/learn/0.6/guides) on the official
+This overview doesn't cover everything. Make sure to check out the [tutorial](https://dioxuslabs.com/learn/0.7/tutorial) and [guides](https://dioxuslabs.com/learn/0.7/tutorial) on the official
website for more details.
Beyond this overview, Dioxus supports:
diff --git a/packages/dioxus/src/lib.rs b/packages/dioxus/src/lib.rs
index 9199e75ae..7c4f625c6 100644
--- a/packages/dioxus/src/lib.rs
+++ b/packages/dioxus/src/lib.rs
@@ -9,7 +9,7 @@
//! - `html`: (default) exports `dioxus-html` as the default elements to use in rsx
//! - `hooks`: (default) re-exports `dioxus-hooks`
//! - `hot-reload`: (default) enables hot rsx reloading in all renderers that support it
-//! - `router`: exports the [router](https://dioxuslabs.com/learn/0.6/router) and enables any router features for the current platform
+//! - `router`: exports the [router](https://dioxuslabs.com/learn/0.7/router) and enables any router features for the current platform
//! - `third-party-renderer`: Just disables warnings about no active platform when no renderers are enabled
//! - `logger`: Enable the default tracing subscriber for Dioxus apps
//!
diff --git a/packages/dx-wire-format/Cargo.toml b/packages/dx-wire-format/Cargo.toml
index 3342c2cb5..58fd9152f 100644
--- a/packages/dx-wire-format/Cargo.toml
+++ b/packages/dx-wire-format/Cargo.toml
@@ -7,7 +7,7 @@ authors = ["Jonathan Kelley"]
description = "Wire format for the Dioxus CLI"
license = "MIT OR Apache-2.0"
repository = "https://github.com/DioxusLabs/dioxus/"
-homepage = "https://dioxuslabs.com/learn/0.6/"
+homepage = "https://dioxuslabs.com/learn/0.7/"
keywords = ["dom", "ui", "gui", "react", "wasm"]
rust-version = "1.79.0"
diff --git a/packages/extension/README.md b/packages/extension/README.md
index def7ff232..f7e455083 100644
--- a/packages/extension/README.md
+++ b/packages/extension/README.md
@@ -33,11 +33,11 @@ Formats the current file as RSX.
This overview provides a brief introduction to Dioxus. For a more in-depth guide, make sure to check out:
-- [Getting Started](https://dioxuslabs.com/learn/0.6/getting_started)
-- [Book (0.6)](https://dioxuslabs.com/learn/0.6)
+- [Getting Started](https://dioxuslabs.com/learn/0.7/getting_started)
+- [Book (0.6)](https://dioxuslabs.com/learn/0.7/)
## Contributing
-- Check out the website [section on contributing](https://dioxuslabs.com/learn/0.6/contributing).
+- Check out the website [section on contributing](https://dioxuslabs.com/learn/0.7/contributing).
- Report issues on our [issue tracker](https://github.com/dioxuslabs/dioxus/issues).
- [Join](https://discord.gg/XgGxMSkvUM) the discord and ask questions!
diff --git a/packages/fullstack-server/README.md b/packages/fullstack-server/README.md
index 4ff42efa3..33217703a 100644
--- a/packages/fullstack-server/README.md
+++ b/packages/fullstack-server/README.md
@@ -15,7 +15,7 @@
[discord-url]: https://discord.gg/XgGxMSkvUM
[Website](https://dioxuslabs.com) |
-[Guides](https://dioxuslabs.com/learn/0.6/) |
+[Guides](https://dioxuslabs.com/learn/0.7/) |
[API Docs](https://docs.rs/dioxus-fullstack/latest/dioxus_fullstack/) |
[Chat](https://discord.gg/XgGxMSkvUM)
@@ -128,7 +128,7 @@ async fn get_meaning(of: String) -> ServerFnResult