Update index.rst

change source code formats