From 3680c854a21db665d64cdb8f31aa0f9a1af16ceb Mon Sep 17 00:00:00 2001 From: Laurenz Date: Wed, 26 Apr 2023 13:46:42 +0200 Subject: Touch up docs --- library/src/layout/measure.rs | 3 +++ library/src/layout/terms.rs | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) (limited to 'library/src/layout') diff --git a/library/src/layout/measure.rs b/library/src/layout/measure.rs index 0b7b9ee7..473bf5c6 100644 --- a/library/src/layout/measure.rs +++ b/library/src/layout/measure.rs @@ -5,6 +5,9 @@ use crate::prelude::*; /// The `measure` function lets you determine the layouted size of content. /// Note that an infinite space is assumed, therefore the measured height/width /// may not necessarily match the final height/width of the measured content. +/// If you want to measure in the current layout dimensions, you can combined +/// `measure` and [`layout`]($func/layout). +/// /// The same content can have a different size depending on the styles that /// are active when it is layouted. For example, in the example below /// `[#content]` is of course bigger when we increase the font size. diff --git a/library/src/layout/terms.rs b/library/src/layout/terms.rs index ecda7668..b6919eec 100644 --- a/library/src/layout/terms.rs +++ b/library/src/layout/terms.rs @@ -8,10 +8,6 @@ use crate::prelude::*; /// descriptions span over multiple lines, they use hanging indent to /// communicate the visual hierarchy. /// -/// ## Syntax -/// This function also has dedicated syntax: Starting a line with a slash, -/// followed by a term, a colon and a description creates a term list item. -/// /// ## Example /// ```example /// / Ligature: A merged glyph. @@ -19,6 +15,10 @@ use crate::prelude::*; /// between two adjacent letters. /// ``` /// +/// ## Syntax +/// This function also has dedicated syntax: Starting a line with a slash, +/// followed by a term, a colon and a description creates a term list item. +/// /// Display: Term List /// Category: layout #[element(Layout)] -- cgit v1.2.3