This is my first semi-successful attempt at producing structured and more usable docs for Elixir. Now hosted on
readthedocs.org. I also promoted the Getting started guides and some of the .md documents from the source repo to this new site:
This is phase 1 which means the work is not finished. The guides from
the site are what is working now (there are still some formatting bugs
caused by md -> rst conversion). The API reference is at an early stage.
## Rationale
This has been a pet-peeves of mine for a while now[1]. See also related discussions about improving learning resources for Elixir here[2][3][4].
The two biggest issues with the current doc site:
1. It uses frames. This has a number of implications, among which are defeating the URL (which totally breaks the web) and mobile unusability.
2. Searchability is limited. The navigation bar is rather useful for keyword search but sometimes you just wish to have full-text search.
## Overview of the new docs
The docs hosted on
readthedocs.org solve the two issues above. The platform also has a much bigger potential for extending the docs (adding other types of guides, instructions, or references).
The documentation engine–Sphinx–is a mature and established tool. It supports complex structures with navigation, output to different formats (HTML, LaTeX, epub, and more), plugins, themes. And obviously we don't need to maintain it.
I'm not aiming to replace ex_doc completely. It offers a different approach to laying out the reference documentation and can provide an easier way to quickly produce docs for internal use or publishing. I'm talking specifically about the docs for Elixir here.
## Technical details
From a purely technical point of view, we could just use Sphinx to render the docs and then host them ourselves. Readthedocs.org simply solves the issues of hosting and full-text search for us.