[erlang-questions] Providing documentation via API
Mon Oct 3 23:10:17 CEST 2016
There is of course already
https://github.com/erlang/otp/blob/maint/lib/edoc/priv/edoc.dtd, but it
might need updating.
2016-10-03 22:31 GMT+02:00 Vlad Dumitrescu <>:
> If we are to be able to provide an API to locate and extract documentation
> for code constructs, what would be a good format to return it in? The
> source can be code comments or external files, which means that there will
> be multiple possible source formats (edoc, xml, asciidoc, rst, markdown,
> I can see the following alternatives:
> * raw: textual data as in the source, the clients have to parse and
> interpret it
> * display: textual data that can be rendered (basically, HTML)
> * structured: some data structure that unifies the different sources; some
> kind of plug-ins providing parser support are needed.
> The 'raw' solution will be needed by the other two to retrieve the doc
> sources, but are the others useful to have in the library? I would like to
> be able to provide the 'structured' format.
> This is the kind of API I am looking at: https://gist.github.com/vladdu/
> aa571a548cecfeb85b84c65378429bf0 (thanks Joe for pointing me in this
> direction!). There should also be a way to configure the location of the
> external docs.
> best regards,
> erlang-questions mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions