Call to library authors: define "Nutrition facts" for your meta-programming

Honestly, we need both. Telling a newcomer that they can “see expanded macro” to figure what use does it not necessarily the best experience. We could introspect this automatically but it is hard to separate what is public (we set this attribute that directly impacts you or is public API) vs private (we generated this function/attribute that you should never care about). But the expanded macro feature is great for experienced devs.

Check ExDoc readme (we recently added tabsets too). In there since v0.28.x, more than a year ago.

4 Likes

To be precise as of changelog it was v0.28.1.

v0.28.1 (2022-02-20)

  • Enhancements

    • Add support for admonition text blocks
    • Improve accessibility for light and dark themes
  • Bug fixes

    • Ensure that mix docs --open works on Windows
    • Ensure search tokenizer also splits on underscore
    • Fix false warnings about missing types when running ExDoc in escript mode
    • Don’t navigate when clicking the current page

@Qqwy You can find more info in documentation of Admonition blocks.

3 Likes

The nutrition facts for use Ash.Resource would be quite a meal :joy:

4 Likes