Set py:currentmodule to enable link resolution

This commit is contained in:
Ray Speth 2023-09-19 20:04:42 -04:00 committed by Ray Speth
parent 7e35b7123c
commit 868678de5d

View File

@ -61,6 +61,15 @@ sphinx_gallery_conf = {
}
}
header_prefix = """
.. py:currentmodule:: cantera
"""
import sphinx_gallery.gen_rst
sphinx_gallery.gen_rst.EXAMPLE_HEADER = header_prefix + sphinx_gallery.gen_rst.EXAMPLE_HEADER
# Options for sphinx_tags extension
tags_create_tags = True
tags_create_badges = True