fatiando / harmonica

Forward modeling, inversion, and processing gravity and magnetic data
https://www.fatiando.org/harmonica
BSD 3-Clause "New" or "Revised" License
211 stars 69 forks source link

Wrong links to edit in the gallery web page. #407

Open Esteban82 opened 1 year ago

Esteban82 commented 1 year ago

I try to edit this gallery example image

and it sent me here: https://github.com/fatiando/harmonica/edit/main/doc/gallery/gravity_disturbance_topofree.rst

Screenshot_20230509_145542

leouieda commented 1 year ago

Hi @Esteban82 thanks for reporting. This is because the sphinx-book-theme isn't able to recognise that the actual files for the sphinx-gallery source aren't the rst files. In the past, we had manually manipulated the template to insert the correct links for lost that in the migration to this new theme. I'm not sure if it's possible to do a similar hack here.

Honestly, I'm not sure a gallery makes a lot of sense for these projects since the figures themselves aren't very informative when looking at the gallery. For matplotlib and PyGMT it makes sense but here maybe we're better served by having more how-to pages in the user guide.

Esteban82 commented 1 year ago

Thanks Leo for your answer. I just wanted to report that the link doesn't work. Maybe it should be remove.

Yes, the how-to are always good.