IIRC the decision to keep end-user developer documentation out of the
source was deliberate. The reasons were something like, the audience
reading your code is different from the audience of end-user developers;
since the audiences are different, the source shouldn't be cluttered
with end-user developer docs, which are verbose and include examples and
so on; the separation allows people to hack on the docs separately from
the source; and the dynamic nature of JavaScript can sometimes make it
difficult to annotate code in a way intended for doc parsing.
I still agree with all of that, but now that we're into the fourth
release it might be a good time to re-evaluate some things. The one
thing I don't like is that I'm often duplicating things between
in-source docs and the end-user developer docs. That's probably my
fault, since I pushed for Javadoc-style comments in the source to match
Mozilla conventions. I'm not sure if others are following that
convention, but I'd like to drop it.
Drew
On 5/8/10 8:27 AM, Luca Greco wrote:
> Working on bug 555180, I tried to render apidoc (with the current
> <api> syntax) embedded into sourcecode instead of using separate
> markdown pages,
> more details in the comment and the attached diff:
>
>
https://bugzilla.mozilla.org/show_bug.cgi?id=555180#c13
>
--