-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
rebar3 hex docs: Improve error message when building custom docs #250
Comments
Currently, publishing the library documentation to Hex.pm shows the following warning: No valid hex docs configuration found. Docs will will not be generated I'm not sure what to do about this. According to erlef/rebar3_hex#250, adding this property fixes or at least works around the message. We'll how it goes with the next release.
@wojtekmach #263 sorts some of this out, but it doesn't improve on the Need to make a decision on whether to even honor that in v7. On one hand, I suppose it's convenient, on the other hand, it's a bit "dangerous", as were the changes in the PR mentioned above (i.e., you can have stale docs lying around and inadvertently publish them). In v7 the goal is to be like mix and ex_doc that everything must be explicit. So for this case, and in case there is still no ex_doc provider around, what do you think is amenable? Specifically in #221 I have a task to add a |
I just ran into this very issue with the newest It felt a bit frustrating as the actual package has been published, and then the error occurred. It feels safer to fail the entire operation (not even attempt to publish the package if docs provider is broken, unless I explicitly specify I eventually succeeded with this command: |
@max-au Are you on the latest rebar3_hex? There were a lot of fix ups and changes in behaviour in v7 Edit: Even if you are on the latest, the behavior you desire is to fail fast if no doc provider has been configured? We may able to make that configurable, but the default behavior is indeed to just publish the package without docs. I do like failing fast without docs, but the behavior was made so to align with mix hex. I think if switched our tune, we'd have to do a new major version, maybe not... A few notes:
|
This was discussed, and I think I agree with what was put out there, specifically. We can do this in stages.
Still though, you used |
I just hit this. I have docs in |
@tsloughter Are you sure you're on the latest and I guess, let me ask what was your exact cli usage and your expectation. If I run
Edit: Misunderstanding. You need an error for when a docs dir exists, but no --doc-dir switch was given and you need to be informed about that. So we can check to see of |
I had the proper
rebar.config
setup:however I kept getting this error:
It wasn't clear to me how to fix the error.
Turns out I forgot to set
{doc, "doc"}
insrc/<app>.app.src
. (beam-telemetry/telemetry#86)I wonder if we can somehow improve the error message?
The text was updated successfully, but these errors were encountered: