-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Manual/Tutorial/POD-style documentation in Julia programs #5200
Comments
I'm not sure why you opened a dup of #3988 and then linked to it from that same issue. |
Yeah, ok, fair enough. I just find that I'd rather search through a long issue than try to remember a half dozen issue that the discussion is spread across. But yeah, it's probably fine to have this too. |
@StefanKarpinski, I don't think it is a dup if we are talking about documentation not specifically associated with Julia objects. |
Ok, carry on and discuss. |
Another alternative is to use # AsciiDoc Example
adoc"""
= Product Manual
== Introduction
Blah blah blah
"""
@doc adoc"""
This is how function foo() works...
"""
function foo()
...
end My thinking is that, in order to generate a manual we probably want an external program anyway (e.g. |
For reference: #8514 |
I would very much like it if Julia had a native support for some sort of embedded documentation inside the source code which can be used to produce (say) a manual in HTML or PDF, or a man page. I am thinking of a feature similar to Perl's POD.
Issues that may be related to this one: #3988 #4579 #5135.
In light of the discussion in #3988, I am thinking along the lines of something like this:
The
md""" ... """
is a string macro for Markdown code. I would like to see Julia documentation give a choice of documentation languages like tex, rst, md, html and xml (e.g. docbook) and user-defined alternatives.Then, an external program could extract the manual documentation from the source code. Perhaps something like this:
Or maybe:
This discussion seems relevant to issue #4579 because you can think of IJulia notebooks as a possible output format for Julia documentation, to complement HTML and PDF output.
The text was updated successfully, but these errors were encountered: