I think it's some magic from numpydoc but I'm not sure.

On sklearn, we even have some magic happening in the examples: it links all methods from the source code to the documentation, including matplotlib and numpy methods: http://scikit-learn.org/dev/auto_examples/plot_classification_probability.html
I don't know how we do that, but I find it very cool :)