Update documentation configuration to run things internally
This MR modifies the documentation configuration to generate all files internal to the sphinx
process, without relying on externally created files that aren't part of the normal python build.
This is a pre-requisite to generating documentation on readthedocs, for example.
Edited by Duncan Macleod