Sync with astropy doc organization that replaced _generated with api directory.
Included long C-extension docstring in documentation.