I learned from this answer that I can generate docs from macros:
macro_rules! gen_fn { ( $(#[$attr: meta])* $name:ident ) => {