Add doctests to the documentation.