thibaud frere commited on
Commit ·
89de168
1
Parent(s): f1ef9f0
update
Browse filesFiles changed (3)
148 unmodified lines149150151152153154155148 unmodified lines} catch {}}, theme);const page = await context.newPage();await page.goto(baseUrl, { waitUntil: 'networkidle', timeout: 60000 });// Compute slug from title if neededif (!args.filename) {const title = await page.evaluate(() => {148 unmodified lines149150151152153154155156157148 unmodified lines} catch {}}, theme);const page = await context.newPage();await page.goto(baseUrl, { waitUntil: 'load', timeout: 60000 });// Give time for CDN scripts (Plotly/D3) to attach and for our fragment hooks to runtry { await page.waitForFunction(() => !!window.Plotly, { timeout: 8000 }); } catch {}// Compute slug from title if neededif (!args.filename) {const title = await page.evaluate(() => {
50 unmodified lines515253545556575850 unmodified lines}});};// If Plotly isn't loaded yet, wait for the window load eventif (window.Plotly) execute();else window.addEventListener('load', execute, { once: true });</script>50 unmodified lines515253545556575850 unmodified lines}});};// 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 lines9101112131415161718198 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; }}html[data-theme='light'] .astro-code { background-color: var(--code-bg); }8 unmodified lines910111213141516178 unmodified linessection.content-grid pre code { display: inline-block; min-width: 100%; }/* Wrap long lines on mobile to avoid overflow (URLs, etc.) */.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