BUG: sphinxext: fix sphinx extensions broken recently
Merge pull request #3296 from pv/fix-sphinxext

BUG: sphinxext: fix sphinx extensions broken recently
Fix np domain to avoid duplicate module indices in docs
Merge pull request #379 from JonWaltman/doc-fix-duplicate-modindex

DOC: sphinxext: Fix np domain to avoid duplicate module indices in docs