Use the Sphinx doctest builder

This allows us to test our documentation snippets using the standard
"doctest" utility.