Fixed Sphinx warnings in the doc generation code.

This fixes a series of warnings from Sphinx in the auto-generating Sphinx
configuration files and our custom Sphinx extensions. These involve short
overline, short underline, and unknown target.

Testing Done:
Built the docs.

Reviewed at https://reviews.reviewboard.org/r/6688/