Update documentation index logic

The index generation logic for README.md now matches the
integrated documentation logic.
Merge pull request #2 from lhrc-mikeyp/doc_index

+2 Update documentation index logic