add local theme for read-the-docs, and code to avoid using it ON RTD

so that 'make html' looks like how it'll look on RTD