Pandoc. The pandoc + Jekyll combination was used for JuliaLang citations.
There must be an easier way than requiring everyone has pandoc appropriately installed and working. With the HTML render, Documenter.jl is pure Julia, so I’d like to find a way to keep it that way because the fact that everything auto-installs without any extra pieces makes it much easier to use.
Seems like it wouldn’t be too hard to write a bibTeX parser in Julia, and something to generate citations in a single “Julia” format (rather than trying to handle zillions of possible citation styles like Jekyll-Scholar).
Thanks for the ideas. @bramtayl is it possible to “modify” the help docstring with Documenter? I’m still learning about documentation within Julia, but it seems like Documenter is used to generate HTML documents.
@stevengj agreed - you really only need one single format for this type of citation.
No I guess not. I was thinking you could use documenter + pandoc to render citations + a bibliography in html. This would show up if your package had a documentation website. But it sounds like a bad idea based on the above.
Yes. If we wanted a citation system in a very basic component like Documenter.jl, much less in the built-in Markdown parser, I don’t think it we would want it to have a heavyweight dependency like Python or Pandoc, and bibtex is a pretty reasonable standard format to adopt for citation input. Fortunately, something like bibpy looks pretty easy to port to Julia.
@mortenpi, now that @bramtayl has a working bibtex parser, what should the process be for splicing references into docstrings?
Also, per @stevengj, we should probably settle on a single citation style. Personally, I am a fan of how rmarkdown handles citations. Their process allows inclusion of inline author/date citations (or just date, sans author, if you already mention the author in the sentence). The style defaults to chicago.