summaryrefslogtreecommitdiff
path: root/library/src/layout/page.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-12-20 16:08:16 +0100
committerLaurenz <laurmaedje@gmail.com>2022-12-20 16:11:37 +0100
commitf5f7df7247ae29800e0290774a50942e2485beea (patch)
tree57253ba51efdae3ac8e4eea722428924625b514c /library/src/layout/page.rs
parentb8ffd3ad3dcaebddbc674e03494e0d818b21fa51 (diff)
Documentation
Diffstat (limited to 'library/src/layout/page.rs')
-rw-r--r--library/src/layout/page.rs14
1 files changed, 8 insertions, 6 deletions
diff --git a/library/src/layout/page.rs b/library/src/layout/page.rs
index a2548c02..dfaaae23 100644
--- a/library/src/layout/page.rs
+++ b/library/src/layout/page.rs
@@ -4,17 +4,18 @@ use super::ColumnsNode;
use crate::prelude::*;
use crate::text::TextNode;
+/// # Page
/// Layouts its child onto one or multiple pages.
///
-/// # Parameters
+/// ## Parameters
/// - body: Content (positional, required)
/// The contents of the page(s).
///
/// - paper: Paper (positional, settable)
/// The paper size.
///
-/// # Tags
-/// - layout
+/// ## Category
+/// layout
#[func]
#[capable]
#[derive(Clone, Hash)]
@@ -154,14 +155,15 @@ impl Debug for PageNode {
}
}
+/// # Page Break
/// A page break.
///
-/// # Parameters
+/// ## Parameters
/// - weak: bool (named)
/// If true, the page break is skipped if the current page is already empty.
///
-/// # Tags
-/// - layout
+/// ## Category
+/// layout
#[func]
#[capable]
#[derive(Debug, Copy, Clone, Hash)]