Update docs so that the reference builds again

This commit is contained in:
Martin Haug 2023-01-29 12:43:44 +01:00
parent 83b28e99ae
commit 8fbfa594e0
5 changed files with 11 additions and 12 deletions

View File

@ -41,10 +41,10 @@ pub fn type_(args: &mut Args) -> SourceResult<Value> {
///
/// ## Example
/// ```
/// { none } vs #repr(none) \
/// { "hello" } vs #repr("hello") \
/// { (1, 2) } vs #repr((1, 2)) \
/// { [*Hi*] } vs #repr([*Hi*])
/// #{ none } vs #repr(none) \
/// #{ "hello" } vs #repr("hello") \
/// #{ (1, 2) } vs #repr((1, 2)) \
/// #{ [*Hi*] } vs #repr([*Hi*])
/// ```
///
/// ## Parameters

View File

@ -96,7 +96,7 @@ impl Inline for MoveNode {}
///
/// ## Example
/// ```
/// {
/// #{
/// range(16)
/// .map(i => rotate(24deg * i)[X])
/// .join(h(1fr))

View File

@ -12,7 +12,7 @@ pub(super) const DELIM_SHORT_FALL: Em = Em::new(0.1);
/// ## Example
/// ```
/// $ lr(]a, b/2]) $
/// $ lr(]sum_(x=1)^n] x, #size: 50%) $
/// $ lr(]sum_(x=1)^n] x, size: #50%) $
/// ```
///
/// ## Parameters

View File

@ -117,7 +117,8 @@ pub fn module(sym: &Module) -> Module {
/// however, are interpreted as variables, symbols or functions. To display
/// multiple letters verbatim, you can place them into quotes. Math mode also
/// supports extra shorthands to easily type various arrows and other symbols.
/// The page on the [`symbol`](@symbol) function lists all of them.
/// The [text](/docs/reference/text/) and [math](/docs/reference/math/) sections
/// list all of them.
///
/// When a variable and a symbol share the same name, the variable is preferred.
/// To force the symbol, surround it with colons. To access a variable with a
@ -145,11 +146,9 @@ pub fn module(sym: &Module) -> Module {
/// ```
///
/// ## Parameters
/// - body: Content (positional, required)
/// The contents of the formula.
/// - body: Content (positional, required) The contents of the formula.
///
/// - block: bool (named)
/// Whether the formula is displayed as a separate block.
/// - block: bool (named) Whether the formula is displayed as a separate block.
///
/// ## Category
/// math

View File

@ -243,7 +243,7 @@ impl LayoutMath for MonoNode {
/// Blackboard bold (double-struck) font style in math.
///
/// For uppercase latin letters, blackboard bold is additionally available
/// through [symmie symbols](@symbol) of the form `NN` and `RR`.
/// through [symbols](/docs/reference/math/) of the form `NN` and `RR`.
///
/// ## Example
/// ```