Fix sphinx configuration

There are two issues with the current configuration:

* For different formats, the index file is ``index2.rst`` which doesn't exist.
* The default language to use for code blocks is not configured. Thus, Python is used as the default language by Sphinx.