Pygmt figures in Sphinx-Gallery documentation

Hi!, i’m trying add some figures in my gallery for a documentation’s web based on Sphinx.
I found a solution, like an extension for sphinx of pygmt but i think that its deprecated (info its based on a older version of pygmt),
also i tried read the config.py of docs folder in the source code but i don’t understand it at all.

Thanks for reading.

Work for me to copy the extensions and gallery config of config.py, anyway i would like to know what is the “official procedure” :blush:

Are you copying this source code (https://github.com/GenericMappingTools/pygmt/blob/main/pygmt/sphinx_gallery.py) to your project and set "image_scrapers": (PyGMTScraper(),), in your conf.py file?

Yeah, thanks for answering, I was need import pygmt module in conf.py and to insert image_scapers :blush:
Happy New Year :partying_face: