Updated rst to use doxygenfile instead of autodoxygenindex

Using `doxygenfile` directive instead of `autodoxygenindex`
This generates valid documentation as opposed to previous  case.