{# Page actions popover for docs/reference heroes. Keeps AI-friendly formats and copy actions close to the page title while using the existing action-bar.js data-action and data-ai hooks. #} {% let AI_PLATFORMS = [ {'id': 'claude', 'name': 'Claude', 'icon': 'ai-claude', 'url': 'https://claude.ai/new?q='}, {'id': 'chatgpt', 'name': 'ChatGPT', 'icon': 'ai-chatgpt', 'url': 'https://chatgpt.com/?q='}, {'id': 'gemini', 'name': 'Gemini', 'icon': 'ai-gemini', 'url': 'https://gemini.google.com/app?q='}, {'id': 'copilot', 'name': 'Copilot', 'icon': 'ai-copilot', 'url': 'https://copilot.microsoft.com/?q='} ] %} {% def page_actions(page, menu_id='chirp-theme-page-actions-menu') %} {% if page %} {% let page_href = (page?.href ?? page?._path ?? '/') | trim %} {% let page_url = canonical_url(page_href) %} {% let llm_txt_url = ensure_trailing_slash(page_url) ~ 'index.txt' %} {% let share_prompt = "Please help me understand this documentation: " ~ llm_txt_url %}