-
Notifications
You must be signed in to change notification settings - Fork 481
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
Suppress errors for unexported functions #600
Comments
You shouldn't be getting errors if you are not referring to them in an |
@mortenpi |
@mortenpi any news about those errors? |
I think I have the same issue. Here is an MWE (full repository in https://github.com/tkf/MyPlayground.jl/tree/documenter-private):
# MyPlayground.jl
```@autodocs
Modules = [MyPlayground]
Private = false
```
module MyPlayground
export my_public_function
"""
my_public_function()
This function is exported.
"""
my_public_function() = nothing
"""
my_private_function()
This function is _not_ exported.
"""
my_private_function() = nothing
end # module Without Adding (The motivation behind this is that I'd like to have three kinds of bindings with docstring: (1) exported public API, (2) unexported public API, (3) unexported non-public function. I'd like to have (1) and (2) in the documentation but not (3). Or, actually, adding (3) using |
@lelogrott: Apologies for not replying before. The underlying assumption is that all docstrings are meant to be public (whether that is reasonable is up for debate). As you're not including In Documenter's own docs we get around this by having a separate "internals" page with the docstrings of all the private functions etc. Having some sort of better support for public unexported names would be great though. The problem is: how would Documenter figure out which unexported names are public and which are not?
|
👍
How about "do not warn/error unincluded docstrings if they are not included explicitly"? This implies that API is public only if it's
Yes, especially also for running doctests. It would be nice to have a page |
Hi all, I'm chiming in here because I'm a bit confused. In LightGraphs, I get
but
(That is, How do I suppress these warnings? (There are 115 of them, and most - if not all - are unexported functions for which we do not intend to write docstrings.) |
Hi, so, currently, our best solution is to have an "Internals" hiden page? @privatedoc """
my_function()
This docstring will not be considered in `makedocs`.
"""
my_function()
return nothing
end This way we could ignore individual docstrings. |
Now that Julia has a |
Making Documenter aware of |
Is there a way to suppress errors about missing documentation for unexported functions?
The text was updated successfully, but these errors were encountered: