Mercurial > crates > nonstick
diff src/_doc.rs @ 174:9e4ce1631bd3
Dramatically expand documentation.
author | Paul Fisher <paul@pfish.zone> |
---|---|
date | Tue, 29 Jul 2025 18:58:27 -0400 |
parents | e27c5c667a5a |
children |
line wrap: on
line diff
--- a/src/_doc.rs Tue Jul 29 16:52:32 2025 -0400 +++ b/src/_doc.rs Tue Jul 29 18:58:27 2025 -0400 @@ -143,7 +143,7 @@ /// /// ```ignore /// # use nonstick::_doc::mansun; -/// // Both of these formulations create a link named `manbsd`. +/// // Both of these formulations create a link named `mansun`. /// #[doc = mansun!(3pam fn_name)] /// #[doc = mansun!(5 "a.out" "synopsis")] /// // This one creates a link named `link_name`. @@ -154,12 +154,18 @@ ($n:literal $func:ident $($anchor:literal)?) => { $crate::_doc::mansun!(mansun: [$n ""] $func $($anchor)?) }; + ($n:literal $func:literal $($anchor:literal)?) => { + $crate::_doc::mansun!(mansun: [$n ""] $func $($anchor)?) + }; ([$n:literal $sect:literal] $func:ident $($anchor:literal)?) => { $crate::_doc::mansun!(mansun: [$n $sect] $func $($anchor)?) }; ($name:ident: $n:literal $func:ident $($anchor:literal)?) => { $crate::_doc::mansun!($name: [$n ""] $func $($anchor)?) }; + ($name:ident: $n:literal $func:literal $($anchor:literal)?) => { + $crate::_doc::mansun!($name: [$n ""] ($func) $($anchor)?) + }; ($name:ident: [$n:literal $sect:literal] $func:ident $($anchor:literal)?) => { $crate::_doc::mansun!($name: [$n $sect] (stringify!($func)) $($anchor)?) };