#Group functions by concerns in Gleam Docs
1 messages · Page 1 of 1 (latest)
Unfortunately, I cloud split the functions in another file, but I'd prefer to have everything in the same place (easier to import)
(Yay CSS with like 10K keywords 😆 )
Gleams docs are always an alphabetical api reference. Our convention in gleam-community is to provide a table of contents in the module docs that organise things how we want
For examplehttps://hexdocs.pm/gleam_community_ansi/gleam_community/ansi.html
OK, thanks for the answer!
This is something I would like in some opt-in way, but I don't know what the API should be
Yes, I was thinking a little bit more and it feels really hard to find a correct API for it. Maybe by reusing the //// directives? Or to group functions with an @docs(section)?
This would be really nice. I'm finding I re-implement functions that already exist because there are no signatures in the hexdocs "functions" list, and they are not grouped by input or output type.
wasn't someone working on a site to search functions by type? across packages, that is.