{%- if theme_page_actions | tobool and title and pagename != root_doc and has_source and sourcename and (not meta or "hide-page-actions" not in meta) -%} {%- set has_ai = theme_page_actions_ai_chatgpt | tobool or theme_page_actions_ai_claude | tobool or theme_page_actions_ai_perplexity | tobool -%} {%- set source_url = pathto('_sources/' + sourcename, 1) -%} {%- set ai_prompt = (theme_page_actions_ai_prompt % pageurl) if theme_page_actions_ai_prompt else (_("Read from %s so I can ask questions about it.") % pageurl) -%}