Writing HTML directly with an "index" link at the top is the best way. There's some other stuff you can do if you really want, pandoc is pretty great for converting markdown, you can write custom programs, Emacs' org-mode has a built in HTML generator. It's all kind of a pain in the ass though when you can just write HTML and keep it in git.