thibaud frere commited on
Commit ·
89de168
1
Parent(s): f1ef9f0
update
Browse filesFiles changed (3)
148 unmodified lines149150151152152153154155156157148 unmodified lines } catch {} }, theme); const page = await context.newPage(); await page.goto(baseUrl, { waitUntil: 'networkidle', timeout: 60000 }); await page.goto(baseUrl, { waitUntil: 'load', timeout: 60000 }); // Give time for CDN scripts (Plotly/D3) to attach and for our fragment hooks to run try { await page.waitForFunction(() => !!window.Plotly, { timeout: 8000 }); } catch {} // Compute slug from title if needed if (!args.filename) { const title = await page.evaluate(() => {50 unmodified lines5152535455545556575850 unmodified lines } }); }; // If Plotly isn't loaded yet, wait for the window load event if (window.Plotly) execute(); // Ensure execution when ready: run now if Plotly is present or document already loaded; otherwise wait for 'load' if (window.Plotly || document.readyState === 'complete') execute(); else window.addEventListener('load', execute, { once: true }); </script>
8 unmodified lines9101112131415121314161516178 unmodified linessection.content-grid pre code { display: inline-block; min-width: 100%; }
/* Wrap long lines on mobile to avoid overflow (URLs, etc.) */@media (max-width: 1100px) { .astro-code, section.content-grid pre { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; } section.content-grid pre code { white-space: pre-wrap; display: block; min-width: 0; }.astro-code,section.content-grid pre { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }section.content-grid pre code { white-space: pre-wrap; display: block; min-width: 0; }}
html[data-theme='light'] .astro-code { background-color: var(--code-bg); }
app/scripts/export-pdf.mjs+3-1
app/src/components/HtmlFragment.astro+2-2
app/src/styles/components/_code.scss+3-5