Customizing the index file

What is rST?

You may notice the new extension here, rst.

.rst stands for reStructuredText. This is a language for structuring text such that it can be used to generate beautiful HTML output.

Updating our index file

Let’s see what this looks like below. Note the peculiar way in which the text is structured. This is what allows sphinx to parse it properly.

Comparing the two, we can see how rst files define things like titles (with =======, -------, or some version of this). We also see how it is possible to point to other pages with :ref:. These links point to other parts of the sphinx website.