-
Notifications
You must be signed in to change notification settings - Fork 15
Touching Base #40
Comments
This is very exiting. Good work guys! |
Can we please just use |
There is also the question of whether |
Yes, I'll get something together tomorrow if time allows. I'd definitely like to try PR this part myself -- learning experiences and all that jazz :) @one-more-minute you mention associating docs with functions. What about methods, etc? I'm also in agreement with @stevengj that I was also contemplating a few changes today, namely a Also, I'd like to avoid the |
Wrapping the |
If you have I think everyone agrees we need the option of separate (I'm confused about this issue... it seems to be somewhat redundant with issue 8514) |
@stevengj Markdown.jl already has an And of course, I chose the documentation string macro to have the longer name because the @MichaelHatherly I definitely agree that one docstring per function is overly limited, and certainly have no objection to the various metadata proposals. But I think for now we just need to get the simplest thing that works into Base. Once that happens people can start using it and we can iterate as necessary. Starting simple will probably also help with backporting to 0.3, which IMO would be really valuable. |
@MichaelHatherly Oh yeah, and about the
Edit: Oh yes, you want module documentation to be compiled with the module. |
If the consensus is building for adding just the basics to Base for the moment, then I believe that @mauro3's JuliaLang/julia#5572 PR should cover associating docstrings with objects (if I've read correctly). What's the current status on that PR? I'd rather not duplicated work that's already waiting to go into base. |
It looks pretty stale to me. I'd suggest just checking out that branch and seeing if it still works. If it does you can build on it, fix remaining issues and send in your own PR. But it may be too much effort to make it current, in which case you can just start from Docile. Honestly, I'd scrap trying to integrate helpdb.jl / the |
Movement, exciting! I fixed & rebased JuliaLang/julia#5572, take what you need. And let me know if I can help. Note that the storage backend is not (yet) what the higher powers would like it to be: Over in JuliaLang/julia#3988 (comment) , @StefanKarpinski suggested an implementation of metadata storage system with a separate help/meta-dict for each module. I will mull over what that proposal means in terms of the function-interface to the metadata and will do the changes (if there are any) over the next few days. Swapping out the backend will be more work and I can do that in the next week or two. |
Excellent, thanks @mauro3! |
The
|
|
No, @stevengj was right.
Anyway; the |
We could escape newlines by default in regular strings and even do things like only escaping it in multiline strings within LaTeX equations only. Even so I think we're trying to solve a problem we don't have here. Firstly, because although LaTeX and interpolation aren't completely supported yet, neither are blocking the system from being useful in its current state. And secondly, while I'll be the first to agree that |
As @ivarne already wrote in #8514, having two kinds of string literals — I really think this issue should be closed; at this point it is just duplicating the discussion in #8514, and we shouldn't be having the same discussions in two places. |
Happy to do that. |
Ok, I think we're about ready to push forward with getting this stuff in Base. A rough plan of action:
@doc
macro in. This should be fairly simple; I think @stevengj is right that being completely generic is the right way to start out, and it actually makes the whole system simpler if you don't have to worry about display at all. So@doc
just associates whatever object it's given with whatever function,help(f)
retrieves it.mdoc""
macro which will store a smartly-displayed string.@doc
convert plain strings tomdoc""
strings by default.Sound like a plan? Really it looks like we're 99% of the way there by now, it's just a case of getting it into Base.
If you want I'm happy to send Markdown.jl +
@doc
as a single PR myself, too.The text was updated successfully, but these errors were encountered: