Skip to content
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

Choose format and tool(s) for the technical documentation #1

Open
mangolang opened this issue Dec 30, 2017 · 3 comments
Open

Choose format and tool(s) for the technical documentation #1

mangolang opened this issue Dec 30, 2017 · 3 comments
Labels
documentation infra Supporting infrastructure like package index, documenation, formatting...

Comments

@mangolang
Copy link
Owner

It'd be advantageous to use the same tool for documenting the compiler that will later be used for documenting programs written in the language. Some examples:

  • Javadoc (doxygen?)
  • reStructuredText (Sphinx)
  • Markdown

I'm not very knowledgeable on this topic. I feel like Markdown is used more than reStructuredText. Javadoc may be too limited. From reading some information (one, two), it seems the technically superior choice for large documentation efforts is reStructuredText, with which I have good experiences in Python. The Rust book, which I liked, seems to be written in Markdown.

@mverleg
Copy link
Collaborator

mverleg commented Jan 6, 2018

Kotlin uses Dokka, which seems good for signatures but maybe not for full documentation.

This was referenced Mar 25, 2018
@mverleg
Copy link
Collaborator

mverleg commented Apr 8, 2018

Thanks to advice from @imma90 !

We compared documentation tools on various criteria:

  • Usable for standalone technical documentation and for in-source api documentation.
  • An input format that doesn't take much time for programmers to learn, but is expressive enough for documentation writers. Either Markdown (easy, very popular)) or ReStructuredText (expressive, somewhat popular).
  • Multiple output formats, including at least html, and preferably an existing free hosting service.
  • Ability to be adapted to Mango. Sphinx has been adapted to other languages like Java and javascript. Info.

Based on that, Sphinx was the winner. The current favourite for input format is ReStructuredText, with alternatives being either Markdown, or Markdown+ReStructuredText.

@mverleg mverleg added infra Supporting infrastructure like package index, documenation, formatting... documentation labels Apr 29, 2018
@mverleg
Copy link
Collaborator

mverleg commented Apr 25, 2019

The docs are currently at https://docs.mangolang.org/en/latest/ but there isn't much. This runs on ReadTheDocs which uses Sphinx/ReStructuredText. It might be moved later for uniform style and no ads.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation infra Supporting infrastructure like package index, documenation, formatting...
Projects
None yet
Development

No branches or pull requests

2 participants