From 356d347c63c8dcd7b5fe08498636851543004b90 Mon Sep 17 00:00:00 2001 From: Nathan Wilson <wilnathan@gmail.com> Date: Sat, 23 Apr 2022 18:42:17 -0400 Subject: [PATCH] Updated all document links to point to bevy 0.7. (#11) --- src/lens.rs | 44 ++++++++++++++++++++++---------------------- src/lib.rs | 12 ++++++------ src/plugin.rs | 10 +++++----- 3 files changed, 33 insertions(+), 33 deletions(-) diff --git a/src/lens.rs b/src/lens.rs index 934045e..2886589 100644 --- a/src/lens.rs +++ b/src/lens.rs @@ -30,9 +30,9 @@ //! - [`TransformRotateZLens`] //! - [`TransformRotateAxisLens`] //! -//! [`rotation`]: https://docs.rs/bevy/0.6.1/bevy/transform/components/struct.Transform.html#structfield.rotation -//! [`Transform`]: https://docs.rs/bevy/0.6.1/bevy/transform/components/struct.Transform.html -//! [`Quat::slerp()`]: https://docs.rs/bevy/0.6.1/bevy/math/struct.Quat.html#method.slerp +//! [`rotation`]: https://docs.rs/bevy/0.7.0/bevy/transform/components/struct.Transform.html#structfield.rotation +//! [`Transform`]: https://docs.rs/bevy/0.7.0/bevy/transform/components/struct.Transform.html +//! [`Quat::slerp()`]: https://docs.rs/bevy/0.7.0/bevy/math/struct.Quat.html#method.slerp use bevy::prelude::*; @@ -74,8 +74,8 @@ pub trait Lens<T> { /// A lens to manipulate the [`color`] field of a section of a [`Text`] component. /// -/// [`color`]: https://docs.rs/bevy/0.6.1/bevy/text/struct.TextStyle.html#structfield.color -/// [`Text`]: https://docs.rs/bevy/0.6.1/bevy/text/struct.Text.html +/// [`color`]: https://docs.rs/bevy/0.7.0/bevy/text/struct.TextStyle.html#structfield.color +/// [`Text`]: https://docs.rs/bevy/0.7.0/bevy/text/struct.Text.html #[cfg(feature = "bevy_ui")] #[derive(Debug, Copy, Clone, PartialEq)] pub struct TextColorLens { @@ -100,8 +100,8 @@ impl Lens<Text> for TextColorLens { /// A lens to manipulate the [`translation`] field of a [`Transform`] component. /// -/// [`translation`]: https://docs.rs/bevy/0.6.1/bevy/transform/components/struct.Transform.html#structfield.translation -/// [`Transform`]: https://docs.rs/bevy/0.6.1/bevy/transform/components/struct.Transform.html +/// [`translation`]: https://docs.rs/bevy/0.7.0/bevy/transform/components/struct.Transform.html#structfield.translation +/// [`Transform`]: https://docs.rs/bevy/0.7.0/bevy/transform/components/struct.Transform.html #[derive(Debug, Copy, Clone, PartialEq)] pub struct TransformPositionLens { /// Start value of the translation. @@ -128,9 +128,9 @@ impl Lens<Transform> for TransformPositionLens { /// /// See the [top-level `lens` module documentation] for a comparison of rotation lenses. /// -/// [`rotation`]: https://docs.rs/bevy/0.6.1/bevy/transform/components/struct.Transform.html#structfield.rotation -/// [`Transform`]: https://docs.rs/bevy/0.6.1/bevy/transform/components/struct.Transform.html -/// [`Quat::slerp()`]: https://docs.rs/bevy/0.6.1/bevy/math/struct.Quat.html#method.slerp +/// [`rotation`]: https://docs.rs/bevy/0.7.0/bevy/transform/components/struct.Transform.html#structfield.rotation +/// [`Transform`]: https://docs.rs/bevy/0.7.0/bevy/transform/components/struct.Transform.html +/// [`Quat::slerp()`]: https://docs.rs/bevy/0.7.0/bevy/math/struct.Quat.html#method.slerp /// [top-level `lens` module documentation]: crate::lens #[derive(Debug, Copy, Clone, PartialEq)] pub struct TransformRotationLens { @@ -155,7 +155,7 @@ impl Lens<Transform> for TransformRotationLens { /// /// See the [top-level `lens` module documentation] for a comparison of rotation lenses. /// -/// [`Transform`]: https://docs.rs/bevy/0.6.1/bevy/transform/components/struct.Transform.html +/// [`Transform`]: https://docs.rs/bevy/0.7.0/bevy/transform/components/struct.Transform.html /// [top-level `lens` module documentation]: crate::lens #[derive(Debug, Copy, Clone, PartialEq)] pub struct TransformRotateXLens { @@ -181,7 +181,7 @@ impl Lens<Transform> for TransformRotateXLens { /// /// See the [top-level `lens` module documentation] for a comparison of rotation lenses. /// -/// [`Transform`]: https://docs.rs/bevy/0.6.1/bevy/transform/components/struct.Transform.html +/// [`Transform`]: https://docs.rs/bevy/0.7.0/bevy/transform/components/struct.Transform.html /// [top-level `lens` module documentation]: crate::lens #[derive(Debug, Copy, Clone, PartialEq)] pub struct TransformRotateYLens { @@ -207,7 +207,7 @@ impl Lens<Transform> for TransformRotateYLens { /// /// See the [top-level `lens` module documentation] for a comparison of rotation lenses. /// -/// [`Transform`]: https://docs.rs/bevy/0.6.1/bevy/transform/components/struct.Transform.html +/// [`Transform`]: https://docs.rs/bevy/0.7.0/bevy/transform/components/struct.Transform.html /// [top-level `lens` module documentation]: crate::lens #[derive(Debug, Copy, Clone, PartialEq)] pub struct TransformRotateZLens { @@ -237,7 +237,7 @@ impl Lens<Transform> for TransformRotateZLens { /// /// This method panics if the `axis` vector is not normalized. /// -/// [`Transform`]: https://docs.rs/bevy/0.6.1/bevy/transform/components/struct.Transform.html +/// [`Transform`]: https://docs.rs/bevy/0.7.0/bevy/transform/components/struct.Transform.html /// [top-level `lens` module documentation]: crate::lens #[derive(Debug, Copy, Clone, PartialEq)] pub struct TransformRotateAxisLens { @@ -258,8 +258,8 @@ impl Lens<Transform> for TransformRotateAxisLens { /// A lens to manipulate the [`scale`] field of a [`Transform`] component. /// -/// [`scale`]: https://docs.rs/bevy/0.6.1/bevy/transform/components/struct.Transform.html#structfield.scale -/// [`Transform`]: https://docs.rs/bevy/0.6.1/bevy/transform/components/struct.Transform.html +/// [`scale`]: https://docs.rs/bevy/0.7.0/bevy/transform/components/struct.Transform.html#structfield.scale +/// [`Transform`]: https://docs.rs/bevy/0.7.0/bevy/transform/components/struct.Transform.html #[derive(Debug, Copy, Clone, PartialEq)] pub struct TransformScaleLens { /// Start value of the scale. @@ -277,8 +277,8 @@ impl Lens<Transform> for TransformScaleLens { /// A lens to manipulate the [`position`] field of a UI [`Style`] component. /// -/// [`position`]: https://docs.rs/bevy/0.6.1/bevy/ui/struct.Style.html#structfield.position -/// [`Style`]: https://docs.rs/bevy/0.6.1/bevy/ui/struct.Style.html +/// [`position`]: https://docs.rs/bevy/0.7.0/bevy/ui/struct.Style.html#structfield.position +/// [`Style`]: https://docs.rs/bevy/0.7.0/bevy/ui/struct.Style.html #[cfg(feature = "bevy_ui")] #[derive(Debug, Copy, Clone, PartialEq)] pub struct UiPositionLens { @@ -311,8 +311,8 @@ impl Lens<Style> for UiPositionLens { /// A lens to manipulate the [`color`] field of a [`ColorMaterial`] asset. /// -/// [`color`]: https://docs.rs/bevy/0.6.1/bevy/sprite/struct.ColorMaterial.html#structfield.color -/// [`ColorMaterial`]: https://docs.rs/bevy/0.6.1/bevy/sprite/struct.ColorMaterial.html +/// [`color`]: https://docs.rs/bevy/0.7.0/bevy/sprite/struct.ColorMaterial.html#structfield.color +/// [`ColorMaterial`]: https://docs.rs/bevy/0.7.0/bevy/sprite/struct.ColorMaterial.html #[cfg(feature = "bevy_sprite")] #[derive(Debug, Copy, Clone, PartialEq)] pub struct ColorMaterialColorLens { @@ -335,8 +335,8 @@ impl Lens<ColorMaterial> for ColorMaterialColorLens { /// A lens to manipulate the [`color`] field of a [`Sprite`] asset. /// -/// [`color`]: https://docs.rs/bevy/0.6.1/bevy/sprite/struct.Sprite.html#structfield.color -/// [`Sprite`]: https://docs.rs/bevy/0.6.1/bevy/sprite/struct.Sprite.html +/// [`color`]: https://docs.rs/bevy/0.7.0/bevy/sprite/struct.Sprite.html#structfield.color +/// [`Sprite`]: https://docs.rs/bevy/0.7.0/bevy/sprite/struct.Sprite.html #[cfg(feature = "bevy_sprite")] #[derive(Debug, Copy, Clone, PartialEq)] pub struct SpriteColorLens { diff --git a/src/lib.rs b/src/lib.rs index adab91f..57b86e9 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -139,12 +139,12 @@ //! components of a [`Transform`]. A custom lens can also be created by implementing the trait, allowing to animate //! virtually any field of any Bevy component or asset. //! -//! [`Transform::translation`]: https://docs.rs/bevy/0.6.1/bevy/transform/components/struct.Transform.html#structfield.translation -//! [`Entity`]: https://docs.rs/bevy/0.6.1/bevy/ecs/entity/struct.Entity.html -//! [`Query`]: https://docs.rs/bevy/0.6.1/bevy/ecs/system/struct.Query.html -//! [`ColorMaterial`]: https://docs.rs/bevy/0.6.1/bevy/sprite/struct.ColorMaterial.html -//! [`Sprite`]: https://docs.rs/bevy/0.6.1/bevy/sprite/struct.Sprite.html -//! [`Transform`]: https://docs.rs/bevy/0.6.1/bevy/transform/components/struct.Transform.html +//! [`Transform::translation`]: https://docs.rs/bevy/0.7.0/bevy/transform/components/struct.Transform.html#structfield.translation +//! [`Entity`]: https://docs.rs/bevy/0.7.0/bevy/ecs/entity/struct.Entity.html +//! [`Query`]: https://docs.rs/bevy/0.7.0/bevy/ecs/system/struct.Query.html +//! [`ColorMaterial`]: https://docs.rs/bevy/0.7.0/bevy/sprite/struct.ColorMaterial.html +//! [`Sprite`]: https://docs.rs/bevy/0.7.0/bevy/sprite/struct.Sprite.html +//! [`Transform`]: https://docs.rs/bevy/0.7.0/bevy/transform/components/struct.Transform.html use bevy::{asset::Asset, prelude::*}; diff --git a/src/plugin.rs b/src/plugin.rs index 861f32d..4e68d66 100644 --- a/src/plugin.rs +++ b/src/plugin.rs @@ -23,11 +23,11 @@ use crate::{Animator, AnimatorState, AssetAnimator, TweenCompleted}; /// This plugin is entirely optional. If you want more control, you can instead add manually /// the relevant systems for the exact set of components and assets actually animated. /// -/// [`Transform`]: https://docs.rs/bevy/0.6.1/bevy/transform/components/struct.Transform.html -/// [`Text`]: https://docs.rs/bevy/0.6.1/bevy/text/struct.Text.html -/// [`Style`]: https://docs.rs/bevy/0.6.1/bevy/ui/struct.Style.html -/// [`Sprite`]: https://docs.rs/bevy/0.6.1/bevy/sprite/struct.Sprite.html -/// [`ColorMaterial`]: https://docs.rs/bevy/0.6.1/bevy/sprite/struct.ColorMaterial.html +/// [`Transform`]: https://docs.rs/bevy/0.7.0/bevy/transform/components/struct.Transform.html +/// [`Text`]: https://docs.rs/bevy/0.7.0/bevy/text/struct.Text.html +/// [`Style`]: https://docs.rs/bevy/0.7.0/bevy/ui/struct.Style.html +/// [`Sprite`]: https://docs.rs/bevy/0.7.0/bevy/sprite/struct.Sprite.html +/// [`ColorMaterial`]: https://docs.rs/bevy/0.7.0/bevy/sprite/struct.ColorMaterial.html #[derive(Debug, Clone, Copy)] pub struct TweeningPlugin; -- GitLab