-
Notifications
You must be signed in to change notification settings - Fork 485
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
Docstring for empty function prevents method docstrings from appearing #1390
Comments
This is related to #839. It's a bit of a double edged sword: there might be cases where you just want to include the generic definition attached to the function, but not the ones for specific methods (e.g. you want to document the specific methods together with the types on another page). Just for the record, the way to get both is to do
|
I guess the issue here is that Regardless, I think it would be good to have this documented. |
Exactly. And I agree that it's non-optimal to have the behavior change. However, I think I then lean towards having |
I certainly see the sense in which that is the most natural solution, but it is a heavily breaking one. How much that should weigh in the decision is not for me to say though, I'm just a lowly user. :) |
Whatever option is chosen, it would be great if the documentation talked about it. Moreover, in the MWE above the docstring for |
MWE:
make.jl
:src/index.md
:After running
julia make.jl
, the outputbuild/index.html
hasIn other words, the docstring for
f(::Int)
isn't included in@docs f
if there's also a docstring for an empty, methodlessf
. You can get it with@docs f(::Int)
. Note that REPLhelp?> f
still shows both.I didn't find anything about this in the documentation, so I assume it's a bug. The behavior also doesn't make sense to me.
The text was updated successfully, but these errors were encountered: