Add sphinx test

Adds a test that the Sphinx build succeeds (0 exit status) and has no warnings or errors in the stdout or stderr.

1575808 has been cherry-picked into this branch from another PR so that the new test passes.