[librsvg: 11/17] node.rs: links to doc items by name




commit 26b27983d1674e29b8e8bc9ae61c6473c3fa74ec
Author: Federico Mena Quintero <federico gnome org>
Date:   Wed Jun 23 10:53:07 2021 -0500

    node.rs: links to doc items by name
    
    Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/552>

 src/node.rs | 14 +++++---------
 1 file changed, 5 insertions(+), 9 deletions(-)
---
diff --git a/src/node.rs b/src/node.rs
index 862d2328..0c61778b 100644
--- a/src/node.rs
+++ b/src/node.rs
@@ -1,15 +1,11 @@
 //! Tree nodes, the representation of SVG elements.
 //!
 //! Librsvg uses the [rctree crate][rctree] to represent the SVG tree of elements.
-//! Its [`Node`] struct provides a generic wrapper over nodes in a tree.
-//! Librsvg puts a [`NodeData`] as the type parameter of [`Node`].  For convenience,
-//! librsvg has a type alias `Node = Node<NodeData>`.
+//! Its [`rctree::Node`] struct provides a generic wrapper over nodes in a tree.
+//! Librsvg puts a [`NodeData`] as the type parameter of [`rctree::Node`].  For convenience,
+//! librsvg has a type alias [`Node`]` = rctree::Node<NodeData>`.
 //!
 //! Nodes are not constructed directly by callers;
-//!
-//! [rctree]: ../../rctree/index.html
-//! [`Node`]: ../../rctree/struct.Node.html
-//! [`NodeData`]: struct.NodeData.html
 
 use markup5ever::QualName;
 use std::cell::{Ref, RefMut};
@@ -26,12 +22,12 @@ use crate::xml::Attributes;
 
 /// Strong reference to an element in the SVG tree.
 ///
-/// See the [module documentation](index.html) for more information.
+/// See the [module documentation][self] for more information.
 pub type Node = rctree::Node<NodeData>;
 
 /// Weak reference to an element in the SVG tree.
 ///
-/// See the [module documentation](index.html) for more information.
+/// See the [module documentation][self] for more information.
 pub type WeakNode = rctree::WeakNode<NodeData>;
 
 /// Data for a single DOM node.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]