{# Modify the "Edit on Github" links to handle auto-generated pages in the example gallery and the API reference listings. The GH links that sphinx generates by default make the assumption that an HTML file comes from an RST file with the same filepath, which isn't the case for autogenerated files. The logic to generate the correct URL is in conf.py, but we still have to modify the template here to change the "Edit this page" text to "View on GitHub". #} {% extends "!components/edit-this-page.html" %} {% block edit_this_page_text %} View on GitHub {% endblock %}