{# Edit This Page Button Shows a button to edit the current page on the documentation's source provider. Falls back to the PyData theme's button if not available. #} {% if sourcename is defined and theme_use_edit_page_button==true and page_source_suffix %} {% set src = sourcename.split('.') %} {% else %} {# Fallback: Use the PyData theme's edit-this-page button #} {%- include "pydata_sphinx_theme/components/edit-this-page.html" -%} {% endif %}