-
Notifications
You must be signed in to change notification settings - Fork 82
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
How to document my file-loader #97
Comments
Interesting question, we should definitely have a nice solution for this! The format string seems to be a good place! |
Is there a central place where the format-strings are stored? |
Well, it's a type: julia> format"PBMBinary"
FileIO.DataFormat{:PBMBinary} Still looking at the docs, if a type with parameters can be explicitly documented. |
Maybe add it to the IO package module? |
I don't think one can document types with parameters separately for different parameters. To actually be able to find the documentation of a loader, some call involving the file itself would be best as remembering anything else will be impossible. Maybe Let's call @MichaelHatherly to the rescue! Do you have any idea on how to do this within the help system? |
The doc concatenation can be a bit annoying sometimes... though you should be able to search for docs for methods that only match a specific signature with:
Doesn't look like the |
(+1 to documenting the But that then means that the doc-string returned by Perfect would be if:
But I can't see how this could be made to work. So how about making a function |
Yeah, that'd be the sane approach! |
Isn't this JuliaLang/julia#20142 what we need here? |
Looks like it :)
…On 20 Jan 2017 3:41 p.m., "Mauro" ***@***.***> wrote:
Isn't this JuliaLang/julia#20142
<JuliaLang/julia#20142> what we need here?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#97 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA9rIyxPybo6W7W_RVOh55tGbVxpWtzvks5rUMebgaJpZM4LnRcU>
.
|
How/where would I document the keyword arguments of some specific loader, ideally using Julia's help system? Just adding a doc-string to each
load
method doesn't work, as that would make for a super long concatenated doc-string. Maybe add it to the format-string somehow?The text was updated successfully, but these errors were encountered: