doc fixes

This commit is contained in:
Maccesch 2024-09-02 14:25:56 +01:00
parent 2ae317dccf
commit db6676396c
4 changed files with 11 additions and 5 deletions

View file

@ -3,6 +3,11 @@
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [0.14.0-beta1] - 2024-09-02
Ported everything to Leptos 0.7
Some example don't run yet.
## [0.13.2] - 2024-09-02
### Fix 🍕

View file

@ -26,7 +26,7 @@ http1 = { version = "1", optional = true, package = "http" }
http0_2 = { version = "0.2", optional = true, package = "http" }
js-sys = "0.3"
lazy_static = "1"
leptos = { version = "0.7.0-beta" }
leptos = "0.7.0-beta"
leptos_axum = { optional = true, version = "0.7.0-beta" }
leptos_actix = { optional = true, version = "0.7.0-beta" }
leptos-spin = { version = "0.2", optional = true }

View file

@ -34,7 +34,7 @@ use leptos_use::{use_mouse, UseMouseReturn};
#[component]
fn Demo() -> impl IntoView {
let UseMouseReturn { x, y, .. } = use_mouse();
view! { cx,
{x} " x " {y}
}
@ -93,3 +93,4 @@ This will create the function file in the src directory, scaffold an example dir
| 0.4, 0.5, 0.6 | 0.4 |
| 0.7, 0.8, 0.9 | 0.5 |
| 0.10 0.13 | 0.6 |
| 0.14 | 0.7 |

View file

@ -8,10 +8,10 @@ def main():
with open("Cargo.toml", "r") as f:
cargo_text = f.read()
m = re.search(r'leptos = "([^"]+)"', cargo_text)
leptos_version = m.group(1)
m = re.search(r'leptos = "(\d+)\.(\d+)', cargo_text)
leptos_version = f"{m.group(1)}.{m.group(2)}"
m = re.search(r'version = "(\d+)\.(\d+)\.(\d+)"', cargo_text)
m = re.search(r'version = "(\d+)\.(\d+)\.(\d+)', cargo_text)
crate_version_short = f"{m.group(1)}.{m.group(2)}"
crate_version_long = f"{m.group(1)}.{m.group(2)}.{m.group(3)}"