From f5f7df7247ae29800e0290774a50942e2485beea Mon Sep 17 00:00:00 2001 From: Laurenz Date: Tue, 20 Dec 2022 16:08:16 +0100 Subject: Documentation --- library/src/layout/container.rs | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'library/src/layout/container.rs') diff --git a/library/src/layout/container.rs b/library/src/layout/container.rs index 5df6b2dc..933deeba 100644 --- a/library/src/layout/container.rs +++ b/library/src/layout/container.rs @@ -2,9 +2,10 @@ use super::VNode; use crate::layout::Spacing; use crate::prelude::*; +/// # Box /// An inline-level container that sizes content. /// -/// # Parameters +/// ## Parameters /// - body: Content (positional) /// The contents of the box. /// @@ -14,8 +15,8 @@ use crate::prelude::*; /// - height: Rel (named) /// The height of the box. /// -/// # Tags -/// - layout +/// ## Category +/// layout #[func] #[capable(Layout, Inline)] #[derive(Debug, Hash)] @@ -75,9 +76,10 @@ impl Layout for BoxNode { impl Inline for BoxNode {} +/// # Block /// A block-level container that places content into a separate flow. /// -/// # Parameters +/// ## Parameters /// - body: Content (positional) /// The contents of the block. /// @@ -92,8 +94,8 @@ impl Inline for BoxNode {} /// The spacing between this block and the following one. Takes precedence /// over `spacing`. /// -/// # Tags -/// - layout +/// ## Category +/// layout #[func] #[capable(Layout)] #[derive(Debug, Hash)] -- cgit v1.2.3