Updated the documentation pager to work better; instead of complicated looping, just figures out what indices point to what, and uses the current article's index to determine what links to build.