Integrate Sphinx into the build system.

Refs #5774