Fix outdated 0.13 links in documentation

This commit is contained in:
Héctor Ramón Jiménez 2025-12-05 22:52:06 +01:00
parent fd891f0e3f
commit 92d08bcc10
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
7 changed files with 10 additions and 22 deletions

View file

@ -30,10 +30,10 @@ use crate::{Clipboard, Event, Length, Rectangle, Shell, Size, Vector};
/// - [`geometry`], a custom widget showcasing how to draw geometry with the
/// `Mesh2D` primitive in [`iced_wgpu`].
///
/// [examples]: https://github.com/iced-rs/iced/tree/0.13/examples
/// [`custom_widget`]: https://github.com/iced-rs/iced/tree/0.13/examples/custom_widget
/// [`geometry`]: https://github.com/iced-rs/iced/tree/0.13/examples/geometry
/// [`iced_wgpu`]: https://github.com/iced-rs/iced/tree/0.13/wgpu
/// [examples]: https://github.com/iced-rs/iced/tree/master/examples
/// [`custom_widget`]: https://github.com/iced-rs/iced/tree/master/examples/custom_widget
/// [`geometry`]: https://github.com/iced-rs/iced/tree/master/examples/geometry
/// [`iced_wgpu`]: https://github.com/iced-rs/iced/tree/master/wgpu
pub trait Widget<Message, Theme, Renderer>
where
Renderer: crate::Renderer,

View file

@ -199,7 +199,7 @@ impl<T> Subscription<T> {
/// Check out the [`websocket`] example, which showcases this pattern to maintain a `WebSocket`
/// connection open.
///
/// [`websocket`]: https://github.com/iced-rs/iced/tree/0.13/examples/websocket
/// [`websocket`]: https://github.com/iced-rs/iced/tree/master/examples/websocket
pub fn run<S>(builder: fn() -> S) -> Self
where
S: Stream<Item = T> + MaybeSend + 'static,
@ -454,18 +454,6 @@ impl<T> std::fmt::Debug for Subscription<T> {
/// A [`Recipe`] is the internal definition of a [`Subscription`]. It is used
/// by runtimes to run and identify subscriptions. You can use it to create your
/// own!
///
/// # Examples
/// The repository has a couple of [examples] that use a custom [`Recipe`]:
///
/// - [`download_progress`], a basic application that asynchronously downloads
/// a dummy file of 100 MB and tracks the download progress.
/// - [`stopwatch`], a watch with start/stop and reset buttons showcasing how
/// to listen to time.
///
/// [examples]: https://github.com/iced-rs/iced/tree/0.13/examples
/// [`download_progress`]: https://github.com/iced-rs/iced/tree/0.13/examples/download_progress
/// [`stopwatch`]: https://github.com/iced-rs/iced/tree/0.13/examples/stopwatch
pub trait Recipe {
/// The events that will be produced by a [`Subscription`] with this
/// [`Recipe`].

View file

@ -4,7 +4,7 @@
//!
//! `iced_runtime` takes [`iced_core`] and builds a native runtime on top of it.
//!
//! [`iced_core`]: https://github.com/iced-rs/iced/tree/0.13/core
//! [`iced_core`]: https://github.com/iced-rs/iced/tree/master/core
#![doc(
html_logo_url = "https://raw.githubusercontent.com/iced-rs/iced/9ab6923e943f784985e9ef9ca28b10278297225d/docs/logo.svg"
)]

View file

@ -21,7 +21,7 @@ use crate::core::{
/// The [`integration`] example uses a [`UserInterface`] to integrate Iced in an
/// existing graphical application.
///
/// [`integration`]: https://github.com/iced-rs/iced/tree/0.13/examples/integration
/// [`integration`]: https://github.com/iced-rs/iced/tree/master/examples/integration
pub struct UserInterface<'a, Message, Theme, Renderer> {
root: Element<'a, Message, Theme, Renderer>,
base: layout::Node,

View file

@ -52,7 +52,7 @@
//! The [`pane_grid` example] showcases how to use a [`PaneGrid`] with resizing,
//! drag and drop, and hotkey support.
//!
//! [`pane_grid` example]: https://github.com/iced-rs/iced/tree/0.13/examples/pane_grid
//! [`pane_grid` example]: https://github.com/iced-rs/iced/tree/master/examples/pane_grid
mod axis;
mod configuration;
mod content;

View file

@ -1,7 +1,7 @@
//! Convert [`winit`] types into [`iced_runtime`] types, and viceversa.
//!
//! [`winit`]: https://github.com/rust-windowing/winit
//! [`iced_runtime`]: https://github.com/iced-rs/iced/tree/0.13/runtime
//! [`iced_runtime`]: https://github.com/iced-rs/iced/tree/master/runtime
use crate::core::input_method;
use crate::core::keyboard;
use crate::core::mouse;

View file

@ -11,7 +11,7 @@
//! Additionally, a [`conversion`] module is available for users that decide to
//! implement a custom event loop.
//!
//! [`iced_runtime`]: https://github.com/iced-rs/iced/tree/0.13/runtime
//! [`iced_runtime`]: https://github.com/iced-rs/iced/tree/master/runtime
//! [`winit`]: https://github.com/rust-windowing/winit
//! [`conversion`]: crate::conversion
#![doc(