Files
crawl4ai/docs/md_v2/core/llmtxt.md
2025-05-24 20:37:09 +08:00

1.7 KiB

<script> // Iframe height adjustment function resizeLLMtxtIframe() { const iframe = document.getElementById('llmtxt-frame'); if (iframe) { const headerHeight = parseFloat(getComputedStyle(document.documentElement).getPropertyValue('--header-height') || '55'); const topOffset = headerHeight + 20; const availableHeight = window.innerHeight - topOffset; iframe.style.height = Math.max(800, availableHeight) + 'px'; } } // Run immediately and on resize/load resizeLLMtxtIframe(); let resizeTimer; window.addEventListener('load', resizeLLMtxtIframe); window.addEventListener('resize', () => { clearTimeout(resizeTimer); resizeTimer = setTimeout(resizeLLMtxtIframe, 150); }); // Remove Footer & HR from parent page document.addEventListener('DOMContentLoaded', () => { setTimeout(() => { const footer = window.parent.document.querySelector('footer'); if (footer) { const hrBeforeFooter = footer.previousElementSibling; if (hrBeforeFooter && hrBeforeFooter.tagName === 'HR') { hrBeforeFooter.remove(); } footer.remove(); resizeLLMtxtIframe(); } }, 100); }); </script> <style> #terminal-mkdocs-main-content { padding: 0 !important; margin: 0; width: 100%; height: 100%; overflow: hidden; } #terminal-mkdocs-main-content .llmtxt-container { margin: 0; padding: 0; max-width: none; overflow: hidden; } #terminal-mkdocs-toc-panel { display: none !important; } </style>