-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need modules attributes in moduledoc :( #43
Comments
hey amos, thanks for the issue! directive ordering breaking things is documented (albeit poorly) on the readme, but here's a fix for you that isnt documented there you can move your options outside of the module into a naked variable and reference it in the module. options_schema = [ ... ]
defmodule Mix.Tasks.DenoEx.Install do
@moduledoc """
... #{NimbleOptions.docs(options_schema)}
"""
...
@options_schema options_schema
end Hope that helps. Gonna leave this open for a bit to help others find it as well 🤙 |
Updated the readme with more explicit first-run advice like this, fingers crossed people see it ;) |
🤖 ❤️ |
I use nimble options to build documentation, and
mix help
uses moduledoc as the output. I need to use the module attribute to create my documentation.Elixir / OTP Version
Erlang/OTP 25 [erts-13.1.4] [source] [64-bit] [smp:10:10] [ds:10:10:10] [async-threads:1] [jit]
Elixir 1.14.3 (compiled with Erlang/OTP 25)
Example Input
Current behaviour / Stacktrace
Expected Output
The text was updated successfully, but these errors were encountered: