Fix docs/conf.py to work with sphinx-1.2.2

Closes gh-1086.