Generate index + better render for code blocks

cf slack <3