-
Notifications
You must be signed in to change notification settings - Fork 32
Closed
Description
The idea is to have a macro, let us say, INTERNAL, such that a message warning the user that the function is internal is shown instead of the actual help entry, and the help entry gets hidden inside an "Extended help" section.
That is, that some like this:
INTERNAL"""
f(x)
This function always returns 1
# Example
example of use of f(x)
"""
f(x) = 1
gets parsed as:
"""
f(x)
**Internal function or structure - interface may change.**
# Extended help
This function always returns 1
# Example
example of use f(x)
"""
Such that when the user types ? f
, he/she will get:
help?> f
search: f fd for fma fld fld1 fill fdio frexp foldr foldl flush floor float first fill! fetch fldmod filter falses
f(x)
Internal function or structure - interface may change.
────────────────────────────────────────────────
Extended help is available with `??`
Ps: I tried to implement this myself, but without a proper interaction with Documenter
it does not really help much, and maybe others have the right expertise to do that (if they find the idea interesting, anyway). I have been using this pattern, by hand, in some packages, and it solves the problem of documenting inner functions without introducing possible confusions for the users.
Metadata
Metadata
Assignees
Labels
No labels