Fix rst doctests in top-level docs
Merge pull request #1632 from mdboom/doctest/docs

doctest/docs