Extending mainpage example

I couldn't find a directive I could put on the top. I check how difficult to define it in astropy_helpers, and either do it or open a feature request issue for it.